> Public bug reported:
>
> db.py does not run on GAE due to an improper query. the fix is
> shown in
> this diff:
>
> hg diff web2py/applications/t4/models/db.py
> diff -r 1371064ff531 web2py/applications/t4/models/db.py
> --- a/web2py/applications/t4/models/db.py Tue Feb 02 14:45:02 2010
> -0800
> +++ b/web2py/applications/t4/models/db.py Tue Feb 02 14:45:50 2010
> -0800
> @@ -120,7 +120,7 @@
> body=open(STYLES,'rb').read(), saved_by=author)
>
>
> -if not db(db.auth_group.id>2).count() and auth.user:
> +if not (db(db.auth_group.id>0).count() > 2) and auth.user:
> group_id = auth.add_group(role='administrator')
> auth.add_membership(group_id)
>
> ** Affects: t4
> Importance: Undecided
> Status: New
>
> --
> GAE problem in T4 db.py
> https://bugs.launchpad.net/bugs/516310
> You received this bug notification because you are the registrant for
> t4.
>
> Status in t4: New
>
> Bug description:
> db.py does not run on GAE due to an improper query. the fix is
> shown in this diff:
>
> hg diff web2py/applications/t4/models/db.py
> diff -r 1371064ff531 web2py/applications/t4/models/db.py
> --- a/web2py/applications/t4/models/db.py Tue Feb 02 14:45:02 2010
> -0800
> +++ b/web2py/applications/t4/models/db.py Tue Feb 02 14:45:50 2010
> -0800
> @@ -120,7 +120,7 @@
> body=open(STYLES,'rb').read(), saved_by=author)
>
>
> -if not db(db.auth_group.id>2).count() and auth.user:
> +if not (db(db.auth_group.id>0).count() > 2) and auth.user:
> group_id = auth.add_group(role='administrator')
> auth.add_membership(group_id)
>
>
Thank you!
On Feb 2, 2010, at 4:49 PM, cfhowes wrote:
> Public bug reported: applications/ t4/models/ db.py applications/ t4/models/ db.py applications/ t4/models/ db.py Tue Feb 02 14:45:02 2010 applications/ t4/models/ db.py Tue Feb 02 14:45:50 2010 STYLES, 'rb').read( ), saved_by=author) group.id> 2).count( ) and auth.user: auth_group. id>0).count( ) > 2) and auth.user: group(role= 'administrator' ) membership( group_id) /bugs.launchpad .net/bugs/ 516310 applications/ t4/models/ db.py applications/ t4/models/ db.py applications/ t4/models/ db.py Tue Feb 02 14:45:02 2010 applications/ t4/models/ db.py Tue Feb 02 14:45:50 2010 STYLES, 'rb').read( ), saved_by=author) group.id> 2).count( ) and auth.user: auth_group. id>0).count( ) > 2) and auth.user: group(role= 'administrator' ) membership( group_id)
>
> db.py does not run on GAE due to an improper query. the fix is
> shown in
> this diff:
>
> hg diff web2py/
> diff -r 1371064ff531 web2py/
> --- a/web2py/
> -0800
> +++ b/web2py/
> -0800
> @@ -120,7 +120,7 @@
> body=open(
>
>
> -if not db(db.auth_
> +if not (db(db.
> group_id = auth.add_
> auth.add_
>
> ** Affects: t4
> Importance: Undecided
> Status: New
>
> --
> GAE problem in T4 db.py
> https:/
> You received this bug notification because you are the registrant for
> t4.
>
> Status in t4: New
>
> Bug description:
> db.py does not run on GAE due to an improper query. the fix is
> shown in this diff:
>
> hg diff web2py/
> diff -r 1371064ff531 web2py/
> --- a/web2py/
> -0800
> +++ b/web2py/
> -0800
> @@ -120,7 +120,7 @@
> body=open(
>
>
> -if not db(db.auth_
> +if not (db(db.
> group_id = auth.add_
> auth.add_
>
>