--On Samstag, 9. April 2005 12:50 Uhr -0400 Dan E <[EMAIL PROTECTED]> wrote:

I am trying to create a simple script that loops through the member
properties and sets certain boolean ones to a certain value (which I
have acquired). I realize I am probably making a simple mistake but
the following snippet of code doesn't seem to set the member I am
interested in. Any help would be appreciated.

p_index =-1
for p in memberProperties:
    p_index = p_index+1
    curr_value = cb_array[p_index]
    if p[0] == i  #(checking for properties beginning with an i but
could be any check)

Your code looks strange and incomplete. Where is 'memberProperties'? What is 'cb_array'? Where does it come from? The check p[0] against 'i' What is 'i'? Is it a variable? Trying to compare against the character 'i'? Please try to post questions with somewhat complete and understandable code.


Attachment: pgpQuVUcqjR45.pgp
Description: PGP signature

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to