[Zope3-dev] more on _clear and the directives registry structure

R. David Murray bitz@bitdance.com
Tue, 17 Sep 2002 18:27:51 -0400 (EDT)


On Tue, 17 Sep 2002, Steve Alexander wrote:
> I think I added those comments.
> I did some work on this stuff when I needed to refine the semantics of
> the "package" attribute in zcml, and the two different cases of what to
> do if there is no "package" attribute.
>
> The choice was between some minor cruft here, or a major refactoring.
> I chatted with Jim about this, and we decided on the minor cruft, as it
> was really just an implementation detail.

Any idea what the "major refactoring" was about?  I just changed _clean
to use the (subdirs, handlername) format, and simplified the
code to only deal with that case, and all the tests run (except that
xml one that's been failing, of course).  And the minimal functional
test of getting the management page still works, as well.

I'm not sure what this code would have to do with the package attribute.
It seems to be about having a different name for the subdirective
handler method than the name of the subdirective.

--RDM