Changeset 21ec26f750eff397ee0cdca1ad4374cc6f3d95cb
- Timestamp:
- 01/22/08 07:21:23 (1 year ago)
- git-parent:
[778f2cfa64c8ee7827d9effbba9720d9609c039b], [26f47cd441beeadb2ffc9a6ab7091595de431a0a]
- Files:
-
- httpserver.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
httpserver.py
r1d1efb4 r21ec26f 29 29 30 30 def add_container(self, name, settings): 31 if self.containers.has_key(name) or name == 'Ti voConnect':31 if self.containers.has_key(name) or name == 'TiVoConnect': 32 32 raise "Container Name in use" 33 33 settings['content_type'] = GetPlugin(settings['type']).CONTENT_TYPE … … 41 41 42 42 def do_GET(self): 43 44 basepath = unquote_plus(self.path).split('/')[1] 43 45 44 46 ## Get File 45 47 for name, container in self.server.containers.items(): 46 #XXX make a regex 47 path = unquote_plus(self.path) 48 if path.startswith('/' + name): 48 if basepath == name: 49 49 plugin = GetPlugin(container['type']) 50 50 plugin.send_file(self, container, name)
