You are trying to create a new user without an email address.
This should work:

u = User(user_name=u'Dan', display_name=u'Dan', password=u'***',
email_address='[EMAIL PROTECTED]')


On Aug 21, 11:03 pm, Dan <[EMAIL PROTECTED]> wrote:
> Using tg-admin shell and an example given on the tg docs about using
> identity:
>
> >>> u = User(user_name=u'Dan', display_name=u'Dan', password=u'***')
>
> Traceback (most recent call last):
>   File "<console>", line 1, in <module>
>   File "/usr/lib/python2.5/site-packages/SQLObject-0.10.0b1-py2.5.egg/
> sqlobject/declarative.py", line 89, in _wrapper
>     return fn(self, *args, **kwargs)
>   File "/usr/lib/python2.5/site-packages/SQLObject-0.10.0b1-py2.5.egg/
> sqlobject/main.py", line 1181, in __init__
>     self._create(id, **kw)
>   File "/usr/lib/python2.5/site-packages/SQLObject-0.10.0b1-py2.5.egg/
> sqlobject/main.py", line 1209, in _create
>     self.set(**kw)
>   File "/usr/lib/python2.5/site-packages/SQLObject-0.10.0b1-py2.5.egg/
> sqlobject/main.py", line 1056, in set
>     kw[name] = dbValue = from_python(value, self._SO_validatorState)
>   File "/usr/lib/python2.5/site-packages/SQLObject-0.10.0b1-py2.5.egg/
> sqlobject/col.py", line 550, in from_python
>     return value.encode(self.db_encoding)
> AttributeError: class NoDefault has no attribute 'encode'
>
> There is at least one previous post on this very same problem, but the
> person said it was fixed without bothering to elaborate on what the
> fix was.
>
> Can someone explain what's amiss?  Thanks!
>
> Dan
--~--~---------~--~----~------------~-------~--~----~
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