Changeset 2498:11d9a979e8db
- Timestamp:
- 07/27/10 10:17:16 (6 weeks ago)
- Author:
- Fritz
- Branch:
- default
- Message:
-
REST : change key name for xml command file
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r2492
|
r2498
|
|
| 448 | 448 | xml_file = self._xml_directory + "/" + techno + "/" + command |
| 449 | 449 | self._log.info("Load XML file for %s>%s : %s" % (techno, command, xml_file)) |
| 450 | | self.xml["%s-%s" % (techno, command)] = minidom.parse(xml_file) |
| | 450 | self.xml["%s/%s" % (techno, command)] = minidom.parse(xml_file) |
| 451 | 451 | self.xml_date = datetime.datetime.now() |
| 452 | 452 | |
| … |
… |
|
| 959 | 959 | |
| 960 | 960 | def _rest_command_get_message(self, techno, address, command, params): |
| 961 | | ref = "%s-%s.xml" % (techno,command) |
| | 961 | ref = "%s/%s.xml" % (techno,command) |
| 962 | 962 | try: |
| 963 | 963 | xml_data = self.xml[ref] |
| … |
… |
|
| 1029 | 1029 | |
| 1030 | 1030 | def _rest_command_get_listener(self, techno, address, command, params): |
| 1031 | | xml_data = self.xml["%s-%s.xml" % (techno,command)] |
| | 1031 | xml_data = self.xml["%s/%s.xml" % (techno,command)] |
| 1032 | 1032 | |
| 1033 | 1033 | ### Get only <command...> part |