hi there,
how can an instance of a class with a Table bound to it
access the values of the values of "its" db record?


what I would like to do is something like the following:
class company(Base):
  __table__ = 'tblCompany'
  ...

  def listAssignedProducts(self):
     print assigned products


class tblProducts_kl(Base2):
    '''
    User item kl class
    '''
    __tablename__ = 'tblProducts_kl'
    companies = relation(
        'tblCompany',
        secondary=tables2['tblProductsSupplier_kl'],
        backref="related_klProducts",
    )

    def assignMyselfToCompany(self, company_id):
        # add my self to company
        company = getCompanyByIs(company_id)

        now how do I proceed from here?


is this possible at all?
thanks
robert

--~--~---------~--~----~------------~-------~--~----~
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 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to