Initial changes to support the new Django 1.6 project structure
This commit is contained in:
28
mayan/apps/checkouts/events.py
Normal file
28
mayan/apps/checkouts/events.py
Normal file
@@ -0,0 +1,28 @@
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
HISTORY_DOCUMENT_CHECKED_OUT = {
|
||||
'namespace': 'checkouts', 'name': 'document_checked_out',
|
||||
'label': _(u'Document checked out'),
|
||||
'summary': _(u'Document "%(document)s" checked out by %(fullname)s.'),
|
||||
'expressions': {'fullname': 'user.get_full_name() if user.get_full_name() else user'}
|
||||
}
|
||||
|
||||
HISTORY_DOCUMENT_CHECKED_IN = {
|
||||
'namespace': 'checkouts', 'name': 'document_checked_in',
|
||||
'label': _(u'Document checked in'),
|
||||
'summary': _(u'Document "%(document)s" checked in by %(fullname)s.'),
|
||||
'expressions': {'fullname': 'user.get_full_name() if user.get_full_name() else user'}
|
||||
}
|
||||
|
||||
HISTORY_DOCUMENT_AUTO_CHECKED_IN = {
|
||||
'namespace': 'checkouts', 'name': 'document_auto_checked_in',
|
||||
'label': _(u'Document automatically checked in'),
|
||||
'summary': _(u'Document "%(document)s" automatically checked in.'),
|
||||
}
|
||||
|
||||
HISTORY_DOCUMENT_FORCEFUL_CHECK_IN = {
|
||||
'namespace': 'checkouts', 'name': 'document_forefull_check_in',
|
||||
'label': _(u'Document forcefully checked in'),
|
||||
'summary': _(u'Document "%(document)s" forcefully checked in by %(fullname)s.'),
|
||||
'expressions': {'fullname': 'user.get_full_name() if user.get_full_name() else user'}
|
||||
}
|
||||
Reference in New Issue
Block a user