isn't a standalone application. Can you include the complete trace
On 08/15/2016 10:50 AM, Tom Kedem wrote:
> Thanks the for quick reply.
> Trying to mush it to a single file I accidentally found the source (not
> the solution unfortunately) of the problem.
> It only happens when I use FlaskSqlalchemy as the base class... so maybe
> it's something on their part?
> I attached a file (python 3). You must use flask-sqlalchemy master to
> run it, as it uses a custom base class which I think isn't released yet.
> I suppose their base class generates those events. I commented out the
> declarative_base usage that works (see attached file).
>
> On Monday, August 15, 2016 at 4:57:19 PM UTC+3, Mike Bayer wrote:
>
> can you attach a quick single-file .py script that I can run, and will
> show how you're getting this error? you might be in an "impossible"
> block there, in that you are trying to add an event listener within
> that
> same event, but I need to see if what you're doing is really something
> that should be made to work. That is, perhaps declarative should
> use a
> different system internally for the __declare_first__ in order to get
> around this.
>
>
>
> On 08/15/2016 09:38 AM, Tom Kedem wrote:
> > I'm trying to create a dynamic many_to_many relationship, inspired
> by:
> >
http://techspot.zzzeek.org/2011/05/17/magic-a-new-orm/