Orm Python Module¶
Core interface for each ORM object to interface with CherryPy.
-
class
pacifica.metadata.rest.orm.
CherryPyAPI
(*args, **kwargs)[source]¶ Core CherryPy interface for all orm objects.
-
DELETE
(**kwargs)¶ Wrapper to connect and close connection to database.
-
DoesNotExist
¶ alias of
CherryPyAPIDoesNotExist
-
GET
(**kwargs)¶ Wrapper to connect and close connection to database.
-
POST
(**kwargs)¶ Wrapper to connect and close connection to database.
-
PUT
(**kwargs)¶ Wrapper to connect and close connection to database.
-
static
_CherryPyAPI__fix_dates
(orig_obj, db_obj)¶ Fix the dates for insert.
-
_meta
= <peewee.Metadata object>¶
-
static
_primary_keys_as_dict
(obj)[source]¶ Turn the primary keys for self into get parameters for web access.
-
_schema
= <peewee.SchemaManager object>¶
-
classmethod
check_for_key_existence
(object_list)[source]¶ Check for already loaded keys to prevent collisions.
-
created
= <ExtendDateTimeField: CherryPyAPI.created>¶
-
deleted
= <ExtendDateTimeField: CherryPyAPI.deleted>¶
-
es_recursive_flags
= {'recursion_depth': 1, 'recursion_exclude': [], 'recursion_limit': 1000}¶
-
exposed
= True¶
-
id
= <AutoField: CherryPyAPI.id>¶
-
updated
= <ExtendDateTimeField: CherryPyAPI.updated>¶
-