Back to index

plone3  3.1.7
elements.py
Go to the documentation of this file.
00001 """Dummies used in ZCML tests
00002 """
00003 
00004 from zope.interface import Interface, implements
00005 from zope import schema
00006 
00007 from plone.contentrules.rule.interfaces import IRuleElementData
00008 
00009 class ITestCondition(Interface):
00010     test = schema.TextLine(title=u"Test property")
00011 
00012 class TestCondition(object):
00013     implements(ITestCondition, IRuleElementData)
00014     test = u""
00015     
00016     summary = u"Test condition"
00017     element = u"test.condition"
00018 
00019 class ITestAction(Interface):
00020     test = schema.TextLine(title=u"Test property")
00021 
00022 class TestAction(object):
00023     implements(ITestAction, IRuleElementData)
00024     test = u""
00025     
00026     summary = u"Test action"
00027     element = u"test.action"