[Zope] variable propagation

2006-07-24 Thread Pavel Zaitsev
Hi, I would like to ask how to propagate variables from initial index_html call to deeper levels. Say I have index_html python script, I invoke it then I would like to feed some data to generic template, that will in turn will invoke template in the same directory that will do nice layout of my

Re: [Zope] variable propagation

2006-07-24 Thread David H
Pavel Zaitsev wrote: Hi, I would like to ask how to propagate variables from initial index_html call to deeper levels. Say I have index_html python script, I invoke it then I would like to feed some data to generic template, that will in turn will invoke template in the same directory that will

Re: [Zope] variable propagation

2006-07-24 Thread Pavel Zaitsev
В Пнд, 24/07/2006 в 15:00 -0700, David H пишет Pavel, You question is a bit vague but ... Make your index_html a python script. And then stuff your REQUEST with info you want Then just call the Page Template ... request.set('formvar1', somevalue) return

Re: [Zope] variable propagation

2006-07-24 Thread David H
Pavel Zaitsev wrote: В Пнд, 24/07/2006 в 15:00 -0700, David H пишет Pavel, You question is a bit vague but ... Make your index_html a python script. And then stuff your REQUEST with info you want Then just call the Page Template ... request.set('formvar1', somevalue) return

Re: [Zope] Variable sort and multiple sort in dtml-in

2001-01-18 Thread Steve Spicklemire
Hi Loren, There is also Zieve: http://www.zope.org/Members/sspickle/Zieve Not quite as easy as a 'fixed' dtml-in ... but it does work (today). -steve "Loren" == Loren Stafford [EMAIL PROTECTED] writes: Loren On 02 July 2000, Adam Karpierz, posted a patch that would Loren

[Zope] Variable sort and multiple sort in dtml-in

2001-01-17 Thread Loren Stafford
On 02 July 2000, Adam Karpierz, posted a patch that would allow an expression for the sort specification for the dtml-in tag. Did that patch, or something like it, ever find its way into the Zope core? I also seem to remember some discussion of sorting on multiple items (but can't find any trace

[Zope] variable length forms...

2000-11-07 Thread zope
Hi. I have tried to implement a variable length form. Yes, I have read http://www.zope.org/Members/jpenny/variable_length_forms/index_html.! I a form, I'm using following form fields: dtml-in "_.range(1, _.string.atoi(form_numpages)+1, 1)" tr align="center" valign="middle"

[Zope] Variable name use in with statement

2000-10-13 Thread Burchill, Scott B.
I'm working on a simple auction site as a newbe challenge. I am taking bids on three static items, none will be added or removed. I have a folder named bid_records in which there is a folder for each item. These item folders have current bid information in properties and bid history in ZClass

[Zope] Variable name use in with statement

2000-10-13 Thread Spicklemire, Jerry
Scott Butchill wonders if: "there is a simpler way to do this." Not much simpler, but how about: dtml-call "REQUEST.set('user_select', ['walkon', 'fullhouse'])" dtml-with bid_records dtml-in user_select dtml-if "_.str(REQUEST.form['selection']) == _['sequence-item']" dtml-with

Re: [Zope] Variable name use in with statement

2000-10-13 Thread Dieter Maurer
Burchill, Scott B. writes: I am finding myself doing the following and am sure there is a simpler way to do this. Any help would be greatly appreciated! Thanks. dtml-with bid_records dtml-if "_.str(REQUEST.form['selection']) == 'walkon'" dtml-with walkon

[Zope] variable

2000-10-06 Thread Joaldo Junior
It will be that somebody knows with I obtains to capture the last register registered in cadastre in some 0 variable. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding!

Re: [Zope] Variable sort in dtml-in

2000-07-14 Thread Adam Karpierz
In my search form, I have a selection box "in_sort_by" whose value can be "Category", "Field", or "Title". I am trying to make dtml-in sort by this value. I am using: dtml-in SQL_search sort="_['in_sort_by']" size=list_size start=query_start Hi Aaron again I have attached appropriate patch

Re: [Zope] Variable sort in dtml-in

2000-07-14 Thread Aaron Williamson
I have attached appropriate patch for dtml-in tag for Zope 2.2.0b3/b4 (Of course this patch was checked and works ok). Thanks again for the patch. It is a much needed option (and rather a glaring omission from the original code). So far it is working flawlessly for me. I want extend my

[Zope] Variable sort in dtml-in

2000-07-13 Thread Aaron Williamson
In my search form, I have a selection box "in_sort_by" whose value can be "Category", "Field", or "Title". I am trying to make dtml-in sort by this value. I am using: dtml-in SQL_search sort="_['in_sort_by']" size=list_size start=query_start And I've tried other variations, but I always get

Re: [Zope] Variable sort in dtml-in

2000-07-13 Thread Bill Anderson
Aaron Williamson wrote: In my search form, I have a selection box "in_sort_by" whose value can be "Category", "Field", or "Title". I am trying to make dtml-in sort by this value. I am using: dtml-in SQL_search sort="_['in_sort_by']" size=list_size start=query_start And I've tried

[Zope] Variable which delivers the author of an document

2000-05-23 Thread Stefan Pöhnlein
I would like to know,if there is a Variable, which delivers as value the author of a document, similiar to "AUTHENTICATED_USER", which delivers the user name. I couldn't find anything about it in the Zope DTML Reference. Thanks a lot in advance, Stefan