Back to index

plone3  3.1.7
ZService.py
Go to the documentation of this file.
00001 from Products.validation.interfaces.IValidationService import IValidationService
00002 from Products.validation.service import Service
00003 
00004 from Acquisition import Implicit
00005 from Globals import InitializeClass
00006 from AccessControl import ClassSecurityInfo
00007 
00008 from AccessControl import ModuleSecurityInfo
00009 
00010 # make validator service public
00011 security = ModuleSecurityInfo('Products.validation.config')
00012 security.declarePublic('validation')
00013 
00014 class ZService(Service, Implicit):
00015     """Service running in a zope site - exposes some methods""" 
00016 
00017     security = ClassSecurityInfo()
00018     __implements__ = IValidationService
00019 
00020     security.declarePublic('validate')
00021     security.declarePublic('__call__')
00022     security.declarePublic('validatorFor')
00023 
00024 InitializeClass(ZService)