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 <mdipie...@cs.depaul.edu> 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 <sanders.ch...@gmail.com> 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 <mdipie...@cs.depaul.edu> 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 <sanders.ch...@gmail.com> 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 <sanders.ch...@gmail.com> 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 <mdipie...@cs.depaul.edu> 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 <sanders.ch...@gmail.com> 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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---