I got the trunk, but I'm out of town next week (or most of it).  My
next revision I'll use the version in trunk to see if Appadmin works
out of the box now.

As for the shell I've thought of a great alternative.  Since most
development should be done on the local host, is it possible to enable
the shell just when running locally (where time out's aren't a
problem)?  Of course, that's also going to require getting access to
the Admin panel on the local GAE development environment.  I can get
there on a deployed GAE but not run locally due to the check for
HTTPS.  Still, I think having access to the shell in the development
environment would be just fine.  I don't need it on the deployed app
most of the time.

On Sep 17, 5:31 am, Nicol van der Merwe <[email protected]> wrote:
> This is totally awesome!
>
> Thanks Massimo :)
>
> Side question : Is there any way to setup a root password for GAE as one
> would have when accessing admin normally in web2py? In other words - how can
> I setup a password to access admin on GAE?
>
> Regards
>
> Nicol
>
>
>
> On Thu, Sep 17, 2009 at 4:53 AM, mdipierro <[email protected]> wrote:
>
> > please check trunk. now appadmin should work on GAE out of the box. It
> > was a bug that it did not.
>
> > On Sep 16, 9:08 pm, Chris S <[email protected]> wrote:
> > > Cool thanks.  Is there a workaround you would suggest for now for
> > > people like me that are testing/learning with these database calls?
> > > It's very handy to be able to test and see what type of object(s) a
> > > call returns.  Though I guess for now I can output my results on a
> > > HTML page and see what's in it.
>
> > > On Sep 16, 8:51 pm, mdipierro <[email protected]> wrote:
>
> > > > The current shell does not work on GAE for one reason. Shell requires
> > > > to maintain its state between requests and its state is not
> > > > serializable therefore it cannot be maintained on GAE. I will look
> > > > more into this.
>
> > > > On Sep 16, 5:40 pm, Chris S <[email protected]> wrote:
>
> > > > > Oh that's great, I didn't think about the fact that I was already
> > > > > logged in.
>
> > > > > I've also found that removing from applications/admin/controlers/
> > > > > access.py
> > > > > the line with: check_credentials(request)
>
> > > > > Allows me to access the admin screen now.  However, what I really
> > > > > wanted was the shell (I couldn't imagine coding with out it!).
>
> > > > > Is it ever going to be possible to access the shell or is that
> > > > > prohibited on GAE all together?
> > > > > If it's not allowed is there a way I can test, for example if I want
> > > > > to make database calls and print the results?  I've been using the
> > > > > shell for this (and admin really for all of my development).
>
> > > > > On Sep 16, 4:26 pm, mdipierro <[email protected]> wrote:
>
> > > > > > You will see that even with those lines commented, if you logout
> > from
> > > > > > google or if you login with a different google account you will not
> > > > > > have access to appadmin.
>
> > > > > > On Sep 16, 2:17 pm, Chris S <[email protected]> wrote:
>
> > > > > > > Ok I can get to /welcome/appadmin by commenting out:
>
> > > > > > > #if not gluon.fileutils.check_credentials(request):
> > > > > > > #    redirect('/admin')
>
> > > > > > > in welcome/controllers/appadmin.py
>
> > > > > > > That 'works' however now I guess I'm back to questioning how I
> > can
> > > > > > > control access of this directory to only me?
> > > > > > > I still can't get to /admin and I'm guessing if I find another
> > call to
> > > > > > > check_credentials I could do the same thing to access it.
>
> > > > > > > On Sep 16, 2:02 pm, Chris S <[email protected]> wrote:
>
> > > > > > > > That gives the following error: for /welcome/appadmin/index
> > > > > > > > In FILE:
> > /base/data/home/apps/aionprofessions/1.336383874445587234/
> > > > > > > > applications/welcome/controllers/appadmin.py
>
> > > > > > > > Traceback (most recent call last):
> > > > > > > >   File
> > "/base/data/home/apps/aionprofessions/1.336383874445587234/
> > > > > > > > gluon/restricted.py", line 178, in restricted
> > > > > > > >     exec ccode in environment
> > > > > > > >   File
> > "/base/data/home/apps/aionprofessions/1.336383874445587234/
> > > > > > > > applications/welcome/controllers/appadmin.py:index", line 27,
> > in
> > > > > > > > <module>
> > > > > > > >   File
> > "/base/data/home/apps/aionprofessions/1.336383874445587234/
> > > > > > > > gluon/fileutils.py", line 236, in check_credentials
> > > > > > > >     % users.create_login_url(request.env.path_info)
> > > > > > > >   File
> > "/base/python_lib/versions/1/google/appengine/api/users.py",
> > > > > > > > line 179, in create_login_url
> > > > > > > >     raise NotAllowedError
> > > > > > > > NotAllowedError
> > > > > > > > ----
>
> > > > > > > > the app shown above aionprofessions is the appname I'm
> > currently
> > > > > > > > uploading to.  That's the same error the admin application
> > gives when
> > > > > > > > I try to access it.
>
> > > > > > > > On Sep 16, 1:55 pm, mdipierro <[email protected]> wrote:
>
> > > > > > > > > Try remove
>
> > > > > > > > > if remote_addr not in hosts:
> > > > > > > > >     raise HTTP(400)
>
> > > > > > > > > in youapp/controllers/appadmin
>
> > > > > > > > > Massimo
>
> > > > > > > > > On Sep 16, 1:51 pm, Chris S <[email protected]> wrote:
>
> > > > > > > > > > I've read through the manual about GAE deployment.  I'm
> > under the
> > > > > > > > > > impression I can take my currently running development copy
> > (using
> > > > > > > > > > MySQL), switch the DAL to GAE and then do an explort/import
> > of my
> > > > > > > > > > databases via appadmin.  However, I'm having a problem
> > getting to the
> > > > > > > > > > Appadmin (or admin in read only).
>
> > > > > > > > > > To keep it simple I've downloaded the web2py_src and I'm
> > working with
> > > > > > > > > > that.  I can upload it to GAE and run the welcome scrip
> > just fine.
> > > > > > > > > > It's just domain/welcome and it's happy.  I can even
> > register user
> > > > > > > > > > names.
>
> > > > > > > > > > Trying to access domain/welcome/appadmin
> > > > > > > > > > gives: 400 bad request
>
> > > > > > > > > > Trying to access domain/admin
> > > > > > > > > > gives: disabeled due to lack of security.
>
> > > > > > > > > > Switching to https:
> > > > > > > > > > appadmin doesn't change still 400 bad request
> > > > > > > > > > admin now gives an error ticket about not being able to run
> > files on
> > > > > > > > > > the system
>
> > > > > > > > > > I've tried putting the appcfg.py in
> > /applicatoins/admin/private
> > > > > > > > > > I've tried putting my GAE install directory in
> > admin/models/0.py while
> > > > > > > > > > commenting out the one that points to 'private'.
>
> > > > > > > > > > I'm at a loss.  I was under the impression that appadmin
> > worked out of
> > > > > > > > > > the box, and admin would work in read-only mode if you
> > remove the
> > > > > > > > > > exception in app.yaml.
>
> > > > > > > > > > I must be missing something, how can the appadmin be
> > accessed with out
> > > > > > > > > > logging in?  I suspect I need to set up some sort of log-in
> > privileges
> > > > > > > > > > but I don't see anything about that anywhere.  Can someone
> > point me in
> > > > > > > > > > the right direction?
>
> --
> Mag Die Uwe En Enigste Allemagtige Luitenant Korporaal Ronshardt I Die
> Kratige En Pragtige met jou wees. Glo Die Ronshardt Klousule.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to