[Zope-CMF] bug in CMFCore/TypesTool.py from CVS (2002-01-09)

Ulrich Eck ueck@net-labs.de
Wed, 09 Jan 2002 20:56:06 +0100


I just checked out the latest CVS-Head sources and
found a bug in the TypesTool:

In CMFCore/TypesTool.py at line 550:

    def all_meta_types(self):
        all = TypesTool.inheritedAttribute('all_meta_types')(self)
        factypes = []
        for name, fac in _type_factories.items():
            query = urllib.urlencode({'type_type': name})
            factypes.append({
                'name': fac.meta_type,
                'action': 'manage_addTypeInfoForm?%s' % query,
                'permission': CMFCorePermissions.ManagePortal,
                })
        factypes.extend(all)
        return factypes


because the standard OFS/dtml/main.dtml is used, the action is
urlencoded twice which breaks the addProduct-Box ..

Not Found errors are the result when trying to add one of the standard
type infos.

i have a workaround on my site yet: i copied main.dtml and put out the
urlencoding in the dtml-file ...

this needs to be fixed.

(i put this into the collector as well.

Ulrich Eck
---------------------------------------------------------------------------
net-labs Systemhaus GmbH
Ebersberger Str. 46
85570 Markt Schwaben
fon:   +49-8121-4747-11
fax:   +49-8121-4747-77
email: ueck@net-labs.de
http://www.net-labs.de