[web2py] Re: How to implement flags?

2011-06-09 Thread ron_m
IMHO it depends on a number of things. Using groups and memberships is good if the flags are meant to indicate an ability to do something on the system because there are decorators and functions to test for having the attribute. You can then decorate a function or use a has_ test to

[web2py] Re: How to implement flags?

2011-06-09 Thread pbreit
Thanks, ron_m, good info.

[web2py] Re: How to implement flags?

2011-06-09 Thread howesc
also keep in mind your datastore. more fields on a SQL table can get unwieldy for the SQL engine. GAE prefers many fields to joins as you can't do joins there. lists for flags just seems unwieldy in either environment. bitwise operations seem super-slick and cool, but do they make the code

[web2py] Re: How to implement flags?

2011-06-08 Thread pbreit
I know this isn't a super-sexy topic but does anyone have any suggestions?

[web2py] Re: How to implement flags?

2011-06-08 Thread pbreit
I guess the other option would be to use groups and memberships. That actually sounds like not a bad idea considering that I get a lot of built-in functionality?