web/form.py
branchtls-sprint
changeset 1756 42d87dedd631
parent 1755 1bd225376013
child 1843 646c2dd1f03e
equal deleted inserted replaced
1755:1bd225376013 1756:42d87dedd631
    48 # XXX should disappear
    48 # XXX should disappear
    49 class FormMixIn(object):
    49 class FormMixIn(object):
    50     """abstract form mix-in
    50     """abstract form mix-in
    51     XXX: you should inherit from this FIRST (obscure pb with super call)
    51     XXX: you should inherit from this FIRST (obscure pb with super call)
    52     """
    52     """
    53 
       
    54     def initialize_varmaker(self):
       
    55         varmaker = self.req.get_page_data('rql_varmaker')
       
    56         if varmaker is None:
       
    57             varmaker = self.req.varmaker
       
    58             self.req.set_page_data('rql_varmaker', varmaker)
       
    59         self.varmaker = varmaker
       
    60 
    53 
    61     def session_key(self):
    54     def session_key(self):
    62         """return the key that may be used to store / retreive data about a
    55         """return the key that may be used to store / retreive data about a
    63         previous post which failed because of a validation error
    56         previous post which failed because of a validation error
    64         """
    57         """