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
[EMAIL PROTECTED]
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

Reply via email to