2
from zope.interface import classProvides
4
from xmantissa.ixmantissa import IWebTheme
5
from twisted.plugin import IPlugin
7
from nevow.loaders import stan
8
from nevow import tags as t
10
class PlainTheme(object):
11
classProvides(IWebTheme, IPlugin)
14
priority = 1 # should be 0 on pretty much any other theme
26
t.div(render=t.directive("navigation")),
29
t.div(render=t.directive("content"))]]]]])
31
navBoxTemplate = stan(
32
t.ul(render='sequence', data='navigation')[
34
t.a(href=t.slot('link'))[
36
t.invisible(render='subtabs')
40
def getDocFactory(self, fragmentName):
41
if fragmentName == 'shell':
42
return self.shellTemplate
43
elif fragmentName == 'navigation':
44
return self.navBoxTemplate