Stephan Diehl wrote: > > > Is there any possibility for you, just to assemble a 'ready to go' > > > example context, that contains all needed files? > > > > __init__.py: > > > > from WebKit.Page import Page > > import mvc > > > > def contextInitialize(app, path): > > mvcfactory = mvc.TemplateViewServletFactory(app, SitePage) > > mvcfactory.adjustWebKitConfig(app.config()) > > app.addServletFactory(mvcfactory) > > > > > > Hope this helps.
> Sorry, not really: If I have 'Page' as an argument in > TemplateViewServletFactory above, I get the following error message: [...] Stupid me. Of course you can not use plain Page class -- you need a subclass of the mvc.View class. > I don't have this error message, if I use 'mvc.View', so the above is not > really a problem.I'm a pure view with implicit controller Yup. > A call to 'Another' gives > This page has not yet customized its content. > And 'Another.page' gives [...] > So, something is missing somehow and I suspect that you did something to your > 'SitePage', that plays nicely with mvc, but that nobody else knows about. Sorry, sample Another.py is wrong for the same reason as above -- use mvc.View (or it subclass) instead of Page class. BTW, url shouldn't have any extension (.page or .py). -- Regards, max. ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
