Am Fri, 06 Dec 2013 12:29:53 +0100 schrieb Guido Stevens:
>...
> You could move that decision into the viewlet's python code. Make the
> .render() call return either the original discussion template via
> super(...).render() or return your custom stuff via
> ViewPageTemplate('your template'). That way you only need your custom
> template code.
>
great, that solved the problem ! But i have another one: My custom form
gets used for discussion style comments, too. Currently looking into the
source to find out how to solve this one.
>> Then i have a problem with subclassing and decorated functions, as it
>> looks the decorator calls the base class and not my derived one, thats
>> bad and i am new to decorators, too.
>
> Just set the decorators directly on your custom code.
i found that out, too, and it works !
I am currently at 80% on what i tried to achieve, and it looks promissing
to find the rest. Thanks for the help !
> :*CU#
regards
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers