Michael Bayer wrote:
On May 20, 2008, at 12:15 PM, Gregor Kling wrote:
its not going to work if you create the mapper() (and Table) per
class
instance (i.e. within __init__),
It was a typo. It should be all SrvDomainTable.
But why shouldn't it work, I already do the test and it does.
Could
Gregor Kling wrote:
Michael Bayer wrote:
On May 20, 2008, at 12:15 PM, Gregor Kling wrote:
its not going to work if you create the mapper() (and Table) per class
instance (i.e. within __init__),
It was a typo. It should be all SrvDomainTable.
But why shouldn't it work, I already do
, right_table)
because it uses only the parent mapper to some things,
whereas the childmapper is unchanged..
thanks
gregor
--
Gregor Kling
Abteilung ITS, Sachgebiet DVZ
Fachhochschule Giessen
Tel: 0641/309-1292
E-Mail: [EMAIL PROTECTED]
smime.p7s
Description: S/MIME Cryptographic Signature
Michael Bayer wrote:
from sqlalchemy import *
from sqlalchemy.orm import mapper
from dvzrv.db import sAmetaData
class SrvDomainTable(object):
def __init__(self,domain_name=None,srv_id=None):
self.sAtablename = 'srv_domain'
self.sAsrv_domain_table = Table(self.sAtablename,