[svn] / z3 / Five / trunk / tests / products / FiveTest / classes.py Repository:
ViewVC logotype

View of /z3/Five/trunk/tests/products/FiveTest/classes.py

Parent Directory Parent Directory | Revision Log Revision Log

Revision 46891 - (download) (as text) (annotate)
Wed Jun 16 12:54:00 2004 UTC (9 years, 10 months ago) by faassen
File size: 381 byte(s)
Initial import of Five. This is a cvs export of cvs.infrae.com/Five.
from zope.interface import implements
from interfaces import IAdaptable, IAdapted

class Adaptable:

    def method(self):
        return "The method"
class Adapter:
    def __init__(self, context):
        self.context = context
    def adaptedMethod(self):
        return "Adapted: %s" % self.context.method()

zope.org Infrastructure
ViewVC Help
Powered by ViewVC 1.0.3