Hi
how do i get the attributes and methods list of an object?
from a python script or a page template, dir(object) does not work?
As Fernando said it before. It is protected. One way would be to implement
an External Method, another way and perhaps much better, would be to
implement a small
Hi Guillem
This question is specific to Plone so you would
better ask
on the plone-users list. Two things that might be
worth a try:
- REQUEST/LANGUAGE
- context/portal_languages/LANGUAGE
Andreas
Sorry for posting in the wrong forum, and thanks for
the suggestions. They don't
html
body tal:omit-tag=
tal:define=domain python:request.get('domain','JMGui')
div tal:replace=domain/
h2 i18n:domain=JMMessages i18n:translate=Wrong selection/h2
h2 tal:attributes=i18n:domain domain;
i18n:translate string:Wrong selection/h2
/body
Hi Henrique
Thanks for your reply, but ...
Use tal:attributes to set the values:
h2 tal:define=statusMessage python:request.get('statusMessage');
domain python:request.get('domain')
tal:attributes=i18n:domain domain;
i18n:translate
Hi,
I'm wondering if something like this is possible:
h2 tal:define=statusMessage python:request.get('statusMessage');
domain python:request.get('domain')
i18n:translate=
i18n:domain=domain tal:content=statusMessagesomeText/h2
I even replaced the i18n:domain directive by: