Repository URL to install this package:
Version:
4.0.109 ▾
|
contego
/
home
/
tvault
/
.virtenv
/
lib
/
python2.7
/
site-packages
/
nova
/
notifications
/
objects
/
base.pyc
|
---|
ó ±EYc @ sü d d l m Z d d l m Z d d l m Z e j j e d e j f d Y Z e j j d e f d Y Z e j j e d e f d Y Z e j j d e f d Y Z e j j e d e f d Y Z d Z d S( iÿÿÿÿ( t base( t fields( t rpct NotificationObjectc B s e Z d Z d Z d Z RS( s; Base class for every notification related versioned object.s 1.0c K s* t t | j | | j d t d S( Nt recursive( t superR t __init__t obj_reset_changest False( t selft kwargs( ( sT /home/tvault/.virtenv/lib/python2.7/site-packages/nova/notifications/objects/base.pyR s ( t __name__t __module__t __doc__t VERSIONR ( ( ( sT /home/tvault/.virtenv/lib/python2.7/site-packages/nova/notifications/objects/base.pyR s t EventTypec B sV e Z d Z i e j d e d 6e j d e d 6e j d e d 6Z d Z RS( s 1.3t nullablet objectt actiont phasec C s= d | j | j f } | j d r9 | d | j 7} n | S( s( Serialize the object to the wire format.s %s.%sR s .%s( R R t obj_attr_is_setR ( R t s( ( sT /home/tvault/.virtenv/lib/python2.7/site-packages/nova/notifications/objects/base.pyt to_notification_event_type_field2 s ( R R R R t StringFieldR t NotificationActionFieldt NotificationPhaseFieldt TrueR ( ( ( sT /home/tvault/.virtenv/lib/python2.7/site-packages/nova/notifications/objects/base.pyR # s t NotificationPayloadBasec B s, e Z d Z i Z d Z d Z d Z RS( s6 Base class for the payload of versioned notifications.s 1.0c K s' t t | j | | j | _ d S( N( R R R t SCHEMAt populated( R R ( ( sT /home/tvault/.virtenv/lib/python2.7/site-packages/nova/notifications/objects/base.pyR S s c K sx xX | j j D]G \ } \ } } | | } | j | r t | | t | | q q Wt | _ | j d t d S( s¹ Populate the object based on the SCHEMA and the source objects :param kwargs: A dict contains the source object at the key defined in the SCHEMA R N( R t itemsR t setattrt getattrR R R R ( R R t keyt objt fieldt source( ( sT /home/tvault/.virtenv/lib/python2.7/site-packages/nova/notifications/objects/base.pyt populate_schemaW s " ( R R R R R R R% ( ( ( sT /home/tvault/.virtenv/lib/python2.7/site-packages/nova/notifications/objects/base.pyR : s t NotificationPublisherc B sI e Z d Z i e j d e d 6e j d e d 6Z e d Z RS( s 1.0R t hostt binaryc C s | d | j d | j S( NR' R( ( R' R( ( t clst service( ( sT /home/tvault/.virtenv/lib/python2.7/site-packages/nova/notifications/objects/base.pyt from_service_objr s ( R R R R R R t classmethodR+ ( ( ( sT /home/tvault/.virtenv/lib/python2.7/site-packages/nova/notifications/objects/base.pyR&