On 5/2/10 15:24 , Martin Aspeli wrote:
> On 2 May 2010 20:54, Laurence Rowe<[email protected]>  wrote:
>>
>> A function sounds the right choice here.
>
> I disagree (in this instance). Whilst I wouldn't say subclassing is
> discouraged (e.g. it's useful for overriding stock content type
> behaviour), I would say that putting display logic for a portlet into
> a method on a content object's class is silly. That display logic
> belongs in the portlet renderer class, which is intended precisely for
> this kind of use case.

The original poster also asked what to do if that logic would be useful 
for other things as well.

Wichert.
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to