After updateing toTG 1.04b and latest tgfastdata from cheeseshop
errors like this appear (here after pressing the submit button after
an update of a record)

File "/usr/lib/python2.5/site-packages/TGFastData-0.9a7-py2.5.egg/
tgfastdata/datacontroller.py", line 82, in default
    return method(item, *vpath[1:], **params)
  File "/usr/lib/python2.5/site-packages/TurboGears-1.0.4b1-py2.5.egg/
turbogears/identity/conditions.py", line 275, in _wrapper
    return fn( *args, **kw )
  File "<string>", line 3, in update
  File "/usr/lib/python2.5/site-packages/TurboGears-1.0.4b1-py2.5.egg/
turbogears/controllers.py", line 151, in validate
    kw.update(form.validate(value, state))
  File "/usr/lib/python2.5/site-packages/TurboGears-1.0.4b1-py2.5.egg/
turbogears/widgets/forms.py", line 1167, in validate
    return self.validator.to_python(value, state)
  File "/usr/lib/python2.5/site-packages/FormEncode-0.7.1-py2.5.egg/
formencode/api.py", line 368, in to_python
    value = tp(value, state)
  File "/usr/lib/python2.5/site-packages/FormEncode-0.7.1-py2.5.egg/
formencode/schema.py", line 132, in _to_python
    new[name] = validator.to_python(value, state)
  File "/usr/lib/python2.5/site-packages/FormEncode-0.7.1-py2.5.egg/
formencode/api.py", line 368, in to_python
    value = tp(value, state)
  File "/usr/lib/python2.5/site-packages/TurboGears-1.0.4b1-py2.5.egg/
turbogears/validators.py", line 117, in _to_python
    tpl = time.strptime(value, format)
  File "/usr/lib/python2.5/_strptime.py", line 291, in strptime
    format_regex = time_re.compile(format)
  File "/usr/lib/python2.5/_strptime.py", line 267, in compile
    return re_compile(self.pattern(format), IGNORECASE)
  File "/usr/lib/python2.5/_strptime.py", line 254, in pattern
    format = regex_chars.sub(r"\\\1", format)
TypeError: expected string or buffer


Is there something I did wrong ? The same code worked before
with tg 1.0 and an earlier incarnation of tgfastdata.

Thanks for any pointers , as the documentation does not appear to
mention any changes

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to