attribute extensions can be passed to any column_property() or relation()
now.    There's no hook at the moment in the "attribute extension" API
which fires at the point at which the "AttributeImpl" is assembled.


Mike Bernson wrote:
>
> I am trying to move from 0.5beta4 to 0.5.2
>
> The attribute events are giving me a problem
>
> The code worked in 0.5beta4 and now is broken.
>
>
> class base(object):
>      __sa_instrumentation_manager__ = SetListener
>
>
>
> listener = ReceiveEvents()
>
> class SetListener(InstrumentationManager):
>      def instrument_attribute(self, class_, key, inst):
>          inst.impl.extensions.append(listener)
>
> when instrument_attribute is called inst.impl is None.
>
> I then look at the examples and try the examples/custom_attributes.py
> which had the same problem.
>
> Any Ideas on how to make the this work again ?
>
>
> >
>


--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to