[Zope-CMF] CMF 2.2.0-alpha: getIcon

Charlie Clark charlie at begeistert.org
Tue Nov 17 08:49:15 EST 2009


Am 17.11.2009, 14:41 Uhr, schrieb yuppie <y.2009 at wcm-solutions.de>:

> AFAICS we need 2 of them in DynamicType:
> icon() is part of OFS.interfaces.IItem and should return the URL
> relative to BASEPATH1. This is required to show the icons correctly in
> the ZMI.

> getIconURL() should become part of IDynamicType and return the absolute
> URL. This is the only version we need in CMF.

Right.

> getIcon() is an alias of icon() and could become deprecated. I don't
> know if it's worth the effort to mark the 'relative_to_portal' argument
> of icon() as well as deprecated.

> I already started implementing these changes.

Okay.

Charlie
-- 
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226


More information about the Zope-CMF mailing list