Re: [web2py] Re: simple pyquestion dictionaries

2011-02-09 Thread Sean Brewer
You can implement tail call optimization in python via a decorator, but it's pretty much overkill for just populating a dictionary: http://code.activestate.com/recipes/474088/ On Wed, Feb 9, 2011 at 5:28 PM, cjrh wrote: > On Feb 9, 5:15 pm, Massimo Di Pierro > wrote: > > Not in python. It has

Re: [web2py] Row Level Permissions?

2011-02-08 Thread Sean Brewer
t a specific group is created for each user... You can use this > group for this. > > Richard > > > On Tue, Feb 8, 2011 at 12:32 PM, Sean Brewer wrote: > >> Hello, >> >> I am very new to web2py and I'm learning using the application wizard >> (which is aw

[web2py] Row Level Permissions?

2011-02-08 Thread Sean Brewer
Hello, I am very new to web2py and I'm learning using the application wizard (which is awesome) and the web2py book. Anyway, my question is that is there a way to restrict the viewing and editing of records in a table to only the user that created the record? If so, is there a way to do it with t

Re: [web2py] simple pyquestion dictionaries

2011-02-08 Thread Sean Brewer
You could even do: var1 = dict([(i,'') for i in xrange(1,20)]) Or if you need the key in the dictionary to be a string: var1 = dict([(str(i),'') for i in xrange(1,20)]) On Tue, Feb 8, 2011 at 12:25 PM, Richard Vézina wrote: > var1={} > for i in range(19): > var1[i]='' > > Richard > > 2