Show
Ignore:
Timestamp:
05/23/08 16:33:49 (22 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/PyLucid/system/URLs.py

    r1537 r1585  
    1111    The view put a instance in context["URLs"]. The BasePlugin bind the class 
    1212    to self. So every plugin can easy access the methods with self.URLs. 
    13      
     13 
    1414    more info: http://pylucid.org/_goto/62/self-URLs/ 
    1515 
     
    102102        self.context     = context 
    103103        self.request     = context["request"] 
    104         self.page_msg    = context["page_msg"] 
     104        self.page_msg    = self.request.page_msg 
    105105 
    106106        self.current_plugin = None