Esempio n. 1
0
  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)
Esempio n. 2
0
    def getScope(self, entity):
        """Gets Scope for entity.

    params:
      entity = Survey entity
    """

        from soc.logic.helper import prefixes

        return prefixes.getOrSetScope(entity)
Esempio n. 3
0
  def getScope(self, entity):
    """Gets Scope for entity.

    params:
      entity = Survey entity
    """

    from soc.logic.helper import prefixes

    return prefixes.getOrSetScope(entity)