Author: dmeyer
Date: Sat Dec 9 17:22:07 2006
New Revision: 2192
Modified:
trunk/beacon/src/media.py
Log:
fix media changes
Modified: trunk/beacon/src/media.py
==============================================================================
--- trunk/beacon/src/media.py (original)
+++ trunk/beacon/src/media.py Sat Dec 9 17:22:07 2006
@@ -148,20 +148,19 @@
raise RuntimeError('not connected to database')
if id in self._dict:
return self._dict.get(id)
- m = Media(id, self.db, self.controller, prop)
- self._dict[id] = m
+ media = Media(id, self.db, self.controller, prop)
+ self._dict[id] = media
self.idlist = [ m._beacon_id[1] for m in self._dict.values() ]
- return m
+ return media
def remove(self, id):
if not id in self._dict:
log.error('%s not in list' % id)
return None
- m = self._dict[id]
- del self._dict[id]
+ media = self._dict.pop(id)
self.idlist = [ m._beacon_id[1] for m in self._dict.values() ]
- return m
+ return media
def get(self, id):
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog