From: Nicolas H. <nhu...@gh...> - 2004-01-08 10:34:06
|
We use Mason "inheritance" in order to dress-up (skin, add a surrounding visual aspect) components. The component hierarchy represents the site's hierarchy, and autohandlers are just there to handler skinning : * /autohandler just gives the basic HTML header/footer, and a few other things * some /[service]/autohandler optionally give the common visual rendering of specific services (the main page area may be divided in a specific service, navigation bars may be different from service to service, etc.) * the top component (which URL is called) only renders the main information data Aparts from that, we use true Perl object as a layer between the components and the database. These object implement the application logic. Components instanciate objects in their %init sections, call methods and catch exception, do redirects, render HTML, etc. Objects can store information in the user's session if they want, etc. All application objets use a base class that implement the basic services to facilitate the gluing between Apache/Mason and the session/database. NH Murat Ünalan wrote: > :: After reading Jonathan's post, I came to agree with him completely. > The thing is that comp_root reflects :: where the physical files are to > be found. > > [BACK TO WHERE IT ALL BEGAN] > > Hmm, then could someone give me a clean 1-to-1 masonified perl OO > hierarchy?! In the mason book there is the inheritability praised, but i > fail to harness it. What is PACKAGE, @ISA, AUTOLOAD? > > Any masonified examples? Especially how the attribute/method inheritance > is solved without relying on a autohandler that takes over the complete > "base classness" for many unrelated objects. > > Is this possible? > > PS: I've read examples in www.masonbook.com where you can create a mason > project. But they fail to show the exact 'n quick masonification process > for OO perl guys. > > Or am i getting things wrong here? Is component architecture may be not > so OO as perl OOP? > > Just ignore me if i am getting to fundamental, > > Thanks so far, > Murat > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System offering > advanced branching capabilities and atomic changes on 50+ platforms. > Free Eval! http://www.perforce.com/perforce/loadprog.html > _______________________________________________ > Mason-users mailing list > Mas...@li... > https://lists.sourceforge.net/lists/listinfo/mason-users -- Nicolas Huillard Directeur Technique GHS Solutions Interactives 38, rue du Texel - 75014 PARIS - FRANCE Tél. 01 43 21 16 66 - Fax 01 56 54 02 18 E-mail : nhu...@gh... - URL : http://www.ghs.fr -------------------------------------------------------------------- e-dition, la solution Internet pour la presse écrite et l'édition Visitez notre site : http://www.e-dition.fr -------------------------------------------------------------------- Nos dernières réalisations : http://www.france-chimie.com http://www.cnr.fr http://www.esf-editeur.fr -------------------------------------------------------------------- |