Re: [Zope] .html from python

2008-10-18 Thread Andreas Jung

On 17.10.2008 22:06 Uhr, Garry Saddington wrote:

How would I do this:

dtml_method = context.singleitemview.html


dtml_method = getattr(context, 'singleitemview.html')

?

-aj
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd.  Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[EMAIL PROTECTED]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] .html from python

2008-10-17 Thread Andrew Milton
+---[ Garry Saddington ]--
| How would I do this:
| 
| dtml_method = context.singleitemview.html
| s = 
| return s 


dtml_method = getattr(context, 'singleitemview.html')
return dtml_method(client=context, REQUEST={}, foo='bar')

-- 
Andrew Milton
[EMAIL PROTECTED]
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] .html from python

2008-10-17 Thread Garry Saddington
On Friday 17 October 2008 21:30, Andrew Milton wrote:
 +---[ Garry Saddington ]--

 | How would I do this:
 |
 | dtml_method = context.singleitemview.html
 | s =
 | return s

 dtml_method = getattr(context, 'singleitemview.html')
 return dtml_method(client=context, REQUEST={}, foo='bar')
Thanks, works great.
Garry
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )