コード例 #1
0
ファイル: vocab.py プロジェクト: metatoaster/pmr2.app
 def acquireCommitId(self):
     if ICurrentCommitIdProvider.providedBy(self.context):
         return self.context.current_commit_id()
     id_provider = zope.component.queryAdapter(
         self.context, ICurrentCommitIdProvider)
     return id_provider and id_provider.current_commit_id()
コード例 #2
0
ファイル: workspace.py プロジェクト: PMR2/pmr2.app
 def current_commit_id(self):
     parent = aq_parent(aq_inner(self))
     if ICurrentCommitIdProvider.providedBy(parent):
         return parent.current_commit_id()