Re: [Zope] REQUEST a string object?

2000-07-25 Thread Dieter Maurer
Rob Miller writes: table dtml-call "REQUEST.set('ctr', 0)" dtml-in "fileValues(REQUEST.get('spec', _.None))" dtml-call "REQUEST.set('ctr', _.int(ctr) + 1)" There are "sequence-index" and "sequence-number" variables defined by "dtml-in". Thus, you need not count

Re: [Zope] REQUEST a string object?

2000-07-25 Thread Rob Miller
On Tue, 25 Jul 2000, Dieter Maurer wrote: Rob Miller writes: table dtml-call "REQUEST.set('ctr', 0)" dtml-in "fileValues(REQUEST.get('spec', _.None))" dtml-call "REQUEST.set('ctr', _.int(ctr) + 1)" There are "sequence-index" and "sequence-number" variables

Re: [Zope] REQUEST a string object?

2000-07-24 Thread Jonothan Farr
I couldn't reproduce this. The following code works for me in Zope 2.1.6, verbatim. dtml-var standard_html_header dtml-call "REQUEST.set('spec', '*')" dtml-call "REQUEST.set('num_dir_columns', 3)" table dtml-call "REQUEST.set('ctr', 0)" dtml-in "local.fileValues(REQUEST.get('spec', _.None))"

Re: [Zope] REQUEST a string object?

2000-07-24 Thread Rob Miller
On Mon, 24 Jul 2000, Jonothan Farr wrote: I couldn't reproduce this. The following code works for me in Zope 2.1.6, verbatim. Ah-ha! It was on 2.2.0 that this code failed. And.. sure enough, a quick check on the Zope 2.1.6 install I still have around shows that the code works there for me as

[Zope] REQUEST a string object?

2000-07-23 Thread Rob Miller
Arrggh! I'm getting very frustrated trying to accomplish something that should be easy. I'm stepping through all of the files in a LocalFS directory, and I want to dynamically create a table that displays all of the sub-directories of the current directory. I want to inject a "/trtr" every so