will check all objects in their assigned container for the required fields
Parameters: |
|
---|---|
Returns: | dict of objects that are/were not consistent with the object definition |
Close the database connection
Create an object with data from the object_definitions container
Parameters: |
|
---|---|
Returns: | added for ok otherwise error message |
find objects by looping through all data. obj is the containter, kwargs is the name and value of the field to be searched. returns a list of id numbers for the container. This is for non-indexed searches. may be slow due to looping through data sets but may be used to build ad hoc queries.
Parameters: |
|
---|---|
Returns: | list of object ids(keys) which can be used to pull data |
get the next object ID from a data container
Parameters: | obj_name (string) – the name of the container |
---|---|
Returns: | the next integer ID for a container |
Create an index of object IDs (integers) for objects in a container. if successful it will update the index_listing container and the appropriate object in the object_definitions container
Parameters: |
|
---|
pack the database using zodb pack
sort a list of data based on the sort fields. uses eval to create the lambda. Not sure if there is a better way....
Parameters: |
|
---|
returns a list of dictionaries