Update init files to register more app with the app registre app as well as the backup app

This commit is contained in:
Roberto Rosario
2012-08-17 03:33:39 -04:00
parent 29654c5f99
commit c9811c6a76
17 changed files with 170 additions and 79 deletions
+4 -1
View File
@@ -4,6 +4,7 @@ from django.utils.translation import ugettext_lazy as _
from acls.api import class_permissions
from app_registry import register_app, UnableToRegister
from backups.api import AppBackup, ModelBackup
from documents.models import Document
from navigation.api import bind_links, register_top_menu
from scheduler.api import LocalScheduler
@@ -42,6 +43,8 @@ checkouts_scheduler.start()
initialize_document_checkout_extra_methods()
try:
register_app('checkouts', _(u'Checkouts'))
app = register_app('checkouts', _(u'Checkouts'))
except UnableToRegister:
pass
else:
AppBackup(app, [ModelBackup()])