Commits

Show all
Author Commit Message Labels Comments Date
jlo...@london.leapfrogonline.com
some notes/ideas
jes...@superdude
[utils.py] * added restful_reroute decorator, for automatic method rerouting according to request.get('_method'), (from post, which is all XHTML and HTML4 forms support) [controllers.py] * added docstrings to controllers and controller actions * added restful_reroute decorator to post methods * added some delete methods * moved wine model creation logic from Blogg.post to Admin.post [templates] * instituted …
jes...@superdude
moving Error404 into controllers module and handling it no differently from other routes/controllers
jes...@superdude
* added a utils module, with a helper for determining user status and returning the appropriate login/logout url/text, and with an 'admin-only' decorator for RequestHandler methods, to send the appropriate alternative response depending upon user permissions * modified app.yaml to not automatically require admin permission of 'fillit' (Blogg), so that the admin decorator can be worked with * modified controllers to use above utils
jes...@superdude
* almost done pointless fiddling with controllery stuff, (i.e. just messing around) * added a final catchall rule to app.yaml and a error404 script for returning a 404; (could move this into routes and controllers probably, but haven't)
jes...@exeunt
* added an app.yaml entry for 'fillit'/'admin', s.t. either will be intercepted by admin login before routing by routes.py (and need not worry about that in the controllers, though such code for that remains) * app.yaml no longer refers all paths to routes.py, (only '/admin', '/fillit' and '/'); we can later add a final entry to a custom 404 script, or something, if we like * added a 'hello world' Blogg.get, and (unnecessarily, I think) admin-checking to its post * gave Admin.get pared-down administrator-checking, (tho shouldn't need it either) * played with "hello" message in admin.html slightly
jes...@exeunt
just removing (some currently superfluous) naming
jes...@exeunt
* moved index.py to routes.py, (since that seems more accurate); (did i already commit that change?) * adjusted app.yaml rule according to above change * finished imports &c to support moved around controllers and models &c * though looks like i changd a lot i really just changed tabs to 4 spaces (convention) &c * added a .hgignore to have hg ignore .pyc files
jes...@exeunt
thinking this name might make more sense
jes...@exeunt
not really sure why controllers.py had executable property
jes...@exeunt
was silly to submodule controllers and models; just keeping them separate but in root-level modules
jes...@exeunt
forgot that it's really helpful to have an index.py in the root, so keeping the wsgi running stuff there moved models out to separate file etc probably really only need a models.py rather than a folder; dunno. maybe controllers can use the subpackage. dunno.
jes...@exeunt
just moving things around so i can read 'em better; no big whoop
j...@localhost.localdomain
initial forms and data