Re: [Zope] FOR loops?

2000-06-30 Thread Chris Withers

Hi Andy,

Zope, and python for that matter, have no for loops ;-)

Try this (untested, someone please correct errors ;-):

I'm assuming stringthing (eg "Root") and numberthing (eg 0) are
attributed of the objects in your sequence list.



  


  



cheers,

Chris

___
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] FOR loops?

2000-06-30 Thread Phill Hugo

Andy Gates wrote:
>
> 
> 
>   
> 
>    
> 
> 
>   
> 
> 
> So where does Zope hide its FOR loop?  Can't find the bugger anywhere!

You already did.  is FOR. As in Python's "for v in list". Use
 

Phill

___
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] FOR loops?

2000-06-30 Thread Marcel Preda

> 
> 
>   
> 
>    
> 
> 
>   
> 
> 

instead of `for' use :

...

PM



___
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] FOR loops?

2000-06-30 Thread Andrew Kenneth Milton

+[ Andy Gates ]-
| This ought to be easy:

...

| Presenting these in a SELECT input I want to show the indentation so 
| it's easy to see and use.  Obvious answer is to use   characters 
| to pad the values thus:

You have to drop to the python level I'm afraid...


| 
| 
| 
|   
| 



|    



| 
| 
|   
| 
| 
| So where does Zope hide its FOR loop?  Can't find the bugger anywhere!

You can find these things... you just have to know what you're looking for...

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

___
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] FOR loops?

2000-06-30 Thread Andy Gates

This ought to be easy:

 through a list of entries.  Each entry has a string and a 
number which indicates its level of indentation, so "Root",0; "Main",1;
"Sub",2 and so on.

Presenting these in a SELECT input I want to show the indentation so 
it's easy to see and use.  Obvious answer is to use   characters 
to pad the values thus:



  

   


  


So where does Zope hide its FOR loop?  Can't find the bugger anywhere!
--
Andy Gates, Learning and Research Technology
[EMAIL PROTECTED] - ICQ#74362415


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