Show
Ignore:
Timestamp:
06/29/07 16:05:08 (3 years ago)
Author:
JensDiemer
Message:

* new additional Stylesheet/JavaScript handling. A middleware puts the collected data into the page.
* middleware "pagestats" renamed to "additional_content".
* some code cleanup

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.8(django)/PyLucid/plugins_internal/admin_menu/admin_menu.py

    r1116 r1127  
    22# -*- coding: UTF-8 -*- 
    33 
    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    ~~~~~~~~~~~~~~~~~~ 
    77 
    8 """ 
    9 the administration top menu 
     8    The administration top and sub menu. 
    109 
    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 
    1218""" 
    1319 
     20 
    1421from PyLucid.system.BaseModule import PyLucidBaseModule 
     22 
    1523 
    1624class admin_menu(PyLucidBaseModule): 
     
    1826    def lucidTag(self): 
    1927        """ 
    20         Front menu anzeigen 
     28        Render the front menu 
    2129        """ 
    2230        current_page_id  = self.current_page.id 
     
    2432 
    2533        context = { 
     34            "login_link"    : self.context["login_link"], 
    2635            "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"), 
    3138        } 
    32         self._render_template("top_menu", context) 
     39        self._render_template("top_menu", context)#, debug=True) 
    3340 
    3441    def sub_menu(self): 
     42        """ 
     43        render the sub menu 
     44        """ 
    3545        context = { 
    3646            "commandURLprefix": self.URLs.get_command_base(), 
    3747            "adminURLprefix": self.URLs["adminBase"], 
    3848        } 
    39 #        self.page_msg(context) 
    40  
    41         self._render_template("sub_menu", context) 
     49        self._render_template("sub_menu", context)#, debug=True) 
    4250 
    4351