--- a/appobject.py Tue May 12 19:20:49 2009 +0200
+++ b/appobject.py Tue May 12 20:17:37 2009 +0200
@@ -196,6 +196,13 @@
view = self.vreg.select_view(__fallback_vid, self.req, rset, **kwargs)
return view.render(**kwargs)
+ def initialize_varmaker(self):
+ varmaker = self.req.get_page_data('rql_varmaker')
+ if varmaker is None:
+ varmaker = self.req.varmaker
+ self.req.set_page_data('rql_varmaker', varmaker)
+ self.varmaker = varmaker
+
# url generation methods ##################################################
controller = 'view'
--- a/view.py Tue May 12 19:20:49 2009 +0200
+++ b/view.py Tue May 12 20:17:37 2009 +0200
@@ -307,13 +307,6 @@
if row:
w(u'</div>')
- def initialize_varmaker(self):
- varmaker = self.req.get_page_data('rql_varmaker')
- if varmaker is None:
- varmaker = self.req.varmaker
- self.req.set_page_data('rql_varmaker', varmaker)
- self.varmaker = varmaker
-
# concrete views base classes #################################################
--- a/web/form.py Tue May 12 19:20:49 2009 +0200
+++ b/web/form.py Tue May 12 20:17:37 2009 +0200
@@ -51,13 +51,6 @@
XXX: you should inherit from this FIRST (obscure pb with super call)
"""
- def initialize_varmaker(self):
- varmaker = self.req.get_page_data('rql_varmaker')
- if varmaker is None:
- varmaker = self.req.varmaker
- self.req.set_page_data('rql_varmaker', varmaker)
- self.varmaker = varmaker
-
def session_key(self):
"""return the key that may be used to store / retreive data about a
previous post which failed because of a validation error