Okay, I got it to work with this:

    wb = load_workbook(filename= os.path.join(request.folder, 'static', 
'survey.xlsx'))
    cells = wb['Sheet1']
    if row.n1 ==* [*'Yes'*]*:
        cells['I8'] = 'Yes'
    else:
        cells['I8'] = 'No'


Just needed the brackets because it is from a list..however this seems like 
a very tedious solution because if I have more options than just "Yes" or 
"No" it's going to be very long, so I still wonder if there would be a 
better way. Until then, this will do!

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to