I have a fastdata-based UI to edit a record which has a datetime column.
After upgrading to latest SVN it stopped working. First, calendar popup
displays 'undefined' instead of month' dates. More importantly, attempt to save
changes gives an error.
Any idea what's wrong?
Model definition is:
class Resource(SQLObject):
source_published = DateTimeCol(default=datetime_now,
title="Source publish datetime")
The trackback:
Page handler: <function _wrapper at 0x016935F0>
Traceback (most recent call last):
File
"c:\python24\lib\site-packages\cherrypy-2.2.0rc1-py2.4.egg\cherrypy\_cphttptools.py",
line 99, in _run
self.main()
File
"c:\python24\lib\site-packages\cherrypy-2.2.0rc1-py2.4.egg\cherrypy\_cphttptools.py",
line 248, in main
body = page_handler(*virtual_path, **self.params)
File "d:\projects\3rd-party\turbogears\turbogears\identity\conditions.py",
line 274, in _wrapper
return fn( *args, **kw )
File "<string>", line 3, in default
File "d:\projects\3rd-party\turbogears\turbogears\controllers.py", line 207,
in expose
output = database.run_with_transaction(expose._expose,func, accept,
allow_json, allow_json_from_config,*args, **kw)
File "d:\projects\3rd-party\turbogears\turbogears\database.py", line 216, in
run_with_transaction
retval = func(*args, **kw)
File "<string>", line 5, in _expose
File "d:\projects\3rd-party\turbogears\turbogears\controllers.py", line 228,
in <lambda>
expose._expose.when(rule)(lambda _func, accept, allow_json,
allow_json_from_config,*args,**kw: _execute_func(
File "d:\projects\3rd-party\turbogears\turbogears\controllers.py", line 246,
in _execute_func
output = errorhandling.try_call(func, *args, **kw)
File "d:\projects\3rd-party\turbogears\turbogears\errorhandling.py", line 59,
in try_call
output = func(self, *args, **kw)
File
"d:\projects\3rd-party\turbogears\turbogears\fastdata\datacontroller.py", line
61, in default
return method(item, *vpath[1:], **params)
File "d:\projects\3rd-party\turbogears\turbogears\identity\conditions.py",
line 274, in _wrapper
return fn( *args, **kw )
File "<string>", line 3, in update
File "d:\projects\3rd-party\turbogears\turbogears\controllers.py", line 204,
in expose
output = expose._expose(func, accept, allow_json, allow_json_from_config,
*args, **kw)
File "<string>", line 5, in _expose
File "d:\projects\3rd-party\turbogears\turbogears\controllers.py", line 228,
in <lambda>
expose._expose.when(rule)(lambda _func, accept, allow_json,
allow_json_from_config,*args,**kw: _execute_func(
File "d:\projects\3rd-party\turbogears\turbogears\controllers.py", line 246,
in _execute_func
output = errorhandling.try_call(func, *args, **kw)
File "d:\projects\3rd-party\turbogears\turbogears\errorhandling.py", line 59,
in try_call
output = func(self, *args, **kw)
File "<string>", line 3, in update
File "d:\projects\3rd-party\turbogears\turbogears\controllers.py", line 143,
in validate
return errorhandling.run_with_errors(errors, func, *args, **kw)
File "d:\projects\3rd-party\turbogears\turbogears\errorhandling.py", line 96,
in run_with_errors
output = func(self, *args, **kw)
File "D:\Projects\Spaca\spaca\controllers.py", line 306, in update
super(BaseDashboardController, self).update(obj, **data)
File "<string>", line 3, in update
File "d:\projects\3rd-party\turbogears\turbogears\controllers.py", line 110,
in validate
kw.update(form.validate(value))
File "d:\projects\3rd-party\turbogears\turbogears\widgets\forms.py", line
865, in validate
return self.validator.to_python(value, state)
File
"c:\python24\lib\site-packages\formencode-0.4-py2.4.egg\formencode\api.py",
line 308, in to_python
value = tp(value, state)
File
"c:\python24\lib\site-packages\formencode-0.4-py2.4.egg\formencode\schema.py",
line 132, in _to_python
new[name] = validator.to_python(value, state)
File
"c:\python24\lib\site-packages\formencode-0.4-py2.4.egg\formencode\api.py",
line 308, in to_python
value = tp(value, state)
File "d:\projects\3rd-party\turbogears\turbogears\validators.py", line 72, in
_to_python
tpl = time.strptime(value, self.format)
File "C:\Python24\lib\_strptime.py", line 290, in strptime
found = format_regex.match(data_string)
TypeError: expected string or buffer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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-trunk
-~----------~----~----~----~------~----~------~--~---