Re: [ZPT] how to explore objects attributes and methods from a script or template

2011-11-07 Thread Josef Meile
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

[ZPT] Re: i18n and images

2007-05-24 Thread Josef Meile
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

Re: [ZPT] Re: Setting i18n:domain to a variable

2006-11-24 Thread Josef Meile
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

[ZPT] Re: Setting i18n:domain to a variable

2006-11-23 Thread Josef Meile
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

[ZPT] Setting i18n:domain to a variable

2006-11-22 Thread Josef Meile
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: