[gen] added the possibility to define a sortOrder of a Search class.
This commit is contained in:
parent
9368138efd
commit
aaaccb0669
2 changed files with 11 additions and 5 deletions
|
@ -298,10 +298,12 @@ class Import:
|
|||
|
||||
class Search:
|
||||
'''Used for specifying a search for a given type.'''
|
||||
def __init__(self, name, group=None, sortBy='', limit=None, **fields):
|
||||
def __init__(self, name, group=None, sortBy='', sortOrder='asc', limit=None,
|
||||
**fields):
|
||||
self.name = name
|
||||
self.group = group # Searches may be visually grouped in the portlet
|
||||
self.sortBy = sortBy
|
||||
self.sortOrder = sortOrder
|
||||
self.limit = limit
|
||||
# In the dict below, keys are indexed field names and values are
|
||||
# search values.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue