from zope.publisher.browser import applySkin from zope.app.component.interfaces import ISite from interfaces import IKrihvelSkin def mark_layer(site, event): # TODO: remove this. It's a temporary hack if not ISite.providedBy(event.object): return if not event.request.principal.title.lower() in ('vahur', 'manager'): applySkin(event.request, IKrihvelSkin)