[yast-commit] r56957 - in /trunk/core: ./ dbus/namespace_service/doc/ dbus/namespace_service/src/ package/
Author: lslezak
Date: Fri Apr 24 09:06:20 2009
New Revision: 56957
URL: http://svn.opensuse.org/viewcvs/yast?rev=56957&view=rev
Log:
- DBus service - better handle "::" separators in name space
string - replace it by "/" in DBus object path and "." in
PolicyKit action ID string
- 2.18.7
Added:
trunk/core/dbus/namespace_service/doc/org.opensuse.yast.modules.yapi.samba.policy (contents, props changed)
- copied, changed from r56956, trunk/core/dbus/namespace_service/doc/org.opensuse.yast.modules.yapi-samba.policy
Removed:
trunk/core/dbus/namespace_service/doc/org.opensuse.yast.modules.yapi-samba.policy
Modified:
trunk/core/VERSION
trunk/core/dbus/namespace_service/doc/Makefile.am
trunk/core/dbus/namespace_service/doc/YaPI_Samba.examples
trunk/core/dbus/namespace_service/doc/dbus_samba_export.README
trunk/core/dbus/namespace_service/doc/dbus_samba_export.py
trunk/core/dbus/namespace_service/doc/example-users.py
trunk/core/dbus/namespace_service/src/DBusModulesServer.cc
trunk/core/package/yast2-core.changes
Modified: trunk/core/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/VERSION?rev=56957&r1=56956&r2=56957&view=diff
==============================================================================
--- trunk/core/VERSION (original)
+++ trunk/core/VERSION Fri Apr 24 09:06:20 2009
@@ -1 +1 @@
-2.18.6
+2.18.7
Modified: trunk/core/dbus/namespace_service/doc/Makefile.am
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/dbus/namespace_service/doc/Makefile.am?rev=56957&r1=56956&r2=56957&view=diff
==============================================================================
--- trunk/core/dbus/namespace_service/doc/Makefile.am (original)
+++ trunk/core/dbus/namespace_service/doc/Makefile.am Fri Apr 24 09:06:20 2009
@@ -12,7 +12,7 @@
example-arch.py \
example-users.py \
polkit_helper.py \
- org.opensuse.yast.modules.yapi-samba.policy \
+ org.opensuse.yast.modules.yapi.samba.policy \
YaPI_Samba.examples
EXTRA_DIST = $(html_DATA)
Modified: trunk/core/dbus/namespace_service/doc/YaPI_Samba.examples
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/dbus/namespace_service/doc/YaPI_Samba.examples?rev=56957&r1=56956&r2=56957&view=diff
==============================================================================
--- trunk/core/dbus/namespace_service/doc/YaPI_Samba.examples (original)
+++ trunk/core/dbus/namespace_service/doc/YaPI_Samba.examples Fri Apr 24 09:06:20 2009
@@ -4,29 +4,29 @@
How to use the examples:
-1. Copy org.opensuse.yast.modules.yapi-samba.policy file to /usr/share/PolicyKit/policy
+1. Copy org.opensuse.yast.modules.yapi.samba.policy file to /usr/share/PolicyKit/policy
directory. (Note: the file should be later moved to yast2-samba-server package.)
2. The service will return an authorization error if you are not authorized to call an exported function.
- Use e.g. 'polkit-auth --obtain org.opensuse.yast.modules.yapi-samba.addshare' call to obtain
+ Use e.g. 'polkit-auth --obtain org.opensuse.yast.modules.yapi.samba.addshare' call to obtain
the 'addshare' authorization. Call the exported function again after obtaing the authorization,
this time it should succeed.
3. Try the following Bus calls:
# YaPI::Samba::GetServiceStatus() - get service status (enabled/disabled in default runlevels)
-dbus-send --system --dest=org.opensuse.YaST.modules --print-reply --type=method_call /org/opensuse/YaST/modules/YaPI__Samba org.opensuse.YaST.Values.GetServiceStatus
+dbus-send --system --dest=org.opensuse.YaST.modules --print-reply --type=method_call /org/opensuse/YaST/modules/YaPI/Samba org.opensuse.YaST.Values.GetServiceStatus
# YaPI::Samba::EnableService(boolean enable) - enable samba service
-dbus-send --system --dest=org.opensuse.YaST.modules --print-reply --type=method_call /org/opensuse/YaST/modules/YaPI__Samba org.opensuse.YaST.Values.EditService boolean:true
+dbus-send --system --dest=org.opensuse.YaST.modules --print-reply --type=method_call /org/opensuse/YaST/modules/YaPI/Samba org.opensuse.YaST.Values.EditService boolean:true
# YaPI::Samba::GetAllDirectories() - get list of all configured shares
-dbus-send --system --dest=org.opensuse.YaST.modules --print-reply --type=method_call /org/opensuse/YaST/modules/YaPI__Samba org.opensuse.YaST.Values.GetAllDirectories
+dbus-send --system --dest=org.opensuse.YaST.modules --print-reply --type=method_call /org/opensuse/YaST/modules/YaPI/Samba org.opensuse.YaST.Values.GetAllDirectories
# YaPI::Samba::AddShare(sting name, map options) - add a new read-only share "local"
# check the end of /etc/samba/smb.conf file, there should be a new section
-dbus-send --system --dest=org.opensuse.YaST.modules --print-reply --type=method_call /org/opensuse/YaST/modules/YaPI__Samba org.opensuse.YaST.Values.AddShare string:"local" dict:string:string:"path","/local","comment","Exported /local directory","read only","Yes"
+dbus-send --system --dest=org.opensuse.YaST.modules --print-reply --type=method_call /org/opensuse/YaST/modules/YaPI/Samba org.opensuse.YaST.Values.AddShare string:"local" dict:string:string:"path","/local","comment","Exported /local directory","read only","Yes"
# YaPI::Samba::GetShare(string name) - get properties of share "local"
-dbus-send --system --dest=org.opensuse.YaST.modules --print-reply --type=method_call /org/opensuse/YaST/modules/YaPI__Samba org.opensuse.YaST.Values.GetShare string:"local"
+dbus-send --system --dest=org.opensuse.YaST.modules --print-reply --type=method_call /org/opensuse/YaST/modules/YaPI/Samba org.opensuse.YaST.Values.GetShare string:"local"
Modified: trunk/core/dbus/namespace_service/doc/dbus_samba_export.README
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/dbus/namespace_service/doc/dbus_samba_export.README?rev=56957&r1=56956&r2=56957&view=diff
==============================================================================
--- trunk/core/dbus/namespace_service/doc/dbus_samba_export.README (original)
+++ trunk/core/dbus/namespace_service/doc/dbus_samba_export.README Fri Apr 24 09:06:20 2009
@@ -7,7 +7,7 @@
cp dbus_samba_export.py /usr/bin
If the Samba server has been configured (by the system administrator) users who
-have org.opensuse.yast.modules.yapi-samba.addshare PolicyKit authorization can
+have org.opensuse.yast.modules.yapi.samba.addshare PolicyKit authorization can
simply export a directory using Konqueror or Dolphin file manager.
Just right-click on a folder, select "Actions" -> "Export directory as a Samba
Modified: trunk/core/dbus/namespace_service/doc/dbus_samba_export.py
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/dbus/namespace_service/doc/dbus_samba_export.py?rev=56957&r1=56956&r2=56957&view=diff
==============================================================================
--- trunk/core/dbus/namespace_service/doc/dbus_samba_export.py (original)
+++ trunk/core/dbus/namespace_service/doc/dbus_samba_export.py Fri Apr 24 09:06:20 2009
@@ -30,7 +30,7 @@
share_name = share_name[1:]
bus = dbus.SystemBus()
- samba = bus.get_object('org.opensuse.YaST.modules', '/org/opensuse/YaST/modules/YaPI__Samba')
+ samba = bus.get_object('org.opensuse.YaST.modules', '/org/opensuse/YaST/modules/YaPI/Samba')
call = lambda: samba.AddShare(share_name, {'path':directory, 'comment':'Exported directory ' + directory, 'read only':'Yes'},
dbus_interface='org.opensuse.YaST.Values')
Modified: trunk/core/dbus/namespace_service/doc/example-users.py
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/dbus/namespace_service/doc/example-users.py?rev=56957&r1=56956&r2=56957&view=diff
==============================================================================
--- trunk/core/dbus/namespace_service/doc/example-users.py (original)
+++ trunk/core/dbus/namespace_service/doc/example-users.py Fri Apr 24 09:06:20 2009
@@ -3,7 +3,7 @@
# see example-arch.py
#
# As root:
-# # polkit-auth --user $USER --grant org.opensuse.yast.modules.yapi-users.usersget
+# # polkit-auth --user $USER --grant org.opensuse.yast.modules.yapi.users.usersget
# work around a bug in yast2-core-2.18.6:
# # polkit-auth --user $USER --grant org.opensuse.yast.module-manager.modules.import
@@ -22,7 +22,7 @@
# polkit will ask
retry(lambda: mm.Import('YaPI::USERS'))
-Users_o = O(MOD_S, '/org/opensuse/YaST/modules/YaPI__USERS')
+Users_o = O(MOD_S, '/org/opensuse/YaST/modules/YaPI/USERS')
Users = I(Users_o, 'org.opensuse.YaST.Values')
cfg = {
"type": "system",
Copied: trunk/core/dbus/namespace_service/doc/org.opensuse.yast.modules.yapi.samba.policy (from r56956, trunk/core/dbus/namespace_service/doc/org.opensuse.yast.modules.yapi-samba.policy)
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/dbus/namespace_service/doc/org.opensuse.yast.modules.yapi.samba.policy?p2=trunk/core/dbus/namespace_service/doc/org.opensuse.yast.modules.yapi.samba.policy&p1=trunk/core/dbus/namespace_service/doc/org.opensuse.yast.modules.yapi-samba.policy&r1=56956&r2=56957&rev=56957&view=diff
==============================================================================
--- trunk/core/dbus/namespace_service/doc/org.opensuse.yast.modules.yapi-samba.policy (original)
+++ trunk/core/dbus/namespace_service/doc/org.opensuse.yast.modules.yapi.samba.policy Fri Apr 24 09:06:20 2009
@@ -6,7 +6,7 @@
<vendor>Novell, Inc.</vendor>
participants (1)
-
lslezak@svn.opensuse.org