Changeset 1409
- Timestamp:
- 14.02.2008 14:53:16 (3 months ago)
- Files:
-
- trunk/pylucid/PyLucid/plugins_internal/admin_menu/admin_menu.py (modified) (1 diff)
- trunk/pylucid/PyLucid/plugins_internal/admin_menu/internal_pages/sub_menu.html (modified) (2 diffs)
- trunk/pylucid/PyLucid/system/plugin_manager.py (modified) (1 diff)
- trunk/pylucid/PyLucid/system/utils.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pylucid/PyLucid/plugins_internal/admin_menu/admin_menu.py
r1168 r1409 43 43 render the sub menu 44 44 """ 45 is_admin = self.request.user.is_superuser or self.request.user.is_staff 46 45 47 context = { 46 48 "PAGE" : self.context["PAGE"], 47 49 "commandURLprefix": self.URLs.get_command_base(), 48 50 "adminURLprefix" : self.URLs["adminBase"], 51 "is_admin" : is_admin, 49 52 } 50 53 self._render_template("sub_menu", context)#, debug=True) trunk/pylucid/PyLucid/plugins_internal/admin_menu/internal_pages/sub_menu.html
r1384 r1409 14 14 </ul> 15 15 </fieldset> 16 17 {% if is_admin %} 16 18 17 19 <fieldset><legend>{% trans 'edit look' %}</legend> … … 63 65 </fieldset> 64 66 65 66 {% comment %} 67 <fieldset><legend>{% trans 'backup' %}</legend> 68 69 * "{% trans 'DB dump' %}":{{ commandURLprefix }}/MySQLdump/menu 70 71 </fieldset> 72 73 <fieldset><legend>{% trans 'internals' %}</legend> 74 75 * <lucidTag:show_internals/> 76 77 </fieldset> 78 {% endcomment %} 67 {% endif %} trunk/pylucid/PyLucid/system/plugin_manager.py
r1392 r1409 142 142 else: 143 143 raise AccessDeny 144 145 if method_cfg["must_admin"]: 146 # The User must be an admin to use this method 147 if not (request.user.is_superuser or request.user.is_staff): 148 raise AccessDeny 144 149 145 150 URLs = context["URLs"] trunk/pylucid/PyLucid/system/utils.py
r1304 r1409 25 25 add the attribute "debug" to the request object. 26 26 """ 27 if settings.DEBUG and\27 if settings.DEBUG or \ 28 28 request.META.get('REMOTE_ADDR') in settings.INTERNAL_IPS: 29 29 request.debug = True 30 30 else: 31 31 request.debug = False 32 32 33 33 34 def get_uri_base():
