Hi Chris,

> Do you use SQLObject or SQLAlchemy? Can you show us your model code?

I'm using SQLObject. My model.py looks like:

class User(SQLObject):
    """Users table"""
    username = UnicodeCol(alternateID=True, length=50)
    password = UnicodeCol(length=25)
    de = IntCol()
    en = IntCol()
    es = IntCol()
    fr = IntCol()
    it = IntCol()
    nl = IntCol()
    photos = RelatedJoin("Photo")
    magicnumber = UnicodeCol(length=15)
    sessions = MultipleJoin("Session")
    score = IntCol(default=0)
    prec = FloatCol(default=0)
    avgtime = FloatCol(default=0)


The table stores some data about users. My app is a kind of game in
which users have to find some images using a search engine.

As I said before, I can query this table with no hassle from the
interpreter but when querying from my controllers.py file, I get the
error message "type object 'User' has no attribute 'select'".

Any idea about what's wrong? Best,


-- 
Víctor Peinado | NLP & IR Group - UNED | http://nlp.uned.es/~victor
Tel (+34) 91 398 8106
Skype/GTalk: vitojph

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