Add history events 'check out' and 'check in' logging

This commit is contained in:
Roberto Rosario
2012-06-17 00:39:54 -04:00
parent a6e1df9b3a
commit 0e47bbb10b
5 changed files with 37 additions and 15 deletions

15
apps/checkouts/events.py Normal file
View File

@@ -0,0 +1,15 @@
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'}
}