Re: [Zope] Using folder name in macro

2006-03-15 Thread Chris Withers
John Poltorak wrote: metal:use-macro="python:getattr(context,folder_name+'.pt').macros['page']"> If you end up doing this, I would suggest your application design is pretty broken and should be thought out different :-/ Chris -- Simplistix - Content Management, Zope & Python Consulting

Re: [Zope] Using folder name in macro

2006-03-13 Thread Philip Kilner
Hi John, John Poltorak wrote: > How do I use a folder name in a macro? > > ie I want to change this > > > This is a path expression with a file (abc.pt) and path ("context/", signifying the context of the call)... > which is in the folder 'abc' > ...so you must have "/abc/abc.pt" > to >

Re: [Zope] Using folder name in macro

2006-03-13 Thread John Poltorak
On Mon, Mar 13, 2006 at 11:27:19AM +0100, Andreas Jung wrote: > > > --On 13. März 2006 10:21:15 + John Poltorak <[EMAIL PROTECTED]> wrote: > > > > > How do I use a folder name in a macro? > > > > ie I want to change this > > > > > > > > which is in the folder 'abc' > > > > to > > > > > >

Re: [Zope] Using folder name in macro

2006-03-13 Thread Andreas Jung
--On 13. März 2006 10:21:15 + John Poltorak <[EMAIL PROTECTED]> wrote: How do I use a folder name in a macro? ie I want to change this which is in the folder 'abc' to Your question makes little or no sense. ^ This part of the of the