%PDF- %PDF-
Direktori : /opt/alt/python27/lib/python2.7/site-packages/paste/util/ |
Current File : //opt/alt/python27/lib/python2.7/site-packages/paste/util/classinit.pyo |
� b�Nc @ s# d e f d � � YZ d � Z d S( t ClassInitMetac B s e Z d � Z RS( c C s t j | | | | � } | j d � rY t | j t � rY t | d t | j j � � n t | d � r{ | j | | � n | S( Nt __classinit__( t typet __new__t has_keyt isinstanceR t staticmethodt setattrt im_funct hasattr( t metat class_namet basest new_attrst cls( ( sE /opt/alt/python27/lib/python2.7/site-packages/paste/util/classinit.pyR s ( t __name__t __module__R ( ( ( sE /opt/alt/python27/lib/python2.7/site-packages/paste/util/classinit.pyR s c C s7 x0| j � D]"\ } } | j d � sF | j d � sF | j d � r | d } t | | � r� t | | � } t | t � s� t d | t | � | f � � n i | j d 6| j d 6| j d 6| j d 6} n i } | | d | d <| j d � r| j r| j | d <n t | � } t | | | � q q Wd S( s� Given a class and a new set of attributes (as passed in by __classinit__), create or modify properties based on functions with special names ending in __get, __set, and __del. t __gett __sett __deli����sJ Attribute %s is a %s, not a property; function %s is named like a propertyt fgett fsett fdelt doct fi����N( t itemst endswithR t getattrR t propertyt ValueErrorR R R R t __doc__R ( R R t namet valuet baset old_propt attrst new_prop( ( sE /opt/alt/python27/lib/python2.7/site-packages/paste/util/classinit.pyt build_properties s( N( R R R% ( ( ( sE /opt/alt/python27/lib/python2.7/site-packages/paste/util/classinit.pyt <module> s