Orm Python Module¶
Core interface for each ORM object to interface with CherryPy.
-
class
pacifica.metadata.rest.orm.
CherryPyAPI
(*args, **kwargs)¶ 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.
-
_delete
(**kwargs)¶ Internal delete object method.
-
_insert
(objs)¶ Insert object from json into the system.
-
_select
(**kwargs)¶ Internal select method.
-
_set_or_create
(objs)¶ Set or create the object if it doesn’t already exist.
-
_update
(update_hash, **kwargs)¶ Internal update method for an object.
-
static
_update_dep_objs
(obj, updated_objs)¶ Update the dependent objs of obj and append to updated_objs.
-
classmethod
check_for_key_existence
(object_list)¶ Check for already loaded keys to prevent collisions.
-