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
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 )
participants (2)
-
Andreas Jung -
Milos Prudek