Hi All
I just started to work on TG1.0 and SQLObject before a week.

So i thought to make a simple application
I have two classes

class Genre(SQLObject):
    genre = StringCol(length=255)
    summary = StringCol(length=255)
    movies = MultipleJoin('Movie')

class Movie(SQLObject):
    title = StringCol(length=255)
    description = StringCol(length=255)
    genres = ForeignKey('Genre')
    directors = RelatedJoin('Director')
    #release_date = DateTimeCol( default=datetime.now )

but when i try to save through CatWalk i get an error

An error occurred: encode() argument 1 must be string, not None

2009-12-02 12:16:23,390 turbogears.controllers DEBUG Calling <function add
at 0x
0178F930> with *((<turbogears.toolbox.catwalk.CatWalk object at
0x01795490>,)),
**({'genre': u'comedy', 'objectName': u'Genre', 'summary': u'Comdey Movie'})

but i am able to save the records through tg-admin shell successfully..



-- 
Praveen Kumar
+91 9620621342
http://praveensunsetpoint.wordpress.com
Bangalore

--

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