|
@@ -55,6 +55,7 @@ from pboard.model import auth as pma
|
55
|
55
|
- data_status_id
|
56
|
56
|
"""
|
57
|
57
|
|
|
58
|
+
|
58
|
59
|
class PBNodeStatusItem(object):
|
59
|
60
|
def __init__(self, psStatusId, psStatusLabel, psStatusFamily, psIconId, psCssClass): #, psBackgroundColor):
|
60
|
61
|
self._sStatusId = psStatusId
|
|
@@ -222,9 +223,9 @@ class PBNode(DeclarativeBase):
|
222
|
223
|
data_file_mime_type = Column(Unicode(255), unique=False, nullable=False, default='')
|
223
|
224
|
data_file_content = sqlao.deferred(Column(LargeBinary(), unique=False, nullable=False, default=None))
|
224
|
225
|
|
|
226
|
+ rights = relation('Rights')
|
225
|
227
|
|
226
|
228
|
_oParent = relationship('PBNode', remote_side=[node_id], backref='_lAllChildren')
|
227
|
|
- rights = relation('Rights', secondary=group_node_table, backref='nodes')
|
228
|
229
|
_oOwner = relationship('User', remote_side=[pma.User.user_id], backref='_lAllNodes')
|
229
|
230
|
|
230
|
231
|
def getChildrenOfType(self, plNodeTypeList, poKeySortingMethod=None, pbDoReverseSorting=False):
|
|
@@ -421,13 +422,3 @@ class PBNode(DeclarativeBase):
|
421
|
422
|
# FIXME - D.A. - 2013-09-12
|
422
|
423
|
# Does not match @@ at end of content.
|
423
|
424
|
|
424
|
|
-
|
425
|
|
-
|
426
|
|
-# This is the association table for the many-to-many relationship between groups and nodes
|
427
|
|
-group_node_table = Table('pod_group_node', metadata,
|
428
|
|
- Column('group_id', Integer, ForeignKey('pod_group.group_id',
|
429
|
|
- onupdate="CASCADE", ondelete="CASCADE"), primary_key=True),
|
430
|
|
- Column('node_id', Integer, ForeignKey('pod_nodes.node_id',
|
431
|
|
- onupdate="CASCADE", ondelete="CASCADE"), primary_key=True),
|
432
|
|
- Column('rights', Integer)
|
433
|
|
-)
|