The panko.api.controllers.v2.base
Module¶
-
class
panko.api.controllers.v2.base.
AdvEnum
(name, *args, **kwargs)¶ Bases:
wsme.types.wsproperty
Handle default and mandatory for wtypes.Enum.
-
class
panko.api.controllers.v2.base.
Base
(**kw)¶ Bases:
wsme.types.DynamicBase
-
as_dict
(db_model)¶
-
as_dict_from_keys
(keys)¶
-
classmethod
from_db_and_links
(m, links)¶
-
classmethod
from_db_model
(m)¶
-
-
exception
panko.api.controllers.v2.base.
ClientSideError
(error, status_code=400)¶ Bases:
wsme.exc.ClientSideError
-
exception
panko.api.controllers.v2.base.
EntityNotFound
(entity, id)¶
-
class
panko.api.controllers.v2.base.
JsonType
¶ Bases:
wsme.types.UserType
A simple JSON type.
-
basetype
¶ alias of
builtins.str
-
name
= 'json'¶
-
static
validate
(value)¶
-
-
exception
panko.api.controllers.v2.base.
ProjectNotAuthorized
(id, aspect='project')¶
-
class
panko.api.controllers.v2.base.
Query
(**kw)¶ Bases:
panko.api.controllers.v2.base.Base
Query filter.
-
as_dict
()¶
-
field
¶ The name of the field to test
-
get_op
()¶
-
property
op
¶ The comparison operator. Defaults to ‘eq’.
-
classmethod
sample
()¶
-
set_op
(value)¶
-
type
¶ The data type of value to compare against the stored data
-
value
¶ The value to compare against the stored data
-