[Zope-CVS] CVS: Products/Basket/tests/fixtures-src/fiveproduct/Products/fiveproduct - __init__.py:1.1 configure.zcml:1.1 extra.zcml:1.1 module.py:1.1

Chris McDonough chrism at plope.com
Sat Nov 26 16:37:51 EST 2005


Update of /cvs-repository/Products/Basket/tests/fixtures-src/fiveproduct/Products/fiveproduct
In directory cvs.zope.org:/tmp/cvs-serv15161/fiveproduct/Products/fiveproduct

Added Files:
	__init__.py configure.zcml extra.zcml module.py 
Log Message:
Add fiveproduct fixture sources.


=== Added File Products/Basket/tests/fixtures-src/fiveproduct/Products/fiveproduct/__init__.py ===
# this is a product
def initialize(context):
    return 'fiveproduct initialized'



=== Added File Products/Basket/tests/fixtures-src/fiveproduct/Products/fiveproduct/configure.zcml ===
<configure xmlns="http://namespaces.zope.org/zope"
           xmlns:browser="http://namespaces.zope.org/browser"
           xmlns:five="http://namespaces.zope.org/five"
           >

  <include
    file="extra.zcml"
    />

  <adapter
    for="*"
    provides=".module.ISampleAdapter"
    factory=".module.SampleAdapter"
    />

</configure>


=== Added File Products/Basket/tests/fixtures-src/fiveproduct/Products/fiveproduct/extra.zcml ===
<configure xmlns="http://namespaces.zope.org/zope"
           xmlns:browser="http://namespaces.zope.org/browser"
           xmlns:five="http://namespaces.zope.org/five"
           >

  <adapter
    for="*"
    provides=".module.IExtraSampleAdapter"
    factory=".module.ExtraSampleAdapter"
    />

</configure>


=== Added File Products/Basket/tests/fixtures-src/fiveproduct/Products/fiveproduct/module.py ===
# test implementations

from zope.interface import Interface
from zope.interface import implements

class ISampleAdapter(Interface):
    pass

class SampleAdapter(object):
    implements(ISampleAdapter)
    def __init__(self, context):
        self.context = context

class IExtraSampleAdapter(Interface):
    pass

class ExtraSampleAdapter(object):
    implements(IExtraSampleAdapter)
    def __init__(self, context):
        self.context = context
        
    



More information about the Zope-CVS mailing list