15 Dec
2005
15 Dec
'05
6:25 a.m.
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] * factor etc
The code is a bit strange due to my testing. However zope gets upset when trying to evaluate list[i]:
You are not allowed to access '1' in this context
Whats in your list? A protected item? Does this happen everytime or just with '1'? David
The list consists of something like this: [61282125371L, 1, 6, 0]. It happens whatever element I try to access. Regards Cameron