Re: [Zope] Render a string as tal

2005-11-21 Thread Chris Withers
Alan Warren wrote: On 11/18/05, Chris Withers [EMAIL PROTECTED] wrote: Alan Warren wrote: single image into a folder. So, I have a folder called view. When an image is viewed the URL looks like /some_album/some_pic.jpg/view/?display=large The code looks like this: span tal:define=imgName

Re: [Zope] Render a string as tal

2005-11-18 Thread Chris Withers
Alan Warren wrote: single image into a folder. So, I have a folder called view. When an image is viewed the URL looks like /some_album/some_pic.jpg/view/?display=large The code looks like this: span tal:define=imgName python:request['URL2'][len(request['URL3']+1:] span tal:define=global

Re: [Zope] Render a string as tal

2005-11-18 Thread Alan Warren
On 11/18/05, Chris Withers [EMAIL PROTECTED] wrote: Alan Warren wrote: single image into a folder. So, I have a folder called view. When an image is viewed the URL looks like /some_album/some_pic.jpg/view/?display=large The code looks like this: span tal:define=imgName

Re: [Zope] Render a string as tal

2005-11-16 Thread Chris Withers
Mark Gibson wrote: However, what I'm looking for is being able to take a string such as 'div tal:content=here/absolute_urlThe url/div' and be able to evaluate the TALES expression in the string to produced something like: 'divhttp://mydomain.com/theUrl/div' Any chance there's a recipe for

Re: [Zope] Render a string as tal

2005-11-16 Thread Alan Warren
Hi, I'm not sure I entirely understand the goal here either, but you may want to look into the path method. Here's what I recently had to use it for. I'm building a little photo album application for my sister, it supports nested albums. I had a page template called view I was using as a

Re: [Zope] Render a string as tal

2005-11-15 Thread Chris Withers
Paul Winkler wrote: On Mon, Nov 14, 2005 at 01:19:18PM -0700, Mark Gibson wrote: I would like to be able to render an arbitrary string as tal, having the tal statements evaluated correctly. How would I go about doing this? I assume you mean TALES expressions. See:

Re: [Zope] Render a string as tal

2005-11-15 Thread Dieter Maurer
Mark Gibson wrote at 2005-11-14 13:19 -0700: I would like to be able to render an arbitrary string as tal, having the tal statements evaluated correctly. How would I go about doing this? You create a Products.PageTemplates.ZopePageTemplate.ZopePageTemplate with the string as text, put it into

Re: [Zope] Render a string as tal

2005-11-15 Thread Mark Gibson
On Mon, 2005-11-14 at 13:38, Paul Winkler wrote: On Mon, Nov 14, 2005 at 01:19:18PM -0700, Mark Gibson wrote: I would like to be able to render an arbitrary string as tal, having the tal statements evaluated correctly. How would I go about doing this? I assume you mean TALES

Re: [Zope] Render a string as tal

2005-11-15 Thread Paul Winkler
On Tue, Nov 15, 2005 at 06:20:39PM -0700, Mark Gibson wrote: On Mon, 2005-11-14 at 13:38, Paul Winkler wrote: On Mon, Nov 14, 2005 at 01:19:18PM -0700, Mark Gibson wrote: I would like to be able to render an arbitrary string as tal, having the tal statements evaluated correctly.

[Zope] Render a string as tal

2005-11-14 Thread Mark Gibson
I would like to be able to render an arbitrary string as tal, having the tal statements evaluated correctly. How would I go about doing this? -- Mark Gibson [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org

Re: [Zope] Render a string as tal

2005-11-14 Thread Paul Winkler
On Mon, Nov 14, 2005 at 01:19:18PM -0700, Mark Gibson wrote: I would like to be able to render an arbitrary string as tal, having the tal statements evaluated correctly. How would I go about doing this? I assume you mean TALES expressions. See: http://zopelabs.com/cookbook/1037762730 --