Bases: tincan.documents.document.Document
Extends tincan.Document with an Activity field, can be created from a dict, another tincan.Document, or from kwargs.
Parameters: |
|
---|
The Document’s activity object
Setter: | Tries to convert to tincan.Activity |
---|---|
Setter type: | tincan.Activity |
Return type: | tincan.Activity |
Bases: tincan.documents.document.Document
Extends tincan.Document with an Agent field, can be created from a dict, another tincan.Document, or from kwargs.
Parameters: |
|
---|
The Document’s agent object
Setter: | Tries to convert to tincan.Agent |
---|---|
Setter type: | tincan.Agent |
Return type: | tincan.Agent |
Bases: tincan.base.Base
Document class can be instantiated from a dict, another tincan.Document, or from kwargs
Parameters: |
|
---|
The Document content
Setter: | Tries to convert to bytearray. |
---|---|
Setter type: | str | unicode | bytearray |
Return type: | bytearray |
The Document content type
Setter: | Tries to convert to unicode |
---|---|
Setter type: | str | unicode |
Return type: | unicode |
The Document etag
Setter: | Tries to convert to unicode |
---|---|
Setter type: | str | unicode |
Return type: | unicode |
The Document id
Setter: | Tries to convert to unicode |
---|---|
Setter type: | str | unicode |
Return type: | unicode |
The Document timestamp.
Setter: | Tries to convert to datetime.datetime. If |
---|
no timezone is given, makes a naive datetime.datetime.
Strings will be parsed as ISO 8601 timestamps.
If a number is provided, it will be interpreted as a UNIX timestamp, which by definition is UTC.
If a dict is provided, does datetime.datetime(**value).
If a tuple or a list is provided, does datetime.datetime(*value). Uses the timezone in the tuple or list if provided.
Setter type: | datetime.datetime | unicode | str | int | float | dict | tuple | None |
---|---|
Return type: | datetime.datetime |
Bases: tincan.documents.document.Document
Extends tincan.Document with Agent, Activity, and Registration fields; can be created from a dict, another tincan.Document, or from kwargs.
Parameters: |
|
---|
The Document’s activity object
Setter: | Tries to convert to activity |
---|---|
Setter type: | tincan.Activity |
Return type: | tincan.Activity |
The Document’s agent object
Setter: | Tries to convert to tincan.Agent |
---|---|
Setter type: | tincan.Agent |
Return type: | tincan.Agent |
The Document registration id
Setter: | Tries to convert to unicode |
---|---|
Setter type: | str | unicode | uuid.UUID |
Return type: | unicode |