Heya

When creating classes with circular dependencies (via sqlobject-admin),
there's a warning. This has been discussed before. While I don't propose a
general solution to the problem, a simple workaround for self referring
classes may be used.
In command.py, line 211 (sqlobject 0.12.1, in findReverseDependencies() )
change from:

if other not in depended:

to:

if other is not cls and other not in depended:

In the case of only self-referring classes, the ordering still makes sense
this way.

Cheers,
Imri

-- 
Imri Goldberg
--------------------------------------
http://plnnr.com/ - automatic trip planning
http://www.algorithm.co.il/blogs/
--------------------------------------
-- insert signature here ----
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to