[Zope] Unauthorized exception when trying to access a list item

2005-12-14 Thread Cameron Beattie
I am trying to access a value in a list. The script getDIDS_list is passed a list called listoflists: list = listoflists ret = [] tup = (0,1,2) factortup = (1,2) factor = 2 for i in range(len(list)): # 1 == 1 if i in tup: if i in factortup: x = list[i] * factor etc The code is a bit

Re: [Zope] Unauthorized exception when trying to access a list item

2005-12-14 Thread David H
Cameron Beattie wrote: I am trying to access a value in a list. The script getDIDS_list is passed a list called listoflists: list = listoflists ret = [] tup = (0,1,2) factortup = (1,2) factor = 2 for i in range(len(list)): # 1 == 1 if i in tup: if i in factortup: x = list[i] * facto

Re: [Zope] Unauthorized exception when trying to access a list item

2005-12-14 Thread Cameron Beattie
Cameron Beattie wrote: I am trying to access a value in a list. The script getDIDS_list is passed a list called listoflists: list = listoflists ret = [] tup = (0,1,2) factortup = (1,2) factor = 2 for i in range(len(list)): # 1 == 1 if i in tup: if i in factortup: x = list[i] * fac

Re: [Zope] Unauthorized exception when trying to access a list item

2005-12-15 Thread Jonathan
- Original Message - From: "Cameron Beattie" <[EMAIL PROTECTED]> To: Sent: Thursday, December 15, 2005 1:25 AM Subject: Re: [Zope] Unauthorized exception when trying to access a list item Cameron Beattie wrote: I am trying to access a value in a list. The script

Re: [Zope] Unauthorized exception when trying to access a list item

2005-12-15 Thread Chris Withers
Cameron Beattie wrote: The list consists of something like this: [61282125371L, 1, 6, 0]. Are you _sure_ this is a plain python list? Looking at its format, and the apparently weird nature of your other questions, are you maybe abusing a relational database somewhere in this spider's web?