On 11/15/06, Swan Wing <[EMAIL PROTECTED]> wrote:
> HI,
> I use TurboGear 1.0b on my project.i get some prolem here when i try it:
>
> 1) on my model.py, I create tow class,
>
> class Catogery(SQLObject):
> name = StringCol(length = 128)
> books = MultipleJoin('Book')
>
> class Book(SQLObject):
> name = StringCol(length = 128)
> catogery = ForeignKey('Catogery')
>
> when i execute tg-admin sql create, it also give me some error message:
> Connection' object has no attribute 'autocommit'"
>
Try changing the start of your dburi in dev/prod.cfg from `sqlite` to
`notrans_sqlite`.
> i search this problem with google. i found that havs so more person ever
> meet the prolbelm.i cann't understand pysqlite or
> TurboGear which one occur the problem?
>
> 2) following above description, if I change database from sqlite to mysql,
> everthing is corret.but when i use CATWalk manage
> my table, i cann't input chinese. the catwalk page prompt me cann't convert
> ascii to unicode.
At the moment Catwalk isn't great at using Unicode characters. I'm
afraid you'll be limited to tg-admin shell or your own input
interfaces for now.
> i try to add setcustomize.py to /usr/lib/python2.4/site-package and add
> following statement in start-project.py
> import sys
> reload(sys)
> sys.setdefaultencoding('utf8')
>
> but nothing happen.
>
> who can give me some advise?
I would suggest reading the following post to see if it helps you:
http://groups-beta.google.com/group/turbogears/browse_thread/thread/c97f7a580c3b5522?hl=en
>
> Sorry for my pool english.
No problem, your english is fairly good if you ask me :)
Lee
--
Lee McFadden
blog: http://www.splee.co.uk
work: http://fireflisystems.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---