Beispiel #1
0
import grok
from zope import interface


grok.definelayer('my')
grok.defineskin('my')                 # Picks up the layer 'my' if it exists

grok.layer('my')                      # If there is only a single layer defined
                                      # in a module, it will be the default


class Painting(grok.View):
    pass


fireplace = grok.PageTemplate("""\
<html><body></body></html>
""")
Beispiel #2
0
import grok
from zope import interface


grok.definelayer('my')
grok.definelayer('admin')

grok.layer('my')

grok.defineskin('my', ['my'])         # this is the default
grok.defineskin('my')                 # does the same as the line above
grok.defineskin('admin', ['admin', 'my'])


class Painting(grok.View):
    pass


fireplace = grok.PageTemplate("""\
<html><body></body></html>
""")


class AdminPainting(grok.View):
    grok.layer('adminlayer')