def _onCreate(self, entity): """Set the scope of the document. Args: entity: Document entity """ from soc.logic.helper import prefixes prefixes.getOrSetScope(entity) super(Logic, self)._onCreate(entity)
def getScope(self, entity): """Gets Scope for entity. params: entity = Survey entity """ from soc.logic.helper import prefixes return prefixes.getOrSetScope(entity)