On Dec 15, 9:04 am, selecta <[email protected]> wrote:
> I just tried again, here are the steps that i did
>
> downloaded web2py Version 1.74.1
> logged into the admin
> created a new application "test"
> edited the db.py of test to contain
> db.define_table('mytable',Field('myfield','string'))
> then i click in the edit interface "database administration" (http://
> 127.0.0.1:8000/test/appadmin/index)
> I get redirected tohttp://127.0.0.1:8000/admin/default/site
When I do a clean checkout of web2py from hg, I do not get this.
Try doing an absolutely clean checkout, and see if this still happens
for you:
hg clone https://web2py.googlecode.com/hg/ my-clean-web2py
>
> On Dec 15, 2:45 am, Yarko Tymciurak <[email protected]>
> wrote:
>
>
>
> > On Dec 14, 5:49 pm, selecta <[email protected]> wrote:
>
> > > Ok sorry for the little info
> > > I log into the general admin (http://127.0.0.1:8000/admin/default/
> > > index)
> > > I create an application
> > > I try to edit the database with appadmin.py but it just redirectsme
> > > if I do not comment: if not gluon.fileutils.check_credentials
> > > (request): redirect(URL(a='admin', c='default', f='index'))
>
> > I am not able to reproduce; here's what I did:
>
> > clean pull, current version from google code;
> > Version: web2py Version 1.74.1 (2009-12-14 10:05:21)
>
> > I create a new app - "test"
> > I edit db.py in test (using admin), add a table:
>
> > db.define_table('test', Field('name'));
>
> > I save, and go to database administration, and add an entry in table
> > test --- success (record inpected, seems ok)
>
> > What do you mean when you say "I try to edit the database with
> > appadmin.py"?
>
> > Regards,
> > - Yarko
>
> > > web2py Version 1.72.3 (2009-11-10 09:17:13)
>
> > > On Dec 14, 3:27 pm, mdipierro <[email protected]> wrote:
>
> > > > I am not sure the behavior you experience is wrong. Is this about
> > > > appadmin? Did you try after login in admin? can you show us the
> > > > workflow you experience and what you expect? Which web2py version?
>
> > > > Massimo
>
> > > > On Dec 14, 4:06 am, selecta <[email protected]> wrote:
>
> > > > > if not gluon.fileutils.check_credentials(request):
> > > > > redirect(URL(a='admin', c='default', f='index'))
>
> > > > > Whenever this line is in my code I always get redirected, I have no
> > > > > idea what to do to avoid that (other than commenting out this line).
>
> > > > > I access the server from localhost with an normal http request.
>
> > > > > Please helpme.
--
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.