Cannot get into Admin on any of my apps

49 views
Skip to first unread message

Jim S

unread,
Aug 26, 2013, 2:30:47 PM8/26/13
to web...@googlegroups.com
Updated to 2.6.0-development+timestamp.2013.08.26.06.04.21 this morning and now I can't get into Admin for any of my apps.

Anyone else seeing this?  Whenever I try I get the message:

App does not exist or your are not authorized

(yes, including the typo - 'your' should be you)

-Jim

Massimo Di Pierro

unread,
Aug 26, 2013, 5:49:37 PM8/26/13
to web...@googlegroups.com
Can you help me debug this?

In applications/admin/controllers/default.py there is this code:

def get_app(name=None):
    app = name or request.args(0)
    folder = request.folder if not request.folder.endswith('/') else request.folder[:-1]
    if (app and os.path.exists(os.path.join(os.path.dirname(folder),app)) and
(not MULTI_USER_MODE or is_manager() or
         db(db.app.name == app)(db.app.owner == auth.user.id).count())):
        return app
    session.flash = T('App does not exist or your are not authorized')
    redirect(URL('site'))

replace

 session.flash = T('App does not exist or your are not authorized')

with

 session.flash = os.path.join(os.path.dirname(folder),app)

What is the flash message? Does that folder exist? 

Jim Steil

unread,
Aug 26, 2013, 5:57:59 PM8/26/13
to web...@googlegroups.com
c:\dev\web2py\applications\admin\infocenter

...when I clicked on the Edit button for the infocenter app.

c:\dev\web2py\applications\admin\admin

...when I click on Errors for the Admin app.

-Jim



--
 
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/855ir5MNyic/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Jim Steil

unread,
Aug 26, 2013, 6:22:44 PM8/26/13
to web...@googlegroups.com
...and Yes, those folders exist.

Massimo Di Pierro

unread,
Aug 27, 2013, 7:33:48 AM8/27/13
to web...@googlegroups.com
Thanks. Please check the latest trunk. I think it is now fixed.

step

unread,
Aug 27, 2013, 8:16:56 AM8/27/13
to web...@googlegroups.com
It's fixed, at least for me, I had the same issue that Jim S. reported.

Jim Steil

unread,
Aug 27, 2013, 10:45:40 AM8/27/13
to web...@googlegroups.com
FIXED

Thanks Massimo!

-Jim


--
Reply all
Reply to author
Forward
0 new messages