本文整理匯總了Python中graphnodes.GraphNode.post_db_init方法的典型用法代碼示例。如果您正苦於以下問題:Python GraphNode.post_db_init方法的具體用法?Python GraphNode.post_db_init怎麽用?Python GraphNode.post_db_init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類graphnodes.GraphNode
的用法示例。
在下文中一共展示了GraphNode.post_db_init方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: post_db_init
# 需要導入模塊: from graphnodes import GraphNode [as 別名]
# 或者: from graphnodes.GraphNode import post_db_init [as 別名]
def post_db_init(self):
GraphNode.post_db_init(self)
if self._ringinitfinished:
return
self._ringinitfinished = True
self._insertpoint1 = None
self._insertpoint2 = None
#print >> sys.stderr, 'CMAdb(hbring.py):', CMAdb
#print >> sys.stderr, 'CMAdb.store(hbring.py):', CMAdb.store
#print >> sys.stderr, 'Our relation type: %s' % self.ourreltype
rellist = CMAdb.store.load_related(self, self.ourreltype, Drone)
for rel in rellist:
self._insertpoint1 = rel
#print >> sys.stderr, 'INSERTPOINT1: ', self._insertpoint1
#print >> sys.stderr, 'Our relation type: %s' % self.ournexttype
ip2rellist = CMAdb.store.load_related(self._insertpoint1, self.ournexttype, Drone)
for rel2 in ip2rellist:
self._insertpoint2 = rel2
break
break
示例2: post_db_init
# 需要導入模塊: from graphnodes import GraphNode [as 別名]
# 或者: from graphnodes.GraphNode import post_db_init [as 別名]
def post_db_init(self):
GraphNode.post_db_init(self)
if self._JSON_metadata is None:
self._JSON_metadata = pyConfigContext(self.JSON_metadata)
self.validate_json()