request(self,
classname,
conditions,
sortorder,
propertylist)
Create a new list instance containing all items of a given class
matching the requested conditions. The elements are sorted according to
the given sortorder and preloaded with the given properties.
-
- Parameters:
classname -
name of the class to fetch items from
conditions -
a condition (list, dictionary, GConditionTree, ...) acceptable
to GCondition.buildCondition to filter items
sortorder -
list of sort-instructions to build the resulting list. Such a
sort-instruction could be a string, a tuple, a list or a
dictionary. A sort item consists of three parts: propertyname,
sort-direction and case-sensitiveness.
string : propertyname tuple, list: (propertyname, descending,
ignorecase) dictionary : {'name': ..., 'descending': ...,
'ignorecase': ...}
A sort item must not be completeley defined. If an element is
omitted, the following defaults apply: descending = False,
ignorecase = False
propertylist -
sequence of properties to fetch for each item in the resulting
list. Such propertynames could also be reference properties like
'x_foo.y_bar'. In this case the needed join would be added
automatically.
- Returns:
-
geasList.geasList instance
|