Issue #56, remove fabric file installation detection
This commit is contained in:
@@ -7,4 +7,3 @@ FORM_SUBMIT_URL = 'https://docs.google.com/spreadsheet/formResponse'
|
|||||||
FORM_KEY = 'dGZrYkw3SDl5OENMTG15emp1UFFEUWc6MQ'
|
FORM_KEY = 'dGZrYkw3SDl5OENMTG15emp1UFFEUWc6MQ'
|
||||||
FORM_RECEIVER_FIELD = 'entry.0.single'
|
FORM_RECEIVER_FIELD = 'entry.0.single'
|
||||||
TIMEOUT = 5
|
TIMEOUT = 5
|
||||||
FABFILE_MARKER = os.path.join(settings.BASE_DIR, 'fabfile_install')
|
|
||||||
|
|||||||
@@ -32,8 +32,7 @@ from lock_manager import Lock, LockError
|
|||||||
from ocr.settings import PDFTOTEXT_PATH, TESSERACT_PATH, UNPAPER_PATH
|
from ocr.settings import PDFTOTEXT_PATH, TESSERACT_PATH, UNPAPER_PATH
|
||||||
|
|
||||||
from .classes import PIPNotFound, Property, PropertyNamespace, VirtualEnv
|
from .classes import PIPNotFound, Property, PropertyNamespace, VirtualEnv
|
||||||
from .literals import (FABFILE_MARKER, FORM_KEY, FORM_RECEIVER_FIELD,
|
from .literals import FORM_KEY, FORM_RECEIVER_FIELD, FORM_SUBMIT_URL, TIMEOUT
|
||||||
FORM_SUBMIT_URL, TIMEOUT)
|
|
||||||
|
|
||||||
|
|
||||||
class Installation(SingletonModel):
|
class Installation(SingletonModel):
|
||||||
@@ -106,7 +105,6 @@ class Installation(SingletonModel):
|
|||||||
|
|
||||||
namespace.add_property('uuid', _(u'UUID'), self.uuid, report=True)
|
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('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):
|
def git_properties(self):
|
||||||
namespace = PropertyNamespace('git', _(u'Git repository'))
|
namespace = PropertyNamespace('git', _(u'Git repository'))
|
||||||
|
|||||||
Reference in New Issue
Block a user