content

changeset 142:92c5a5e0d15f trunk

added parent: template variables
author Thomas Jollans <thomas@jollans.com>
date Fri Aug 24 15:36:52 2007 +0200 (2007-08-24)
parents a92d50efbb0b
children c247de348768
files modules/content.py
line diff
     1.1 --- a/modules/content.py	Fri Aug 17 23:53:40 2007 +0200
     1.2 +++ b/modules/content.py	Fri Aug 24 15:36:52 2007 +0200
     1.3 @@ -363,6 +363,9 @@
     1.4          else:
     1.5              tpl.set_vars(vars)
     1.6  
     1.7 +        vars  = dict(('parent:'+k, v) for (k, v) in vars.iteritems()
     1.8 +                                        if not k.startswith('parent:'))
     1.9 +
    1.10          if hook2 is not None:
    1.11              hook2(self,tpl,block)
    1.12