|
python_psynth
This is the official python package for generating graphs in Psymphonic Psynth
|
Detail objects contain links or text, and can be attached to Node objects and Link objects. More...
Public Member Functions | |
| def | __init__ |
| Constructs a Detail object. More... | |
| def | anchor (self) |
| Returns the object this Detail is anchored to. More... | |
| def | dictionary (self) |
| Returns a dictionary of this LinkType's properties, as required by the API. More... | |
| def | update |
| Updates the server's registry of this Detail. More... | |
Public Attributes | |
| anchor_uid | |
| str :: The global unique identifier of the object this Detail is anchored to. More... | |
| anchor_type | |
| str :: The type of object this Detail is anchored to. More... | |
| content | |
| str :: The content of this Detail. More... | |
| x | |
| float :: The x-coordinate of the Detail. More... | |
| y | |
| float :: The y-coordinate of the Detail. More... | |
| type | |
| str :: The type of this detail. More... | |
| name | |
| str :: The name of this detail. More... | |
| uid | |
| str :: The global unique identifier of this Detail | |
| created | |
| bool :: Whether or not this Detail has been created on the server. More... | |
Static Public Attributes | |
| graph = None | |
| Graph :: The Graph to which this Detail belongs. More... | |
| def psynth.psynth.Detail.__init__ | ( | self, | |
| content, | |||
anchor_uid = None, |
|||
anchor_type = None, |
|||
x = None, |
|||
y = None, |
|||
type = 'comment', |
|||
name = None, |
|||
uid = None |
|||
| ) |
Constructs a Detail object.
| content | str :: The content of this Detail. |
| anchor_uid | str :: The uid of the object this Detail is attached to. |
| anchor_type | str :: The type of object this Detail is attached to. |
| x | float :: The x-coordinate of this Detail. |
| y | float :: The y-coordinate of this Detail. |
| type | str :: The type of Detail this is. 'link', 'comment', 'video', 'image' |
| name | str :: The name of this Detail. This is not currently used for anything on the front-end. |
| uid | str :: A global unique identifier for this Detail. |
| def psynth.psynth.Detail.anchor | ( | self | ) |
Returns the object this Detail is anchored to.
| def psynth.psynth.Detail.dictionary | ( | self | ) |
Returns a dictionary of this LinkType's properties, as required by the API.
Generally used internally to build queries.
| def psynth.psynth.Detail.update | ( | self, | |
callback = None |
|||
| ) |
Updates the server's registry of this Detail.
| callback | function :: An optional function to handle the server's response to the query. |
| psynth.psynth.Detail.anchor_type |
str :: The type of object this Detail is anchored to.
| psynth.psynth.Detail.anchor_uid |
str :: The global unique identifier of the object this Detail is anchored to.
| psynth.psynth.Detail.content |
str :: The content of this Detail.
| psynth.psynth.Detail.created |
bool :: Whether or not this Detail has been created on the server.
| psynth.psynth.Detail.name |
str :: The name of this detail.
Currently not used on the front end.
| psynth.psynth.Detail.type |
str :: The type of this detail.
'link', 'comment', 'image', 'video'
| psynth.psynth.Detail.x |
float :: The x-coordinate of the Detail.
| psynth.psynth.Detail.y |
float :: The y-coordinate of the Detail.