Sorry I didnt post back; further debugging/clunking around was
necessary. The short answer is, in order for this to work, you need
autoreload=False in your app definitions. In mine, it looks like:
app = web.application(urls, locals(), autoreload=False)
This is because through some strangeness (not sure if this is
intentional; it shouldnt be!) web.py doesnt use dynamically added
mappings (via app.add_mapping()) if you dont set that when you create
the app.
With that final hurdle, the auth module is working for me (and I'm
quite happy with it... even with all this debugging, it still saved a
lot of time)... I'm currently working on an app creation tool similar
to those included with django or rails (from an outline of url
structure, users, and data descriptions, it will write the framework
of an app, create all the database tables, users with permissions
based on what data they can edit, and a functioning (though primitive)
admin interface), which I may publish if it ever gets to a state that
it isnt an embarrassing mess of code.
Hope all this helps, and that the changes necessary to make it work
get incorporated into the code... (and that the whole thing gets
incorporated into web.py!)
Daniel
On Dec 31 2008, 2:07 am, "mathew wong" <
wrm...@gmail.com> wrote:
> I tried editing the views.py the way you mentioned but it still continues to
> persist to go to
127.0.0.1:40/login with a "not found" error
> (127.0.0.1:40being the url I use for the development server.). Anybody