Re: [Zope] tuples in DTML

2000-12-27 Thread Michael Bernstein

Max M wrote:
> 
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Michael
> Bernstein
> 
> >
> >  
> >
> 
> >Which (of course) displays the list as an single item along
> >with each of the strings:
> 
> >  ['list item 1', 'list item 2', 'list item 3']
> >  String 1
> >  String 2
> >  String 3
> 
> >Now, how do I iterate over the list in DTML?
> 
> 
> 
> blah blah  
> 
> 
> Something like the above ought to work.

Mmm, It doesn't seem quite right. If I do it that way, I'll
have to run the external method more than once, and it's a
relatively expensive method. I'm opening an HTTP connection
and processing the page to extract the data that is getting
put into the tuple.

What if I do:


 
  
   
  
 
 
 

Ok, this works!

Thanks for the help,

Michael Bernstein.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] tuples in DTML

2000-12-27 Thread Max M

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Michael
Bernstein

>
>  
>

>Which (of course) displays the list as an single item along
>with each of the strings:

>  ['list item 1', 'list item 2', 'list item 3']
>  String 1
>  String 2
>  String 3

>Now, how do I iterate over the list in DTML?



blah blah  


Something like the above ought to work.

Regards Max M

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] tuples in DTML

2000-12-26 Thread Michael Bernstein

Michael Bernstein wrote:
> 
> Hi everybody,
> 
> I've been messing with some external methods and I've got
> one that returns a tuple. The tuple consists of a list and a
> few strings.
> 
> How do I access the tuple elements from DTML?

Ok, I've been messing with it some more and I should have
tried simply iterating over the tuple elements before:


  


Which (of course) displays the list as an single item along
with each of the strings:

  ['list item 1', 'list item 2', 'list item 3']
  String 1
  String 2
  String 3

Now, how do I iterate over the list in DTML?

Michael Bernstein.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] tuples in DTML

2000-12-26 Thread Michael Bernstein

Hi everybody,

I've been messing with some external methods and I've got
one that returns a tuple. The tuple consists of a list and a
few strings.

How do I access the tuple elements from DTML?

Cheers,

Michael Bernstein.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )