
qKc           @   s   d  Z  d d d !Z d d d !Z d d d !Z d d k l Z d	 e f d
     YZ d e f d     YZ d e f d     YZ d e f d     YZ	 d e f d     YZ
 d e f d     YZ d e f d     YZ d S(   s   
$RCSfile: interfaces.py,v $

Product interfaces

Author: Philipp von Weitershausen <philikon@philikon.de>

$Id: interfaces.py,v 1.3 2003/06/16 05:47:53 arielpartners Exp $
s	   $Name:  $i   is   $Date: 2003/06/16 05:47:53 $s   $Revision: 1.3 $i
   i(   t	   Interfacet
   IXMLMethodc           B   sD   e  Z d  Z d   Z d   Z d   Z d   Z d   Z d   Z RS(   so   
    Base Method interface.  Classes never implement this
    interface directly, only derived interfaces.
    c           C   s   d S(   sI   
        Return names of currently available processor libraries
        N(    (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   availableProcessors   s    c           C   s   d S(   sI   
        Obtain the object encapsulating the selected processor.
        N(    (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt	   processor   s    c           C   s   d S(   s]   
        Retrieves the source Zope object (for XML content) via
        acquisition.
        N(    (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   getXmlSourceObject!   s    c         C   s   d S(   s2   same as changing the property.  For use in scriptsN(    (   t
   debugLevel(    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   setDebugLevel'   s    c           C   s   d S(   s+   Return true if and only if debugging is on.N(    (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   isDebugging*   s    c           C   s   d S(   si   
        Return list of meta types for standard zope objects this
        method can behave like
        N(    (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   behaveLikeList-   s    (	   t   __name__t
   __module__t   __doc__R   R   R   R   R   R   (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyR      s   					t   IDTDValidateMethodc           B   s    e  Z d  Z d   Z d   Z RS(   s   
    Automatically validates an XML document against its DTD, where the
    XML document is obtained from another Zope object via acquisition.
    c         C   s   d S(   s(   Return results of validation as a stringN(    (   t   REQUEST(    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   validationResultsString9   s    c         C   s   d S(   sp   
        Return boolean indicating whether passed in document is valid
        with respect to this DTD
        N(    (   R   (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   isValid<   s    (   R	   R
   R   R   R   (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyR   3   s   	t   IXPathMethodc           B   s   e  Z d  Z d   Z RS(   s   
    Automatically filters an XML document via XPath, where the XML
    document is obtained from another Zope object via acquisition.
    c         C   s   d S(   s]   
        Generate results using xpath expression and return them as a
        string
        N(    (   R   (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   evaluateH   s    (   R	   R
   R   R   (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyR   B   s   t   IXSLTMethodc           B   sA   e  Z d  Z d   Z d   Z d d  Z d d  Z d   Z RS(   s   
    Automatically transforms an XML document via XSLT, where the XML
    document is obtained from another Zope object via acquisition.
    c           C   s   d S(   sx   
        Obtain the Zope object holding the XSLT, or None if the name
        does not point to a valid object.
        N(    (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   getXslTransformerT   s    c         C   s   d S(   s>   Generate results using transformer and return them as a stringN(    (   R   (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt	   transformZ   s    c         C   s   d S(   s2   same as changing the property.  For use in scriptsN(    (   R   (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   setCachingOn]   s    c         C   s   d S(   s2   same as changing the property.  For use in scriptsN(    (   R   (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   setCachingOff`   s    c           C   s   d S(   s#   Return TRUE if caching is turned onN(    (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   isCachingOnc   s    N(	   R	   R
   R   R   R   t   NoneR   R   R   (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyR   N   s   		t   ICacheManagerc           B   sM   e  Z d  Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z	 RS(   s3   
    XML Method Cache Manager public interface
    c           C   s   d S(   s   
        Turns caching on for all instances of all types of XML filters
        within the scope of this cache manager.
        N(    (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   batchSetCachingOnk   s    c           C   s   d S(   s   
        Turns caching off for all instances of all types of XML
        filters within the scope of this cache manager.

        N(    (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   batchSetCachingOffq   s    c         C   s   d S(   s   
        Return the last modified time of the cache file for the passed in
        URL 'url', or 0 if the cache file does not exist
        N(    (   t   url(    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   cacheFileTimeStampx   s    c         C   s   d S(   s   
        Retrieve the output from the cache for the passed in
        URL 'url', or None if the cache file does not exist.
        N(    (   R   (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   valueFromCache~   s    c         C   s   d S(   s   
        Save some contents 'contents' to the cache for the passed in
        URL 'url'.  It will overwrite the previous contents of the cache
        file, or create a new cache file if it does not yet exist.
        N(    (   R   t   contents(    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   saveToCache   s    c           C   s   d S(   si   
        Clear the cache.  This involves removing every cache file from
        the file system.
        N(    (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt
   clearCache   s    c           C   s   d S(   s7   
        Return the list of files in the cache
        N(    (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   listCacheFiles   s    (
   R	   R
   R   R   R   R   R   R    R!   R"   (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyR   f   s   						t   IGeneratorRegistryc           B   s,   e  Z d    Z d   Z d   Z d   Z RS(   c         C   s   d S(   sK   
        Register generator object 'obj' for meta type 'meta_type'
        N(    (   t	   meta_typet   obj(    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   register   s    c         C   s   d S(   sC   
        Return generator object for meta type 'meta_type'
        N(    (   R$   (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   getGenerator   s    c           C   s   d S(   s1   
        Return default generator object
        N(    (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   getDefaultGenerator   s    c           C   s   d S(   s=   
        Return a sequence with supported meta types
        N(    (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   supportedMetaTypes   s    (   R	   R
   R&   R'   R(   R)   (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyR#      s   			t
   IGeneratorc           B   s&   e  Z d  Z d   Z d d d  Z RS(   s)   
    Interface for Output Generators
    c         K   s   d S(   s9   
        Create the object and return its result
        N(    (   t   idt   titlet	   rawStringt   kw(    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   createObject   s    c         C   s   d S(   s7   
        Call the object and return its result
        N(    (   R%   t   clientR   t   RESPONSE(    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt	   getResult   s    N(   R	   R
   R   R/   R   R2   (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyR*      s   	N(   R   t
   __cvstag__t   __date__t   __version__t   zope.interfaceR    R   R   R   R   R   R#   R*   (    (    (    s/   /srv/Zope/Products/ZopeXMLMethods/interfaces.pyt   <module>	   s   "U