[Grok-dev] Re: layers and skins
Kevin Smith
kevin at mcweekly.com
Wed Apr 25 19:09:20 EDT 2007
The ksmith_mcweekly-layers branch is ready for merge :)
Implementation:
class AdminLayer(grok.ILayer):
pass
class Admin(grok.Skin):
grok.name('admin') # default
grok.layer(AdminLayer)
class PublicLayer(grok.ILayer):
pass
class Public(grok.Skin):
grok.name('public') # default
grok.layer(PublicLayer)
grok.layer(PublicLayer) # module level default
class AdminView(grok.View):
grok.layer(AdminLayer)
class PublicView(grok.View):
# uses grok.layer(PublicLayer) defined earlier
Let me know if anything else needs to be done.
Kevin Smith
More information about the Grok-dev
mailing list