[Uludag-commits] r16298 - branches/comar-dbus/tests
uludag-commits at pardus.org.tr
uludag-commits at pardus.org.tr
11 Ara 2007 Sal 19:28:36 EET
Author: bahadir.kandemir
Date: Tue Dec 11 19:28:36 2007
New Revision: 16298
Added:
branches/comar-dbus/tests/hav.py (contents, props changed)
branches/comar-dbus/tests/register.sh
- copied, changed from r16294, branches/comar-dbus/tests/register.py
Removed:
branches/comar-dbus/tests/register.py
Modified:
branches/comar-dbus/tests/README
Log:
hav.py - Command & conqueror ComarDBus
Modified: branches/comar-dbus/tests/README
=================================================================
--- branches/comar-dbus/tests/README (original)
+++ branches/comar-dbus/tests/README Tue Dec 11 19:28:36 2007
@@ -1,2 +1,2 @@
- execute run.sh as root to start Comar
-- execute register.py to register example scripts.
+- execute register.sh to register example scripts.
Copied: branches/comar-dbus/tests/register.sh (from r16294, branches/comar-dbus/tests/register.py)
=================================================================
--- branches/comar-dbus/tests/register.py (original)
+++ branches/comar-dbus/tests/register.sh Tue Dec 11 19:28:36 2007
@@ -1,18 +1,4 @@
-#!/usr/bin/python
+#!/bin/sh
-import os
-import sys
-
-def register(app, model, script):
- script = os.path.realpath(script)
- print "Registering %s_%s.py..." % (model, app)
- os.system("dbus-send --system --dest=tr.org.pardus.comar --type=method_call --print-reply /system tr.org.pardus.comar.register string:'%s' string:'%s' string:'%s'" % (app, model, script))
-
-def main():
- register("grub", "Boot.Loader", "scripts/Boot_Loader_grub.py")
- register("mysql", "System.Package", "scripts/System_Package_mysql.py")
-
- return 0
-
-if __name__ == "__main__":
- sys.exit(main())
+./hav.py register grub Boot.Loader scripts/Boot_Loader_grub.py
+./hav.py register mysql System.Package scripts/System_Package_mysql.py
Uludag-commits mesaj listesiyle ilgili
daha fazla bilgi