Disable previous app registry api
This commit is contained in:
@@ -3,7 +3,6 @@ from __future__ import absolute_import
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from acls.api import class_permissions
|
||||
from app_registry.models import App
|
||||
from documents.models import Document
|
||||
from navigation.api import bind_links, register_top_menu
|
||||
from scheduler.api import LocalScheduler
|
||||
@@ -39,12 +38,4 @@ checkouts_scheduler = LocalScheduler('checkouts', _(u'Document checkouts'))
|
||||
checkouts_scheduler.add_interval_job('task_check_expired_check_outs', _(u'Check expired check out documents and checks them in.'), task_check_expired_check_outs, seconds=CHECK_EXPIRED_CHECK_OUTS_INTERVAL)
|
||||
checkouts_scheduler.start()
|
||||
|
||||
initialize_document_checkout_extra_methods()
|
||||
|
||||
try:
|
||||
app = App.register('checkouts', _(u'Checkouts'))
|
||||
except App.UnableToRegister:
|
||||
pass
|
||||
else:
|
||||
app.set_dependencies(['app_registry'])
|
||||
# AppBackup(app, [ModelBackup()])
|
||||
initialize_document_checkout_extra_methods()
|
||||
|
||||
Reference in New Issue
Block a user