Exemple #1
0
 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()
Exemple #2
0
 def current_commit_id(self):
     parent = aq_parent(aq_inner(self))
     if ICurrentCommitIdProvider.providedBy(parent):
         return parent.current_commit_id()