Added serialization to EC
[nepi.git] / src / nepi / execution / attribute.py
index bda72e2..19fbfc2 100644 (file)
@@ -52,6 +52,8 @@ class Flags:
     # transparent to the user)
     Reserved  = 1 << 6 # 64
 
+    # Attribute global is set to all resources of rtype
+    Global  = 1 << 7 # 128
 
 class Attribute(object):
     """
@@ -188,6 +190,7 @@ class Attribute(object):
         adequate validation"""
         return True
 
+    @property
     def has_changed(self):
         """ Returns true if the value has changed from the default """
         return self.value != self.default