OwlCyberSecurity - MANAGER
Edit File: addressdata.pyc
� �t�ac @ sS d d l m Z d d l m Z d d l m Z d g Z d e f d � � YZ d S( i����( t AllProperties( t AddressFilter( t Componentt AddressDataFilterc B s2 e Z d Z d � Z d � Z d � Z d � Z RS( sE Filter using the CARDDAV:address-data element specification c C s | | _ d S( sy @param addressdata: the XML element describing how to filter @type addressdata: L{AddressData} N( t addressdata( t selfR ( ( s8 /opt/cpanel-ccs/twistedcaldav/datafilters/addressdata.pyt __init__ s c C sJ | j j s | S| j | � } | j j rF | j | j j | � } n | S( s� Filter the supplied vCard object using the request information. @param vcard: vCard object @type vcard: L{Component} or C{str} @return: L{Component} for the filtered vcard data ( R t childrent validAddresst propertiest propFilter( R t vcard( ( s8 /opt/cpanel-ccs/twistedcaldav/datafilters/addressdata.pyt filter( s c C s� t d � } | } | d k r* t � } n | d k r� | t � k rl x� | j � D] } | j | � qR Wq� x>