|
param_def()
return the parameter definition |
|
|
|
return_def()
return the result definition (NOT for nested=True) |
|
|
|
xsd_return_def()
return the result definition for op_soap_from_xapi |
|
|
|
do_it(request,
object_id=None,
attribute_names=[ ' __id__ ' , ' name ' ] ,
depth=0,
nested=False,
offset=0,
number=0,
sorted_by=None,
flter=None,
marker_flter=None,
period=None)
see above |
|
|
|
get_id(obj)
get id of object |
|
|
|
construct_flter_func(flter)
Parse flter and return a callable filter func(obj) |
|
|
|
get_attributes(request,
obj,
items=[ ' __id__ ' , ' name ' ] ,
depth=0,
nested=0,
offset=0,
number=0,
sorted_by=None,
flter=None,
marker_flter=None,
period=None,
keep_obj=False)
return attributes of object |
|
|
|
filtered_allowed_entries(request,
obj,
flter=None,
period=None) |
|
|
|
|
|
get_period(request,
period)
Converts a given period string to a pair of utc timestamp boundaries. |
|
|
|
get_data(request,
obj,
items,
flter=None,
marker_flter_func=None,
period=None)
return attributes of object |
|
|
|
get_container(request,
container,
items,
depth=0,
nested=0,
memo={ } ,
flter=None,
marker_flter_func=None,
period=None)
return content of container |
|
|
|
get_attr(request,
obj,
item,
metadata=None,
as_string=False,
flter=None,
period=None)
return item of object |
|
|
|
has_sub_container(obj)
return true if the object is a container and has at least one sub
container |
|
|
|
call_get(self,
key)
call get function of object eg (for key 'attrx'): self.get_attrx() |
|
|
|
get_metadata(obj,
metadata,
item)
return unqualified metadata item of object (try default namespace,
usernamespace) |
|
|
|
make_namespace_dict(obj,
item)
return metadata dictionary of object |
|
|
|
is_container(obj,
mustbe=0)
return True if the object is a container else return False (or raise
an xmlrpclib.Fault exception if mustbe is not 0) |
|
|
|
make_object(obj,
depth=3,
as_string=None)
for cl_persist.Object return dictionary with '__id__' and 'name' of
object for other objects return dictionary with fields of object
until level 'depth' lists and dictionaries are returned until level
'depth' |
|
|
|
make_user(obj,
as_string=False)
return dictionary with '__id__' and 'name' of object (owner owners
creator) |
|
|
|
make_date(time,
GMT=1,
as_string=False,
as_naive=False)
return xmlrpclib.DateTime in UTC time If time is a naive datetime
object or a timetuple, it must be in UTC unless GMT is set to false. |
|
|
|
make_notes(obj)
return id of object (notes) |
|
|
|
make_rating(obj)
return dictionary with 'ratings' and 'median' of object (ratings) |
|
|
|
make_quota_map(obj)
return dictionary with quota usage and limits (quota_accu) |
|
|
|
make_event(event,
context=None,
as_string=False)
return dictionary with 'id', 'date', 'who' and 'name' of event
(lastEvent createEvent lastChange lastMove) |
|
|
|
compare_item(a,
b)
compare function for sort |
|
|
|
get_presence_state(obj,
idletime) |
|
|
|
get_presence(request,
obj,
index=0) |
|
|
|
get_idletime(request,
obj,
index=1) |
|
|