diff options
author | Andrew Shadura <andrew@shadura.me> | 2015-08-20 15:58:27 +0200 |
---|---|---|
committer | Andrew Shadura <andrew@shadura.me> | 2015-08-20 15:58:27 +0200 |
commit | 25d6c405aff4167e801d0a4995083a56160b969e (patch) | |
tree | 070a400e9627b5b392dc3b57be4f889646ec2ea9 /reconfigure/items/supervisor.py | |
parent | ff1408420159488a106492ccd11dd234967029b6 (diff) |
Imported Upstream version 0.1.39
Diffstat (limited to 'reconfigure/items/supervisor.py')
-rw-r--r-- | reconfigure/items/supervisor.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/reconfigure/items/supervisor.py b/reconfigure/items/supervisor.py index a8e462f..b1d201c 100644 --- a/reconfigure/items/supervisor.py +++ b/reconfigure/items/supervisor.py @@ -12,11 +12,12 @@ class ProgramData (BoundData): def template(self): return Node('program:new', - PropertyNode('command', '127.0.0.1'), + PropertyNode('command', 'false'), ) SupervisorData.bind_collection('programs', item_class=ProgramData, selector=lambda x: x.name.startswith('program:')) ProgramData.bind_name('name', getter=lambda x: x[8:], setter=lambda x: 'program:%s' % x) +ProgramData.bind_attribute('comment', 'comment') for i in range(0, len(ProgramData.fields)): ProgramData.bind_property(ProgramData.fields[i], ProgramData.fields[i], default_remove=[None, '']) |