My version is: 5.4.9 (5.4.9-ice36-b101)
I would like to access a Screen without changing my default group on the web application.
Here is my code:
- Code: Select all
def get_object_from_name(conn, name):
opts = {}
opts['group'] = get_group(conn)
return conn.getObject(
obj_type="Screen",
attributes={"name": name},
opts=opts
)
In my opts dictionary, 'group' is the ID of the group I am interested in. The doc has something to retrieve them, and that works fine.
- Code: Select all
print "Member of:"
for g in conn.getGroupsMemberOf():
print " ID:", g.getName(), " Name:", g.getId()
The method return None, but it works as soon as I modify the default group in the UI.
Did I miss anything? Is there any workaround?
Thanks,
Etienne