Show
Ignore:
Timestamp:
05/23/08 16:33:49 (6 months ago)
Author:
JensDiemer
Message:

new page_msg system. Use a middleware to make page_msg lazy: ticket:193

  • update settings_example.py (insert new middleware)
  • change """contextpage_msg?""" to """request.page_msg"""
  • add a simple page_msg unittest (Need more tests!)
  • update _install data (Templates and index page)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/doc/plugin_api.py

    • Property svn:eol-style set to LF
    • Property svn:keywords set to Author
    r1507 r1585  
    1111    $LastChangedDate$ 
    1212    $Rev$ 
    13     $Author: JensDiemer $ 
     13    $Author$ 
    1414 
    1515    :copyleft: 2008 by Jens Diemer 
     
    149149 
    150150    #__________________________________________________________________________ 
     151    # PREFERENCES 
     152    # 
     153    def get_my_preferences(self): 
     154        """ 
     155        more info about plugin preferences: 
     156            http://www.pylucid.org/_goto/153/preferences/ 
     157        """ 
     158        # Get the preferences from the database: 
     159        preferences = self.get_preferences() 
     160 
     161        # Get a entry (It's a dict api) 
     162        my_entry_value = preferences["entry_key"] 
     163 
     164 
     165    #__________________________________________________________________________ 
    151166    # ENVIRONMENT 
    152167    #