Ticket #9 (closed enhancement: fixed)

Opened 5 years ago

Last modified 4 years ago

Enhance target resolving code to cope with more situations

Reported by: ged Owned by: ged
Priority: normal Milestone: 0.6
Component: core Version:
Keywords: Cc:

Description

handle cases like:

from modules import a as x ... of_kind='x.c.A'

Change History

Changed 5 years ago by ged

  • owner set to ged
  • status changed from new to accepted

Changed 4 years ago by ged

It'd be nice to also handle the following case:

in __init__.py:

from a import A
from b import B

setup_all()

in a.py:

    b = ManyToOne('B')

in b.py:

    as_ = OneToMany('A')

Currently this pattern seem to work with python2.4 (that's kind of unexpected), but not python2.5, as reported on the mailing list in thread:

http://groups.google.com/group/sqlelixir/browse_frm/thread/bc8b23a1ae8bd9ec

Changed 4 years ago by ged

  • priority changed from minor to major

Changed 4 years ago by ged

  • milestone set to 0.6

Changed 4 years ago by ged

  • status changed from accepted to closed
  • resolution set to fixed

Done in r363, though the pattern described in earlier comment is not supported by default. A global lookup method should work fine for most situations.

Note: See TracTickets for help on using tickets.