[Grok-dev] Why is self.static not available in views on layers?
Souheil CHELFOUH
trollfot at gmail.com
Tue Jun 1 11:05:15 EDT 2010
This has nothing to do with layers.
I'd recommand you to look for other causes :)
2010/6/1 Sebastian Ware <sebastian at urbantalk.se>:
> Why is self.static not available in views on layers?
>
> class Robots(grok.View):
> grok.name('robots.txt')
> grok.layer(SpiderLayer)
>
> def render(self):
> outp = []
> outp.append('User-agent: *')
> s = self.static().split('/')
>
> The last line fails due to static not being defined.
>
> Mvh Sebastian
>
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> https://mail.zope.org/mailman/listinfo/grok-dev
>
More information about the Grok-dev
mailing list