noc.inv.models.mapsettings

Module Contents

noc.inv.models.mapsettings.logger
noc.inv.models.mapsettings.LC_NORMAL = normal
noc.inv.models.mapsettings.LC_SMOOTH = smooth
noc.inv.models.mapsettings.LC_ROUNDED = rounded
class noc.inv.models.mapsettings.NodeSettings

Bases: mongoengine.document.EmbeddedDocument

type
id
x
y
__str__(self)
class noc.inv.models.mapsettings.VertexPosition

Bases: mongoengine.document.EmbeddedDocument

x
y
__str__(self)
class noc.inv.models.mapsettings.LinkSettings

Bases: mongoengine.document.EmbeddedDocument

type
id
connector
vertices
__str__(self)
class noc.inv.models.mapsettings.MapSettings

Bases: mongoengine.document.Document

meta
segment
changed
user
width
height
nodes
__str__(self)
get_nodes(self)

Returns a dict of id -> Node settings

classmethod load_json(cls, data, user=None)

Load json data of: id nodes:

id x y
links:

id vertices:

x y