git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding compilation of DCE sources
[nepi.git]
/
src
/
nepi
/
execution
/
attribute.py
diff --git
a/src/nepi/execution/attribute.py
b/src/nepi/execution/attribute.py
index
64a3d05
..
bda72e2
100644
(file)
--- a/
src/nepi/execution/attribute.py
+++ b/
src/nepi/execution/attribute.py
@@
-39,8
+39,8
@@
class Flags:
# Attribute value can be modified only before deployment
Design = 1 << 2 # 4
# Attribute value can be modified only before deployment
Design = 1 << 2 # 4
- # Attribute value will be used
only during the deployment face
- Construct = 1 << 3
| Design # 8 + 4
+ # Attribute value will be used
at deployment time for initial configuration
+ Construct = 1 << 3
# 8
# Attribute provides credentials to access resources
Credential = 1 << 4 | Design # 16 + 4
# Attribute provides credentials to access resources
Credential = 1 << 4 | Design # 16 + 4
@@
-48,6
+48,10
@@
class Flags:
# Attribute is a filter used to discover resources
Filter = 1 << 5 | Design # 32 + 4
# Attribute is a filter used to discover resources
Filter = 1 << 5 | Design # 32 + 4
+ # Attribute Flag is reserved for internal RM usage (i.e. should be
+ # transparent to the user)
+ Reserved = 1 << 6 # 64
+
class Attribute(object):
"""
class Attribute(object):
"""
@@
-85,7
+89,7
@@
class Attribute(object):
attributes.
:type range: (int, int) or (float, float)
attributes.
:type range: (int, int) or (float, float)
- :param set_hook: Function that will be executed when
ever a new
+ :param set_hook: Function that will be executed whenever a new
value is set for the attribute.
:type set_hook: function
value is set for the attribute.
:type set_hook: function
@@
-142,7
+146,7
@@
class Attribute(object):
def has_flag(self, flag):
""" Returns true if the attribute has the flag 'flag'
def has_flag(self, flag):
""" Returns true if the attribute has the flag 'flag'
- :param flag: Flag t
hat need to be ck
ecked
+ :param flag: Flag t
o be ch
ecked
:type flag: Flags
"""
return (self._flags & flag) == flag
:type flag: Flags
"""
return (self._flags & flag) == flag