[Zope] sequence-item from Python Script

Andreas Jung Andreas Jung" <andreas@andreas-jung.com
Sat, 18 Aug 2001 15:32:57 -0400


sequence- item is special to the DTML-IN tag inside 
DTML. But inside Python your variable 'i' corresponds
to sequence-item. So 

   print context[i]

should work.

Andreas
----- Original Message ----- 
From: "Milos Prudek" <milos.prudek@worldonline.cz>
To: <zope@zope.org>
Sent: Samstag, 18. August 2001 15:23
Subject: [Zope] sequence-item from Python Script


> Hi,
> 
> I need the following Script (Python) to work:
> 
> for i in context.objectIds('ORL_Art'):
>   print context._['sequence-item']
> return printed
> 
> 
> ... but it doesn't work. Obviously, I'm not expressing the
> _['sequence-item'] correctly. I'd be grateful for any hints...
> 
> --
> Milos Prudek
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )
>