On Tue, Sep 22, 2009 at 1:27 AM, Michael Brickenstein <brickenst...@mfo.de> wrote: > > Hi! > > I had a small look at it. > > Of course, there is a lot of Sage code in it and it looks, as if you > have a lot > of partial problems, that will be specific to Sage/... .
Yes, there is of course a lot of Sage code in it, since I just made it by copying all the Sage notebook code out of Sage into a new directory. Nothing in there references Sage/... though, well except for misc.py a little (which I've fixed in -0.1.2. > So it seems, you will need some component architecture like > that we are using in RUM. > It is completely light weight. > The goal is to make components configurable by .ini or initialization > dict. > > E.g.: > class App(...): > controllerfactory = Component('rum.controllerfactory', > default='default') > repositoryfactory = Component("rum.repositoryfactory", > default='default') > viewfactory = Component('rum.viewfactory', default='default') > router = Component('rum.router', default='default') > policy = Component('rum.policy', default='default') > jsonencoder = Component('rum.jsonencoder', default='default') > translator = Component('rum.translator', default='default') > > This components are initialized and overriden like that in an .ini- > file. > > [rum.controllerfactory] > default = rum:ControllerFactory > > [rum.repositoryfactory] > default = rum:RepositoryFactory > > [rum.viewfactory] > default = rum:ViewFactory > > [rum.jsonencoder] > default = rum.json:JsonEncoder > > > [rum.renderers] > mako = rum.templating.mako_renderer:MakoRenderer > genshi = rum.templating.genshi_renderer:GenshiRenderer > chameleon-genshi = > rum.templating.chameleon_renderer:ChameleonGenshiRenderer > genshi-xml = rum.templating.genshi_renderer:GenshiXMLRenderer > > You can find the implementation here: > http://python-rum.org/browser/rum/component.py > > It was designed and developed by Alberto Valverde. Many thanks for pointing that out! You're exactly right that I'll need a lightweight component architecture, and I'm glad that I don't have to write it. William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---