[Web-SIG] Gluon again

Massimo Di Pierro MDiPierro at cti.depaul.edu
Tue Oct 23 15:32:56 CEST 2007

You probably refer to the fact that validators and helpers are upper  
case. That is because they are not functions but objects. In fact  
validators have an internal state (the parameters for the validation,  
the translated error messages etc.) and helpers have an internal  
state (because they are aware of form they may contain, their  
variables and their errors). Example

if a.accepts(request.vars,session): ....
if a.errors:...

At its fundamental level I tried to make Gluon similar to Django. For  
two reasons. I know Django (I taught a class on Django here ad  
DePaul) and I liked it but I found it has too many functions and too  
many modules to remember. So I decided to follow a "convention over  
configuration" approach a la RoR.
In Gluon you do not need to import Gluon's modules in your code nor  
you need to explicitly call the template renderer, for example. Same  
logic as Django but simpler to use I believe.


To answer your first question: I teach computer science, mostly  
numerical applications to science and finance, occasionally  
networking stuff and security.
You can say I came from a C++ background. My most important work is  
fermiqcd a C++ library of parallel lattice quantum chromodynamics.

On Oct 22, 2007, at 11:57 PM, Joshua Simpson wrote:

> On 10/22/07, Massimo Di Pierro <MDiPierro at cti.depaul.edu> wrote:
> it shows step by step how to build a web app to store recipes and
> group them by category.
> It is a first draft so there are may be some english some typos.  
> Sorry.
> I'm going to check this out.  Are you from a primarily C  
> background?  Your builtin functions look, at least in naming  
> convention, suspiciously like macros.  Your controller design seems  
> to borrow heavily from Django, but I suppose that's a good thing.
> Cheers, I always like to look at new frameworks.
> Josh
> -- 
> -
> http://stderr.ws/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/web-sig/attachments/20071023/bd4fad05/attachment.htm 

More information about the Web-SIG mailing list