diff --git a/VERSION b/VERSION index 663ebeb0..69c58d1e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-08-26 11:50:44) dev +Version 2.00.0 (2012-08-26 14:12:05) dev diff --git a/gluon/html.py b/gluon/html.py index b758c597..61b1c9d8 100644 --- a/gluon/html.py +++ b/gluon/html.py @@ -656,10 +656,10 @@ class DIV(XmlComponent): self.attributes = attributes self._fixup() # converts special attributes in components attributes - self._postprocessing() self.parent = None for c in self.components: self._setnode(c) + self._postprocessing() def update(self, **kargs): """ @@ -2323,7 +2323,7 @@ def test(): >>> print form.accepts({'myvar':'34'}, formname=None) False >>> print form.xml() -
+ >>> print form.accepts({'myvar':'4'}, formname=None, keepvalues=True) True >>> print form.xml() @@ -2337,7 +2337,7 @@ def test(): >>> print form.accepts({'myvar':'as df'}, formname=None) False >>> print form.xml() - + >>> session={} >>> form=FORM(INPUT(value=\"Hello World\", _name=\"var\", requires=IS_MATCH('^\w+$'))) >>> if form.accepts({}, session,formname=None): print 'passed'