I'm upgrading from 1.0.1 to 1.0.3.2. I'm getting the following error
that seems to be related to the new implementation of copy_schema in
turbogears.widgets.meta
File "/home/randall/downloads/svn/turbogears_1.0.3.2/turbogears/
widgets/meta.py", line 211, in copy_schema
new_schema = copy.copy(schema)
File "/usr/lib/python2.4/copy.py", line 97, in copy
rv = reductor(2)
File "/usr/lib/python2.4/copy_reg.py", line 69, in _reduce_ex
raise TypeError, "can't pickle %s objects" % base.__name__
I can duplicate this on a fresh quickstarted project by adding these
lines to model.py:
from turbogears import widgets, validators
class FormSchema(validators.Schema):
pass
fields = [widgets.TextField(name='testfield')]
form = widgets.ListForm(fields=fields, validator=FormSchema)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---