If I do:
easy_install
http://www.turbogears.org/2.0/downloads/2.0final/tw.forms-0.9.2.tar.gz
and modify the dependency in sprox-0.6.1, validation works again.
So, if anyone can point me to the documentation for the new validation
in tw.forms-0.9.7, it would be appreciated.
If I use the following code with tw.forms 0.9.6 (and with a base 2.0.1
install)
from tw.forms.validators import NotEmpty
rather than
from formencode.validators import NotEmpty
I receive:
>> ${XML(field.display(value_for(field), **args_for(field)))}
Module tw.core.base:541 in display view
<< kw = self.prepare_dict(value, kw)
self.register_resources()
return super(Widget, self).display(**kw)
def __call__(self, value=None, **kw):
>> return super(Widget, self).display(**kw)
Module tw.core.view:237 in display view
<< def display(self, **kw):
kw.setdefault('_', tw.framework.translator)
return tw.framework.engines.display(self, **kw)
>> return tw.framework.engines.display(self, **kw)
Module tw.core.view:30 in _renderer view
<< if template is None:
return
origin = dynamic_best_engine(renderable, kw)
destination = kw.get('displays_on',
renderable.displays_on)
if origin != 'cheetah':
>> origin = dynamic_best_engine(renderable, kw)
Module tw.core.view:202 in dynamic_best_engine view
<< else:
best_engine = ideal_engine
assert best_engine is not None
return best_engine
>> assert best_engine is not None
AssertionError:
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---