- Timestamp:
- 06/29/07 16:05:08 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/0.8(django)/PyLucid/plugins_internal/admin_menu/admin_menu.py
r1116 r1127 2 2 # -*- coding: UTF-8 -*- 3 3 4 __author__ = "Jens Diemer (www.jensdiemer.de)"5 __license__ = "GNU General Public License (GPL)" 6 __url__ = "http://www.PyLucid.org" 4 """ 5 PyLucid admin menu 6 ~~~~~~~~~~~~~~~~~~ 7 7 8 """ 9 the administration top menu 8 The administration top and sub menu. 10 9 11 TODO: edit_page_link should use pageadmin.edit_page - a inline editing 10 Last commit info: 11 ~~~~~~~~~~~~~~~~~ 12 $LastChangedDate: 2007-06-26 10:37:35 +0200 (Di, 26 Jun 2007) $ 13 $Rev: 1111 $ 14 $Author: JensDiemer $ 15 16 :copyright: 2007 by Jens Diemer 17 :license: GNU GPL v2 or above, see LICENSE for more details 12 18 """ 13 19 20 14 21 from PyLucid.system.BaseModule import PyLucidBaseModule 22 15 23 16 24 class admin_menu(PyLucidBaseModule): … … 18 26 def lucidTag(self): 19 27 """ 20 Front menu anzeigen28 Render the front menu 21 29 """ 22 30 current_page_id = self.current_page.id … … 24 32 25 33 context = { 34 "login_link" : self.context["login_link"], 26 35 "edit_page_link": self.URLs.commandLink("page_admin", "edit_page"), 27 # "edit_page_link": edit_link, 28 # "new_page_link": self.URLs.adminLink("PyLucid/page/add/"), 29 "new_page_link": self.URLs.commandLink("page_admin", "new_page"), 30 "sub_menu_link": self.URLs.commandLink("admin_menu", "sub_menu"), 36 "new_page_link" : self.URLs.commandLink("page_admin", "new_page"), 37 "sub_menu_link" : self.URLs.methodLink("sub_menu"), 31 38 } 32 self._render_template("top_menu", context) 39 self._render_template("top_menu", context)#, debug=True) 33 40 34 41 def sub_menu(self): 42 """ 43 render the sub menu 44 """ 35 45 context = { 36 46 "commandURLprefix": self.URLs.get_command_base(), 37 47 "adminURLprefix": self.URLs["adminBase"], 38 48 } 39 # self.page_msg(context) 40 41 self._render_template("sub_menu", context) 49 self._render_template("sub_menu", context)#, debug=True) 42 50 43 51