# Class R.C.Collection(CatalogAware, Folder, CountriesManager, Toolz):

Part of Reportek.Collection View In Hierarchy

Collections are basic container objects that provide a standard interface for object management. Collection objects also implement a management interface and can have arbitrary properties.

Split Table into Classes Show Methods in One Table

Line # | Kind | Name | Docs
--- | --- | --- | ---
80 | Method | __init__ | constructor
107 | Method | __setstate__ | Undocumented
142 | Method | all_meta_types | What can you put inside me? Checks if the legal products are
168 | Method | manage_main | Define manage main to be context aware
201 | Method | years | Return the range of years the object pertains to
212 | Method | getEngine | Returns the Reportek engine object
216 | Method | getDataflowMappingsContainer | Undocumented
221 | Method | num_terminated_dataflows | Returns the number of terminated dataflows
231 | Method | dataflow_lookup | Lookup a dataflow on URI and return a dictionary of info
243 | Method | dataflow_dict | Converts the dataflow table into a dictionary
251 | Method | PrincipiaSearchSource | Just return the description.
258 | Method | manage_editCollection | Manage the edited values
282 | Method | manage_editCategories | Manage the edited values
292 | Method | manage_changeCollection | Manage the edited values
332 | Method | getWorkitemsForWorklist | Returns active and inactive workitems from all contained envelopes
344 | Method | changeQueryString | given the QUERY_STRING part of an URL, the function searches for the
362 | Method | changeQueryString2 | given the QUERY_STRING part of an URL, the function does the following:
372 | Method | changeQueryString2Dict | returns the array for changeQueryString2
408 | Method | messageDialog | displays a message dialog

Inherited from CountriesManager:

Line # | Kind | Name | Docs
--- | --- | --- | ---
32 | Method | localities_dict | Converts the localities table into a dictionary
42 | Method | getCountryName | Returns country name from the country uri
57 | Method | getCountryCode | Returns country ISO code from the country uri

Inherited from Toolz:

Line # | Kind | Name | Docs
--- | --- | --- | ---
31 | Method | __valideIssueProperty | Check if exists a property with given value
35 | Method | __validParams | Validate sort parameters
48 | Method | SearchSortWorkitems | Returns a sorted list with workitem objects
63 | Method | getLDAPUser | Undocumented
69 | Method | getLDAPUserFirstName | Undocumented
72 | Method | getLDAPUserLastName | Undocumented
75 | Method | getLDAPUserEmail | Undocumented

Line # | Kind | Name | Docs
--- | --- | --- | ---
80 | Method | __init__ | constructor
107 | Method | __setstate__ | Undocumented
31 | Method | __valideIssueProperty | Check if exists a property with given value
35 | Method | __validParams | Validate sort parameters
142 | Method | all_meta_types | What can you put inside me? Checks if the legal products are
344 | Method | changeQueryString | given the QUERY_STRING part of an URL, the function searches for the
362 | Method | changeQueryString2 | given the QUERY_STRING part of an URL, the function does the following:
372 | Method | changeQueryString2Dict | returns the array for changeQueryString2
243 | Method | dataflow_dict | Converts the dataflow table into a dictionary
231 | Method | dataflow_lookup | Lookup a dataflow on URI and return a dictionary of info
57 | Method | getCountryCode | Returns country ISO code from the country uri
42 | Method | getCountryName | Returns country name from the country uri
216 | Method | getDataflowMappingsContainer | Undocumented
212 | Method | getEngine | Returns the Reportek engine object
63 | Method | getLDAPUser | Undocumented
75 | Method | getLDAPUserEmail | Undocumented
69 | Method | getLDAPUserFirstName | Undocumented
72 | Method | getLDAPUserLastName | Undocumented
332 | Method | getWorkitemsForWorklist | Returns active and inactive workitems from all contained envelopes
32 | Method | localities_dict | Converts the localities table into a dictionary
292 | Method | manage_changeCollection | Manage the edited values
282 | Method | manage_editCategories | Manage the edited values
258 | Method | manage_editCollection | Manage the edited values
168 | Method | manage_main | Define manage main to be context aware
408 | Method | messageDialog | displays a message dialog
221 | Method | num_terminated_dataflows | Returns the number of terminated dataflows
251 | Method | PrincipiaSearchSource | Just return the description.
48 | Method | SearchSortWorkitems | Returns a sorted list with workitem objects
201 | Method | years | Return the range of years the object pertains to

def __init__(self, id, title='', year='', endyear='', partofyear='', country='', locality='', descr='', dataflow_uris=, allow_collections=0, allow_envelopes=0):
constructor

def __setstate__(self, state):
Undocumented
def all_meta_types(self, interfaces=None):
What can you put inside me? Checks if the legal products are actually installed in Zope

def manage_main(self, *args, **kw):
Define manage main to be context aware

def years(self):
Return the range of years the object pertains to

def getEngine(self):
Returns the Reportek engine object

def getDataflowMappingsContainer(self):
Undocumented
def num_terminated_dataflows(self):
Returns the number of terminated dataflows

def dataflow_lookup(self, uri):
Lookup a dataflow on URI and return a dictionary of info

def dataflow_dict(self):
Converts the dataflow table into a dictionary

def PrincipiaSearchSource(self):
Just return the description. Could be enhanced to include all properties

def manage_editCollection(self, title, descr, year, endyear, partofyear, locality, country='', allow_collections=0, allow_envelopes=0, dataflow_uris=, REQUEST=None):
Manage the edited values

def manage_editCategories(self, REQUEST=None):
Manage the edited values

def manage_changeCollection(self, title=None, year=None, endyear=None, partofyear=None, country=None, locality=None, descr=None, allow_collections=None, allow_envelopes=None, dataflow_uris=None, REQUEST=None):
Manage the edited values

def getWorkitemsForWorklist(self, p_ret=None):
Returns active and inactive workitems from all contained envelopes

def changeQueryString(self, p_query_string, p_parameter, p_value):
given the QUERY_STRING part of an URL, the function searches for the parameter p_parameter and gives it the value p_value

def changeQueryString2(self, p_query_string, p_parameter=None, p_value=None):
given the QUERY_STRING part of an URL, the function does the following:

- if type(p_parameter) is str searches for the parameter p_parameter and gives it the value p_value
- if type(p_parameter) is dict searches for all the keys in ditionary and gives them the values from the dictionary
- if the p_value is in None the key is removed (works the same with dictionary)

def changeQueryString2Dict(self, p_query_string, p_parameter=None, p_value=None):
returns the array for changeQueryString2

def messageDialog(self, message='', action='./manage_main', REQUEST=None):
displays a message dialog