OwlCyberSecurity - MANAGER
Edit File: simpleresource.pyc
� �t�ac @ s d Z d d d d g Z d d l m Z m Z d d l m Z d d l m Z d d l m Z m Z d d l m Z d d l m Z d d l m Z d d l Z d e f d � � YZ e Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( s( Implements a simple non-file resource. t SimpleResourcet SimpleCalDAVResourcet SimpleRedirectResourcet SimpleDataResourcei����( t httpt server( t responsecode( t NonePropertyStore( t Responset HTTPError( t succeed( t CalDAVResource( t elementNc B s� e Z e j e j e j e j � � e j e j e j � � � e j � � � Z e j e j e j e j � � e j e j e j � � � e j � � � Z e e d � Z d � Z d � Z d � Z e e d d � Z RS( c C s) t j | d | �| | _ | | _ d S( s/ Make sure it is a collection. t principalCollectionsN( R t __init__t _isDirt defaultACL( t selfR t isdirR ( ( s/ /opt/cpanel-ccs/twistedcaldav/simpleresource.pyR @ s c C s | j S( N( R ( R ( ( s/ /opt/cpanel-ccs/twistedcaldav/simpleresource.pyt isCollectionH s c C s( t | d � s! t | � | _ n | j S( Nt _dead_properties( t hasattrR R ( R ( ( s/ /opt/cpanel-ccs/twistedcaldav/simpleresource.pyt deadPropertiesK s c C s t d � S( N( R t None( R ( ( s/ /opt/cpanel-ccs/twistedcaldav/simpleresource.pyt etagP s c C s t | j � S( N( R R ( R t requestt inheritancet expandingt inherited_aces( ( s/ /opt/cpanel-ccs/twistedcaldav/simpleresource.pyt accessControlListS s N( t __name__t __module__t davxmlt ACLt ACEt Principalt Allt Grantt Privileget Readt Protectedt allReadACLt Authenticatedt authReadACLt FalseR R R R t TrueR R ( ( ( s/ /opt/cpanel-ccs/twistedcaldav/simpleresource.pyR + s c B s) e Z d Z e e j d � Z d � Z RS( s? A L{SimpleResource} which always performs a redirect. c K s, t j | d | d | d | �| | _ d S( s� Parameters are URL components and are the same as those for L{urlparse.urlunparse}. URL components which are not specified will default to the corresponding component of the URL of the request being redirected. R R R N( R R t _kwargs( R R R R t kwargs( ( s/ /opt/cpanel-ccs/twistedcaldav/simpleresource.pyR ^ s c C s"