josef reidinger schrieb:
Stefan Schubert napsal(a):
Hi,
that is a good point which I should document in Wiki:
-In order not loosing the overview about the rights use granulating only
if it is useful for the user/admin.
-WebYaST rights and YaST-DBUS rights has to be identically in order
keeping the overview.
-Use rights for special values/tasks only if we can provide this single
information
in one request only. e.g. GET <machine>language/second_language.xml
- If the YaST-DBUS interface supports this granulation and WebYaST does
not
we will have to "summarize" rights.
For example the language module has only one GET/PUT request:
GET <machine>/language.xml
This returns the *complete* language information like
current
utf8
rootlocale
...
..
.
This is not true for language-0.0.2, where is there only one GET/PUT,
Ah, ok you have changed it while my vacation :-) . It looks nice.
The general question here is if it is really needed to give rights for each
field.
but it respect rights. So if you have rights only to read rootlocale,
then you see in webclient only this one element. Same in put, where you
can set only things on which you has permissions (so is valid send PUT
with only rootlocale setted (I think that I forget in webclient
implement disabling)). So you have only one form but object in that form
is variable and depend on permission and same what element you have enabled.
And get/set subtree is good idea, as it allow better structuring and
also give pressure to use same standards for dbus calls (only getter and
setters) which is ideal stateless interface. Also it force close setters
which doesn't depend on any other call from interface.
JFYI due to bug https://bugzilla.novell.com/show_bug.cgi?id=512569 is
not possible to send more complex structures in dbus, even it is
supported by dbus (like list of map), so some getter require some string
serializing.
Josef
--
*******************************************************************************
Stefan Schubert
SUSE LINUX GmbH - Maxfeldstrasse 5 - D-90409 Nuernberg, Germany
e-mail: [email protected]
-------------------------------------------------------------------------------
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]