All pastes #803124 Raw Edit

Untitled

public text v1 · immutable
#803124 ·published 2007-11-30 22:27 UTC
rendered paste body
500 Internal error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/cherrypy/_cphttptools.py", line 105, in _run
    self.main()
  File "/var/lib/python-support/python2.4/cherrypy/_cphttptools.py", line 254, in main
    body = page_handler(*virtual_path, **self.params)
  File "<string>", line 3, in save
  File "/var/lib/python-support/python2.4/turbogears/identity/conditions.py", line 235, in require
    return fn(self, *args, **kwargs)
  File "<string>", line 3, in save
  File "/var/lib/python-support/python2.4/turbogears/controllers.py", line 342, in expose
    output = database.run_with_transaction(
  File "<string>", line 5, in run_with_transaction
  File "/var/lib/python-support/python2.4/turbogears/database.py", line 316, in so_rwt
    retval = func(*args, **kw)
  File "<string>", line 5, in _expose
  File "/var/lib/python-support/python2.4/turbogears/controllers.py", line 359, in <lambda>
    mapping, fragment, args, kw)))
  File "/var/lib/python-support/python2.4/turbogears/controllers.py", line 386, in _execute_func
    output = errorhandling.try_call(func, *args, **kw)
  File "/var/lib/python-support/python2.4/turbogears/errorhandling.py", line 72, in try_call
    return func(self, *args, **kw)
  File "<string>", line 3, in save
  File "/var/lib/python-support/python2.4/turbogears/controllers.py", line 151, in validate
    kw.update(form.validate(value, state))
  File "/var/lib/python-support/python2.4/turbogears/widgets/forms.py", line 1167, in validate
    return self.validator.to_python(value, state)
  File "/usr/lib/python2.4/site-packages/formencode/api.py", line 368, in to_python
    value = tp(value, state)
  File "/usr/lib/python2.4/site-packages/formencode/schema.py", line 132, in _to_python
    new[name] = validator.to_python(value, state)
  File "/usr/lib/python2.4/site-packages/formencode/api.py", line 368, in to_python
    value = tp(value, state)
  File "/var/lib/python-support/python2.4/turbogears/validators.py", line 117, in _to_python
    tpl = time.strptime(value, format)
  File "_strptime.py", line 287, in strptime
    format_regex = time_re.compile(format)
  File "_strptime.py", line 264, in compile
    return re_compile(self.pattern(format), IGNORECASE)
  File "_strptime.py", line 251, in pattern
    format = regex_chars.sub(r"\\\1", format)
TypeError: expected string or buffer

Powered by CherryPy 2.2.1