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

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'?

The list consists of something like this: [61282125371L, 1, 6, 0]. It happens whatever element I try to access.


Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to