projectal.entities.calendar
View Source
from projectal.errors import UnsupportedException from projectal.entity import Entity class Calendar(Entity): """ Implementation of the [Calendar](https://projectal.com/docs/latest/#tag/Calendar) API. """ _path = 'calendar' _name = 'CALENDAR' @classmethod def create(cls, holder, entity): """Create a Calendar `holder`: `uuId` of the owner `entity`: The fields of the entity to be created """ params = "?holder=" + holder return super().create(entity, params) @classmethod def list(cls): raise UnsupportedException("Calendar list is not supported by the API.")
View Source
class Calendar(Entity): """ Implementation of the [Calendar](https://projectal.com/docs/latest/#tag/Calendar) API. """ _path = 'calendar' _name = 'CALENDAR' @classmethod def create(cls, holder, entity): """Create a Calendar `holder`: `uuId` of the owner `entity`: The fields of the entity to be created """ params = "?holder=" + holder return super().create(entity, params) @classmethod def list(cls): raise UnsupportedException("Calendar list is not supported by the API.")
Implementation of the Calendar API.
View Source
@classmethod def create(cls, holder, entity): """Create a Calendar `holder`: `uuId` of the owner `entity`: The fields of the entity to be created """ params = "?holder=" + holder return super().create(entity, params)
Create a Calendar
holder
: uuId
of the owner
entity
: The fields of the entity to be created
View Source
@classmethod def list(cls): raise UnsupportedException("Calendar list is not supported by the API.")
Return a list of all entities of this type, optionally
expanding the results with links
.
Inherited Members
- projectal.entity.Entity
- Entity
- get
- update
- delete
- save
- clone
- history
- match
- match_startswith
- match_endswith
- search
- query
- builtins.dict
- setdefault
- pop
- popitem
- keys
- items
- values
- fromkeys
- clear
- copy