2005/12/23, Michael Bayer <[EMAIL PROTECTED]>: > limodou wrote: > > > > Great! > > > > But I had to say the user-defined class takes more important place > > than before, is that right? > > > > > > -- > > are you referring to the "select", "get", etc. methods being attached to > the class ? I put a quick method for that called "assign_mapper". Theres > an old "assignmapper" method that I am probably going to get rid of. > "assign_mapper" can be used just like mapper(), and you can view it here: > > http://www.sqlalchemy.org/trac/browser/sqlalchemy/trunk/lib/sqlalchemy/mapping/__init__.py#L166 > Great! These will make my codes tidier.
But what I mean is that, if the LazyLoad can only be used in mapper definition, this make the User-defined Class is more important than before. > I am still considering the idea of a "base class" or a "mixin class" that > defines basic mapping abilities also, since I am not a fan of attaching > methods to the class like that (which I now know to be called > "monkeypatching"). > "monkeypatching", I'v seen it at other place also, and that's the meaning of it? Very interesting. -- I like python! My Blog: http://www.donews.net/limodou NewEdit Maillist: http://groups.google.com/group/NewEdit ------------------------------------------------------- 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://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Sqlalchemy-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

