|
|
|
|
70
|
|
70
|
|
71
|
def createDummyNode(self):
|
71
|
def createDummyNode(self):
|
72
|
loNewNode = self.createNode()
|
72
|
loNewNode = self.createNode()
|
73
|
- loNewNode.data_label = 'New document'
|
|
|
74
|
- loNewNode.data_content = 'insert content...'
|
|
|
|
|
73
|
+ loNewNode.data_label = ''
|
|
|
74
|
+ loNewNode.data_content = ''
|
75
|
return loNewNode
|
75
|
return loNewNode
|
76
|
|
76
|
|
77
|
|
77
|
|
78
|
def getNode(self, liNodeId):
|
78
|
def getNode(self, liNodeId):
|
79
|
liOwnerIdList = self._getUserIdListForFiltering()
|
79
|
liOwnerIdList = self._getUserIdListForFiltering()
|
80
|
- if liNodeId==0:
|
|
|
81
|
- return DBSession.query(pbmd.PBNode).options(joinedload_all("_lAllChildren")).filter(pbmd.PBNode.owner_id.in_(liOwnerIdList)).first()
|
|
|
82
|
- else:
|
|
|
|
|
80
|
+ if liNodeId!=0:
|
83
|
return DBSession.query(pbmd.PBNode).options(joinedload_all("_lAllChildren")).filter(pbmd.PBNode.node_id==liNodeId).filter(pbmd.PBNode.owner_id.in_(liOwnerIdList)).one()
|
81
|
return DBSession.query(pbmd.PBNode).options(joinedload_all("_lAllChildren")).filter(pbmd.PBNode.node_id==liNodeId).filter(pbmd.PBNode.owner_id.in_(liOwnerIdList)).one()
|
|
|
82
|
+ return None
|
84
|
|
83
|
|
85
|
|
84
|
|
86
|
def getLastModifiedNodes(self, piMaxNodeNb):
|
85
|
def getLastModifiedNodes(self, piMaxNodeNb):
|