2008-02-28

smartbannernamespace.py

  2008-02-28 00:13

...

### -*- coding: utf-8 -*- #############################################
#######################################################################
"""Product class for the Zope 3 based product package

$Id: smartbannernamespace.py 49707 2007-12-29 23:27:21Z cray $
"""
__author__  = "Elena Antusheva, 2007"
__license__ = "GPL"
__version__ = "$Revision: 49707 $"

from zope.interface import Interface
from zope.interface import implements,implementedBy
from zope.app.file.image import Image
from zope.traversing.interfaces import ITraverser, ITraversable
from zope.app.catalog.interfaces import ICatalog
from smartbannercontainer.interfaces import ISmartBannerContainer

from zope.app.zapi import getUtility

class SmartBannerNamespace(object) :
    implements(ITraversable)

    def __init__(self,context,request) :
        self.context = context
        self.request = request

    def traverse(self,name,ignored) :
        sbc = getUtility(ISmartBannerContainer)
        return sbc[name]
        
Официальный сайт Zope3 Московская группа изучения реактивного движения The Dream Bot Site noooxml