Please people help me

My Simple Model

class Record:
        has_field('special_number',Unicode(100))
        belongs_to('person',of_kind='Person')

class Person:
        has_field('name',Unicode(100))

=====================================================
Use this:
        Record(special_number=111,person=Person(name='myname'))

But now a i need access the special_number attribute in Record
starting at Person

I try this and don't work:
        print Person.query(Record).one().special_number

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to