Nuxeo mailing list archives
[CPS-devel] Configurable list of renderers in CPSSkins.
JoseLuis de la Rosa Triviño
joseluis.rosa at iavantefundacion.com
Tue Oct 3 09:54:07 CEST 2006
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 at iavantefundacion.com
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nuxeo.com/pipermail/cps-devel/attachments/20061003/a2c05162/attachment.htm
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.