RV: Configurable list of renderers in CPSSkins.
JoseLuis de la Rosa Triviño <joseluis.rosa-PttKq6FmaWE8QMA/Cy+x5VaTQe2KTcn/@public.gmane.org>
| Newsgroups | gmane.comp.web.zope.cps.devel |
|---|---|
| Message-ID | <767B5B40A4305B49869025D4BDFB34A6C08575@buzon.iavantefundacion.com> |
Correction on step 3: We could use the "Options" tab instead of adding "Properties" tab. Thanks. JoseLuis de la Rosa Triviño Técnico de Desarrollo Software FUNDACIÓN IAVANTE joseluis.rosa-PttKq6FmaWE8QMA/Cy+x5VaTQe2KTcn/@public.gmane.org Tel. 951 015 300 Este correo electrónico y, en su caso, cualquier fichero anexo, contiene información confidencial exclusivamente dirigida a su(s) destinatario(s). Toda copia o divulgación deberá ser autorizada por IAVANTE. This e-mail and any attachments are confidential and exclusively directed to its adressee(s). Any copy or distribution will have to be authorized by IAVANTE. -----Mensaje original----- De: JoseLuis de la Rosa Triviño Enviado el: martes, 03 de octubre de 2006 9:54 Para: [email protected] Asunto: [CPS-devel] Configurable list of renderers in CPSSkins. Hello everybody, In PortalThemesTool.py there is a method that returns the identifiers of available renderers. I would like to add one more renderer. What do you think about this feature to be configurable from ZMI? It could be one of the properties of portal_themes so that anybody could add new renderers. This could be useful to create a WML renderer, for example. The method is: security.declarePublic('listPageRenderers') def listPageRenderers(self): """ returns the list of page renderers """ renderers = ['default', 'compatible', 'textonly', 'automatic', 'profiler'] return renderers If you find it useful to add this feature it to the trunk, I'll create a ticket and I'll implement it if you'd rather. What I would do is: 1. Add the property to the tool portal_themes 2. Modify the method above to return "self.renderers" 3. Add the "Properties" tab to portal_themes. 4. Define the "renderers" property to be of type "lines" or "tokens". Thank you. JoseLuis de la Rosa Triviño Técnico de Desarrollo Software FUNDACIÓN IAVANTE joseluis.rosa-PttKq6FmaWE8QMA/Cy+x5VaTQe2KTcn/@public.gmane.org Tel. 951 015 300 Este correo electrónico y, en su caso, cualquier fichero anexo, contiene información confidencial exclusivamente dirigida a su(s) destinatario(s). Toda copia o divulgación deberá ser autorizada por IAVANTE. This e-mail and any attachments are confidential and exclusively directed to its adressee(s). Any copy or distribution will have to be authorized by IAVANTE. _______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel
ATT109318.txt
(text/plain, 124 B)
_______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel