OwlCyberSecurity - MANAGER
Edit File: privateevents.pyc
� �t�ac @ s� d d l m Z d d l m Z m Z d d l m Z m Z m Z m Z m Z 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 responsecode( t HTTPErrort StatusResponse( t Propertyt CalendarDatat CalendarComponentt AllPropertiest AllComponents( t CalendarDataFilter( t CalendarFilter( t Componentt PrivateEventFilterc B s) e Z d Z d � Z d � Z d � Z RS( s] Filter a private event to match the rights of the non-owner user accessing the data c C s | | _ | | _ d S( s� @param accessRestriction: one of the access levels in L{Component} @type accessRestriction: C{str} @param isowner: whether the current user is the owner of the data @type isowner: C{bool} N( t accessRestrictiont isowner( t selfR R ( ( s: /opt/cpanel-ccs/twistedcaldav/datafilters/privateevents.pyt __init__# s c C s� | j s% | j t j k s% | j r) | S| j t j k rV t t t j d � � � nE| j t j k rl | S| j t j t j f k r�d } | j t j k r� t d d � t d d � f } n t t t d d � t d d � t d d � t d t j � t t d d � t d d � t d d � t d d � t d d � t d d � t d d � t d d � t d d � t d d � t d d � t d d � t d d � | i d d 6� t t d d � t d d � t d d � t d d � t d d � t d d � t d d � t d d � t d d � t d d � t d d � t d d � t d d � | i d d 6� t t d d � t d d � t d d � t d d � t d d � t d d � t d d � t d d � t d d � t d d � t d d � | i d d 6� t t d d � t d d � t d d � t d d � t d d � t d d � | i d d 6� t t � t � d d �d d � � } t | � j | � St t t j d � � � d S( s� Filter the supplied iCalendar object using the request information. @param ical: iCalendar object @type ical: L{Component} or C{str} @return: L{Component} for the filtered calendar data s Access Deniedt namet SUMMARYt LOCATIONt PRODIDt VERSIONt CALSCALEt UIDs RECURRENCE-IDt SEQUENCEt DTSTAMPt STATUSt TRANSPt DTSTARTt DTENDt DURATIONt RRULEt RDATEt EXRULEt EXDATEt VEVENTt COMPLETEDt DUEt VTODOt VJOURNALt FREEBUSYt VFREEBUSYt VTIMEZONEt VCALENDARN( ( R R R t ACCESS_PUBLICt ACCESS_PRIVATER R R t FORBIDDENt ACCESS_CONFIDENTIALt ACCESS_RESTRICTEDR R R t ACCESS_PROPERTYR R R t filter( R t icalt extra_accesst calendardata( ( s: /opt/cpanel-ccs/twistedcaldav/datafilters/privateevents.pyR1 / s� % c C s t � d S( s7 Private event merging does not happen N( t NotImplementedError( R t icalnewt icalold( ( s: /opt/cpanel-ccs/twistedcaldav/datafilters/privateevents.pyt merge� s ( t __name__t __module__t __doc__R R1 R8 ( ( ( s: /opt/cpanel-ccs/twistedcaldav/datafilters/privateevents.pyR s {N( t txweb2R t txweb2.httpR R t twistedcaldav.caldavxmlR R R R R t&