For some reason, Python 2.3.x acts differently than 2.2.x with regard
to imports.

Various files in tmda-cgi import TMDA's Defaults.py, which in turn
imports TMDA's Errors.py, Utils.py, and Version.py.  Under 2.2.x this
worked fine, but 2.3.x wants "from TMDA import ____" statements
instead of "import ____" statements, EVEN THOUGH Errors.py, Utils.py,
and Version.py are all in the same directory as Defaults.py.

I don't know why they would change that.

I believe it was R'twick Niceorgaw who recommended the above change to
Defaults.py, but I'm hesitant to make it myself as:

[1] It will require re-validation TMDA to make sure it doesn't break
anything.

[2] It means that tmda-cgi will become dependent on the next release
of TMDA, putting us in limbo until that release is out.

For the time being, I've put a nasty hack into tmda-cgi which forces
Defaults to do the "from TMDA" sort of imports.  Man, you just gotta'
love a language that lets you do things like that!  We can always
remove this hack later if Jason adds the "from TMDA" statements in.

Anyhow, if you grab tmda-cgi-0.12B, it should work correctly for you,
plus I fixed lots of other things to boot.

Gre7g.
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to