I get this error message when I try to save a new entry into my model.
 I can't work out any useful information from it.

Does anyone else have any ideas...

Ed


Page handler: <bound method PostController.save of
<wltm.controllers.PostController object at 0x0157C710>>
Traceback (most recent call last):
  File 
"c:\python24\lib\site-packages\CherryPy-2.2.1-py2.4.egg\cherrypy\_cphttptools.py",
line 105, in _run
    self.main()
  File 
"c:\python24\lib\site-packages\CherryPy-2.2.1-py2.4.egg\cherrypy\_cphttptools.py",
line 254, in main
    body = page_handler(*virtual_path, **self.params)
  File "<string>", line 3, in save
  File 
"c:\python24\lib\site-packages\TurboGears-0.9a6-py2.4.egg\turbogears\controllers.py",
line 273, in expose
    output = database.run_with_transaction(
  File 
"c:\python24\lib\site-packages\TurboGears-0.9a6-py2.4.egg\turbogears\database.py",
line 221, in run_with_transaction
    retval = func(*args, **kw)
  File "<string>", line 5, in _expose
  File 
"c:\python24\lib\site-packages\TurboGears-0.9a6-py2.4.egg\turbogears\controllers.py",
line 290, in <lambda>
    mapping, fragment, *args, **kw)))
  File 
"c:\python24\lib\site-packages\TurboGears-0.9a6-py2.4.egg\turbogears\controllers.py",
line 314, in _execute_func
    output = errorhandling.try_call(func, *args, **kw)
  File 
"c:\python24\lib\site-packages\TurboGears-0.9a6-py2.4.egg\turbogears\errorhandling.py",
line 71, in try_call
    return func(self, *args, **kw)
  File "D:\TG-Sites\WLTM\wltm\controllers.py", line 42, in save
    network = db.save_network(**kwargs)
  File "D:\TG-Sites\WLTM\wltm\model.py", line 217, in save_network
    network = Network(**network_dict)
  File 
"c:\python24\lib\site-packages\SQLObject-0.7.1dev_r1675-py2.4.egg\sqlobject\declarative.py",
line 92, in _wrapper
    return_value = fn(self, *args, **kwargs)
  File 
"c:\python24\lib\site-packages\SQLObject-0.7.1dev_r1675-py2.4.egg\sqlobject\main.py",
line 1197, in __init__
    self._create(id, **kw)
  File 
"c:\python24\lib\site-packages\SQLObject-0.7.1dev_r1675-py2.4.egg\sqlobject\main.py",
line 1221, in _create
    self.set(**kw)
  File 
"c:\python24\lib\site-packages\SQLObject-0.7.1dev_r1675-py2.4.egg\sqlobject\main.py",
line 1080, in set
    kw[name] = dbValue = from_python(value, self._SO_validatorState)
  File 
"c:\python24\lib\site-packages\SQLObject-0.7.1dev_r1675-py2.4.egg\sqlobject\col.py",
line 547, in from_python
    return value.encode(self.db_encoding)
  File "c:\Python24\lib\cgi.py", line 540, in __getattr__
    raise AttributeError, name
AttributeError: encode

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

Reply via email to