korg_web

Requirements

This code is a wrapper for the excellent: albatross framework. Albatross does all the hard work and this library is just a simple wrapper for it. You _NEED_ albatross to run this.

Download

korg_web-0.0.1.tar.gz

Info

Albatross:
  • has a very cool dtml/html template system
  • lets you publish classes as web pages
  • does all the framework effort for you
but on the nagative side:
  • can be confusing to setup and get started with
  • doesnt have shortcuts for stuff that I always want to do :)

This framework wraps albatross and makes getting started and coding apps easier (atleast for me, YMMV).

korg_web provides:

  • simplified startup
    Create a 'content' directory with code and templates and just point korg_web to it. It walks the tree, finds the pages and templates and does all the albatross work for you.
  • simplified use
    Albatross is powerful, but sometimes full of ctx.locals.var which can be a little confusing. This class wraps that into more easy to use self['var'] inside your page. Never look at a ctx again!
    example code
  • command buttons
    Method calls with arguments can be marked up in your html and users can 'click' to run them. (Note, only what YOU mark up is available, so they cant run just anything.)
    example template
    Look at the class ten in the example code and work out what those buttons do.
  • easy to change your app
    To add a new page:
    • copy a existing template to template_myfoo.html
    • create a myfoo class in the pages.py
    • edit an existing page class so you can goto the new page
    • restart the app
    Easy. All done from the files.

Todo:

  • Handle url arguments and extras (for image maps)
  • Extend command buttons to non type="submit" buttons.
  • Better debug handling
The Nef
Home
users
links
local food

Roleplaying
Code stuff


-----------------------