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: ouch. Thanks

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: > > > > > > > > ouch

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: ouch. This is really contorted. Why do you use URL2 and URL3? Is imgObj not just 'here' a

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 method

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 'The url' and be able to evaluate the TALES expression in the string to produced something like: 'http://mydomain.com/theUrl' Any chance there's a recipe for this? If you can explain to us why you think y

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. >

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 TALE

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

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: http://zopelabs.com/cookbo

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 --

[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 http://mail.zope.org/mailman/listinfo