-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

how to make sqlobject work with a legacy table wich has a primary key
combined by two rows? Like this?

  PRIMARY KEY  (`interface_id`,`mac_addr`)

What is the suggested solution for this case?

As a workaround a virtual field came into my mind like

  def _set_id(self, id):
      # put id into interface_id, mac_addr here


  def _get_id(self, id):
      # get id from interface_id, mac_addr here



- --
Schönen Gruß - Regards
Hartmut Goebel

| Hartmut Goebel             | IT-Security -- effizient |
| [EMAIL PROTECTED] | www.goebel-consult.de    |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iQEVAwUBQ/CVvMzajR0mSa83AQK6tQf/Xt1FHuRioNmMso31PebG6dhANGIeY0m6
SU6wGq+p2jxc82JKGGW6eLAU6V0Z57UUK8oWSUDic/WV15dPtNS8Yg8AklwYoqlm
XMHDCjnxeOnovVj+1oPlma/Ttq56mRlUE1yEz6tmgx0l+XQ/+D0P8pV3nQ3oQA73
abnH52lMk6nh/X0Ji5brUAAsiYhLag08RS+WLgSgIvfIAMkk/W96071CiOPw3Qvs
vUqeUZ8hv5Ze3BK8IxSQko94bBBvXlguGxrR1JG5Wd4eC+zW9gOWgdgsEVQXdE8Z
HPiBhHe2U++OFlO2l601krLPZGjsufs/UHNLvjPHZkLTDP3+Qb/B2A==
=9mi6
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to