Paul, On 31/01/2011 17:56, Paul McNett wrote: > On 1/31/11 8:25 AM, Werner F. Bruhin wrote: ... >> Links/cross references problem: >> for example "dabo.dObject.dObject" doesn't work but "dObject.dObject" >> works, or if I change some stuff then the first one works but not the >> second one. I am reporting/asking on the Sphinx list, but if someone >> has an idea please let me know. I believe it has to do with the >> ":module::" and "currentmodule::" definitions, but I haven't found one >> which works for both. > You'll probably run into similar issues where it wants to document > dabo.ui.uiwx.dTextBox instead of the proper dabo.ui.dTextBox. These are > issues with > our namespace mangling, an early design decision that I sort of regret and > want to > fix at some point. > This is the big problem I can't solve, are the following issues due to the namespace mangling you refer to?
A couple of samples: EventMixin: from dabo.lib.eventMixin import EventMixin import dabo.lib.eventMixin.EventMixin Traceback (most recent call last): File "<input>", line 1, in <module> ImportError: No module named EventMixin dObject: from dabo.dObject import dObject import dabo.dObject.dObject Traceback (most recent call last): File "<input>", line 1, in <module> ImportError: No module named dObject Why is the first import format working, but not the second one? Are there some rules in dabo when this applies (i.e. what other modules behave like this)? Sphinx seems to be able to deal with it if I use "..automodule:: dabo.lib.whatever but this means that all the nice formatting Andrea's templates provide are gone and things like the inheritance diagram can only be shown after the class. As the "automodule" approach works I am still hopeful that there is some workaround for this issue. Werner _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
