Update local manager app to user icons and app registry

This commit is contained in:
Roberto Rosario
2012-09-08 04:06:46 -04:00
parent ad44435308
commit 97d0ea66a0
5 changed files with 33 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
from __future__ import absolute_import
from django.utils.translation import ugettext_lazy as _
from smart_settings import LocalScope
from .literals import DEFAULT_LOCK_TIMEOUT_VALUE
from .icons import icon_lock
name = 'lock_manager'
label = _(u'Lock manager')
description = _(u'Handles resource locking.')
icon = icon_lock
dependencies = ['app_registry', 'icons', 'smart_settings']
settings = [
{
'name': 'DEFAULT_LOCK_TIMEOUT',
'default': DEFAULT_LOCK_TIMEOUT_VALUE,
'description': _(u'Default amount of time in seconds after which a lock will be automatically released.'),
'scopes': [LocalScope()]
}
]