[sqlalchemy] Re: @synonym_for lose the docstrings

2009-06-12 Thread Angri
I think that patch which you would like to provide could add functools.wraps decorator to the decorator defined in synonym_for(). See http://docs.python.org/library/functools.html#functools.wraps -- Anton Gritsay http://angri.ru On 12 июн, 22:20, Christophe de VIENNE cdevie...@gmail.com wrote:

[sqlalchemy] Pros and cons of flushing subset of session's objects

2009-02-11 Thread Angri
dispatch. It can be used not only with mapper's events but also with ddl-events. The main pro of this approach is the ability to subscribe to (or unsubscribe from) such events in run-time. -- Angri --~--~-~--~~~---~--~~ You received this message because you

[sqlalchemy] Re: Pros and cons of flushing subset of session's objects

2009-02-11 Thread Angri
extension...) -- Angri --~--~-~--~~~---~--~~ 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

[sqlalchemy] Re: Extending sqlalchemy.schema.Column and metaprogramming traps

2008-12-11 Thread Angri
it as an email attachment, or create a ticket in trac as   guest/guest and attach it there:  http://www.sqlalchemy.org/trac/newticket On Dec 10, 2008, at 5:19 PM, Angri wrote: if you'd like to submit a patch which defines __visit_name__ for all ClauseElements and removes the logic from

[sqlalchemy] Re: Extending sqlalchemy.schema.Column and metaprogramming traps

2008-12-10 Thread Angri
if you'd like to submit a patch which defines __visit_name__ for all   ClauseElements and removes the logic from VisitableType to guess the   name, it will be accepted.  The second half of VisitableType still may   be needed since it improves performance. Ok, I did it. Can not find where I

[sqlalchemy] Re: Extending sqlalchemy.schema.Column and metaprogramming traps

2008-12-09 Thread Angri
properties!) instead of doing things like eval(Annotated%s % element.__class__.__name__)? On Dec 7, 1:33 am, Michael Bayer [EMAIL PROTECTED] wrote: On Dec 6, 2008, at 4:27 PM, Angri wrote: 1. What about another side-effects depending on clsname? Is it actually safe to extend

[sqlalchemy] Extending sqlalchemy.schema.Column and metaprogramming traps

2008-12-06 Thread Angri
to extend sqlalchemy.schema.Column, or it may have unpredictable behavior similar to that i've encountered? 2. (almost offtopic) Is 'exec' really need there? What's wrong with closures? 3. Maybe I should send it to developers mailing list? Thanks. -- Angri