Initial import of the database bootstrap app

This commit is contained in:
Roberto Rosario
2012-07-19 02:39:54 -04:00
parent 930360002b
commit b8aa5fa974
9 changed files with 177 additions and 0 deletions

9
apps/bootstrap/links.py Normal file
View File

@@ -0,0 +1,9 @@
from django.utils.translation import ugettext_lazy as _
def is_superuser(context):
return context['request'].user.is_staff or context['request'].user.is_superuser
database_bootstrap = {'text': _(u'bootstrap database'), 'view': 'bootstrap_type_list', 'icon': 'database_lightning.png', 'condition': is_superuser}#, 'children_view_regex': [r'statistics']}
bootstrap_execute = {'text': _(u'execute'), 'view': 'bootstrap_execute', 'args': 'object.name', 'sprite': 'database_lightning.png', 'condition': is_superuser}#, 'children_view_regex': [r'statistics']}