Dear sqlobject-discuss,

  i've just started using SQLObject, therefore my questions are rather
  simple, may be "stupid"

  i use postgres as backend
  i have already a database, and i have a schema in this database also
  (different than public)

  i was able to create a table in this schema specifying the
  sqlmeta.table property to the to "ps_schema.knowledge_base"

  but when i try connect to this existing database i receive always a
  "No primary key found in table ..." message
  here is my code:
  
class KB(sqlobject.SQLObject):
...     _connection=conn
...     class sqlmeta:
...             table="ps_schema.knowladgebase"
...             fromDatabase=True  

  what is the problem?
  i tried also to specify the idName property, without any success

-- 
Best regards,
 Ivan Horvath
 Chief Programmer

Anyone who has never made a mistake has never tried anything new.

/Albert Einstein/ 



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to