> > There is too much pain for me to setup sandbox access just to contribute
> > a single module, so I post it here for anyone who find it interesting.
> >
> > Documentation and sample usage are with module docstrings.
> This sounds very nice. I have problems though, to get the examples
> to run. in the "contextInitialize" method, you have a reference
> to 'SitePage' that is nowhere to be found. I've put in instead
> 'mvc.View'.
SitePage is typically used a as site-wide page parent. You could use
Page class from WebKit.Page module. mvc.View should work also.
> Now, I can view pure '.page' pages, but the cheetah
> references are not evaluated.
How's that? If you see .page contents that means that
TemplateViewServletFactory handler was not registered.
> 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.
--
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