zope.app.apidoc and Chameleon are not friends

Bug #701623 reported by Gary Poster
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Chamelon Core
New
Undecided
Unassigned
zope.app.apidoc
New
Undecided
Unassigned

Bug Description

One challenge when trying to switch Launchpad to Chameleon (https://dev.launchpad.net/LEP/Chameleon) is that zope.app.apidoc and Chameleon do not accommodate one another. svn+ssh://svn.zope.org/repos/main/zope.app.apidoc/trunk r118939 fixes some issues.

zope.app.apidoc introspects Chameleon objects and adds underwear that confuses the rest of the code. An example is that
chameleon.core.config.SYMBOLS.as_dict returns unwanted values. I tried for an approach I liked better, but this quick hack makes things run better:

    @classmethod
    def as_dict(cls):
        return dict((name, getattr(cls, name)) for name in dir(cls)
                    if not name.startswith('__'))

Even after the zope.app.apidoc changes above and the as_dict hack, zope.app.apidoc still did not render. Other bugs can be broken out from this one if desired, and this can be just for the as_dict problem described above.

Tags: chameleon
Gary Poster (gary)
tags: added: chameleon
Changed in launchpad:
status: New → Triaged
importance: Undecided → High
no longer affects: launchpad
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.