def on_create(self): from bungeni.core.workflows import utils utils.assign_ownership(self) signatory_feature = self.head.signatory_feature if signatory_feature.document_submitted(self.head) or signatory_feature.auto_sign(self.head): utils.set_role("bungeni.Signatory", self.user.login, self.head)
def on_create(self): from bungeni.core.workflows import utils utils.assign_ownership(self) signatory_feature = self.head.signatory_feature if (signatory_feature.document_submitted(self.head) or signatory_feature.auto_sign(self.head)): utils.set_role("bungeni.Signatory", self.user.login, self.head)
def on_create(self): """Application-internal creation logic i.e. logic NOT subject to config. """ from bungeni.core.workflows import utils if self.is_global: utils.set_role( self.role_id, self.member.user.login, utils.get_group_privilege_extent_context(self.member.group))
def on_create(self): """Application-internal creation logic i.e. logic NOT subject to config. """ from bungeni.core.workflows import utils if self.is_global: utils.set_role( self.role_id, self.member.user.login, utils.get_group_privilege_extent_context(self.member.group) )