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

Andrew Sawyers andrew@zope.com
Thu, 10 Jan 2002 11:31:22 -0500


Can you make a tracker issue for this?  You noted it's been put into the
collector, but I don't see it at:
http://www.zope.org/Products/PTK/Tracker, which is where the CMF Tracker
resides.
Thanks,
Andrew

-----Original Message-----
From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf
Of Ulrich Eck
Sent: Wednesday, January 09, 2002 2:56 PM
To: zope-cmf@zope.org
Subject: [Zope-CMF] bug in CMFCore/TypesTool.py from CVS (2002-01-09)


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



_______________________________________________
Zope-CMF maillist  -  Zope-CMF@zope.org
http://lists.zope.org/mailman/listinfo/zope-cmf

See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests