Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: CMF

[dev] type info: content_icon vs. icon_expr property

 

 

Zope cmf RSS feed   Index | Next | Previous | View Threaded


y.2009 at wcm-solutions

Jan 21, 2009, 1:28 PM

Post #1 of 3 (752 views)
Permalink
[dev] type info: content_icon vs. icon_expr property

Hi!


I just noticed this checkin: http://svn.zope.org/?rev=94014&view=rev

And I'm a bit confused. What's the plan? Maintaining redundant
information? Using a different icon for the add action? Deprecating
content_icon and migrating everything to icon_expr?


Cheers,

Yuppie

_______________________________________________
Zope-CMF maillist - Zope-CMF [at] lists
http://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests


hannosch at hannosch

Jan 22, 2009, 2:37 AM

Post #2 of 3 (693 views)
Permalink
Re: [dev] type info: content_icon vs. icon_expr property [In reply to]

Hi.

yuppie wrote:
> I just noticed this checkin: http://svn.zope.org/?rev=94014&view=rev
>
> And I'm a bit confused. What's the plan? Maintaining redundant
> information? Using a different icon for the add action? Deprecating
> content_icon and migrating everything to icon_expr?

I would be fine with deprecating content_icon and switching to icon_expr
instead of maintaining both.

The only place I know where this would be a bit difficult is in
Products.CMFCore.TypesTool.TypeInformation.getIcon which returns the
icon name and not the complete URL.

Hanno

_______________________________________________
Zope-CMF maillist - Zope-CMF [at] lists
http://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests


y.2009 at wcm-solutions

Jan 22, 2009, 4:21 AM

Post #3 of 3 (688 views)
Permalink
Re: [dev] type info: content_icon vs. icon_expr property [In reply to]

Hi!


Hanno Schlichting wrote:
> yuppie wrote:
>> I just noticed this checkin: http://svn.zope.org/?rev=94014&view=rev
>>
>> And I'm a bit confused. What's the plan? Maintaining redundant
>> information? Using a different icon for the add action? Deprecating
>> content_icon and migrating everything to icon_expr?
>
> I would be fine with deprecating content_icon and switching to icon_expr
> instead of maintaining both.

Sounds good to me *if* someone works on the necessary changes before the
beta release. I consider the current state of your change as 'work in
progress'.

> The only place I know where this would be a bit difficult is in
> Products.CMFCore.TypesTool.TypeInformation.getIcon which returns the
> icon name and not the complete URL.

AFAICS TypeInformation.getIcon is only used by DynamicType.getIcon - at
least in CMF. And by default DynamicType.getIcon returns the complete
URL. I think code using getIcon(relative_to_portal=1) can be changed and
'relative_to_portal' can be deprecated. So it doesn't hurt if extracting
the relative URL becomes more expensive.

Please note that I started using upgradeSteps for CMFDefault.
.to22.upgrade_type_properties would be a good place for the migration code.

And the default profiles need to be updated as well.


Cheers,

Yuppie

_______________________________________________
Zope-CMF maillist - Zope-CMF [at] lists
http://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests

Zope cmf RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.