예제 #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>
""")
예제 #2
0
파일: skin.py 프로젝트: gyst/groktoolkit
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')