Anthony, Can you recommend any online tutorials or videos to help someone that doesn't know object oriented programming?
Hopefully something that can be related to web2py so that I would learn that response.write() is a method, not an attribute. I just started writing an app without knowing oop and don't know how "method" relates to web2py MV or C. thanks, Alex On Friday, March 22, 2013 8:46:47 PM UTC-7, Anthony wrote: > > response.write() is a method, not an attribute (even if it were an > attribute, you would be overwriting it repeatedly, not appending to it). > > Anthony > > On Friday, March 22, 2013 6:51:01 PM UTC-4, Alex Glaros wrote: >> >> I'm trying to write a simple loop in default.py. What's wrong with this >> below? Thanks, Alex Glaros >> >> def new2(): >> y=5 >> while y > 0: >> response.write='<P>howdy</P>' >> y=y-1 >> pass >> > -- --- 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/groups/opt_out.

