Hi all,

O.K. I did the rename (with dropping the 'd') and got dialog.py to work again.

I tried all kind of stuff without the rename but didn't get anywhere - that doesn't mean that there isn't a way;-) .

Some notes to what I have done:

- rename all the modules (class names have not changed) in dabo.ui and dabo.ui.uiwx to be lower case and drop the 'd', except for 'dcalender' which causes a conflict with Python's calender. I don't understand that one at all as all the absolute/relative import stuff should prevent just that case.

- to be able to run the tests in e.g. uiwx.dialog.py I needed to add the following, see http://www.python.org/dev/peps/pep-0366/
    if __package__ is None:
        import dabo.ui.uiwx
        __package__ = "dabo.ui.uiwx"

I just noticed that '2to3' changed 'unicode' and 'basestring' to 'str' and 'long' to 'int' in e.g. dObject and dUtils which is not compatible with Python 2.7.x. I see if I find a solution which is compatible for both Py2 and Py3, otherwise I use "if six.PY2 to whatever else do Py3 thingy".

After I fix this 'unicode/basestring/long' issue I will try to get all the 'uiwx' module tests to work again (i.e. fix lowercase issues).

Werner

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to