Changeset 2498:11d9a979e8db

Show
Ignore:
Timestamp:
07/27/10 10:17:16 (6 weeks ago)
Author:
Fritz
Branch:
default
Message:

REST : change key name for xml command file

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/domogik/xpl/bin/rest.py

    r2492 r2498  
    448448                xml_file = self._xml_directory + "/" + techno + "/" + command 
    449449                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) 
    451451        self.xml_date = datetime.datetime.now() 
    452452 
     
    959959 
    960960    def _rest_command_get_message(self, techno, address, command, params): 
    961         ref = "%s-%s.xml" % (techno,command) 
     961        ref = "%s/%s.xml" % (techno,command) 
    962962        try: 
    963963            xml_data = self.xml[ref] 
     
    10291029 
    10301030    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)] 
    10321032 
    10331033        ### Get only <command...> part