Did I find the right examples for you? yes no

All Samples(8)  |  Call(5)  |  Derive(0)  |  Import(3)

src/m/a/mayan-HEAD/apps/installation/models.py   mayan(Download)
from ocr.conf.settings import TESSERACT_PATH, UNPAPER_PATH, PDFTOTEXT_PATH
 
from .classes import Property, PropertyNamespace, VirtualEnv, PIPNotFound
 
FORM_SUBMIT_URL = 'https://docs.google.com/spreadsheet/formResponse'
    def os_properties(self):
        namespace = PropertyNamespace('os', _(u'Operating system'))
        if LSB:
            namespace.add_property('is_lsb', _(u'LSB OS'), True, True)
            namespace.add_property('distributor_id', _(u'Distributor ID'), lsb_release('-i', '-s'), True)
    def binary_dependencies(self):
        namespace = PropertyNamespace('bins', _(u'Binary dependencies'))
 
        tesseract = pbs.Command(TESSERACT_PATH)
        try:
    def mayan_properties(self):
        namespace = PropertyNamespace('mayan', _(u'Mayan EDMS'))
 
        namespace.add_property('uuid', _(u'UUID'), self.uuid, report=True)
        namespace.add_property('mayan_version', _(u'Mayan EDMS version'), mayan_version, report=True)
        namespace.add_property('fabfile', _(u'Installed via fabfile'), os.path.exists(FABFILE_MARKER), report=True)
 
    def git_properties(self):
        namespace = PropertyNamespace('git', _(u'Git repository'))

src/m/a/mayan-HEAD/apps/installation/__init__.py   mayan(Download)
from project_tools.api import register_tool
 
from .classes import Property, PropertyNamespace
from .links import link_menu_link, link_namespace_details, link_namespace_list
from .models import Installation

src/m/a/mayan-HEAD/apps/installation/views.py   mayan(Download)
from permissions.models import Permission
 
from .classes import Property, PropertyNamespace
from .permissions import PERMISSION_INSTALLATION_DETAILS
from .models import Installation