Author: dmeyer
Date: Fri Apr 7 20:25:59 2006
New Revision: 1393
Modified:
trunk/epg/src/server.py
Log:
change some debug, add commit function
Modified: trunk/epg/src/server.py
==============================================================================
--- trunk/epg/src/server.py (original)
+++ trunk/epg/src/server.py Fri Apr 7 20:25:59 2006
@@ -165,6 +165,14 @@
return sources[backend].update(self, *args, **kwargs)
+ def commit(self):
+ """
+ Commit changes to database.
+ """
+ log.info('commit database changes')
+ self._db.commit()
+
+
def _add_channel_to_db(self, tuner_id, name, long_name):
"""
This method requires at least one of tuner_id, name, long_name.
@@ -184,7 +192,6 @@
match real channels and EPG data.
"""
- log.info('add channel %s %s %s', tuner_id, name, long_name)
if type(tuner_id) != ListType and tuner_id:
tuner_id = [ tuner_id ]
@@ -227,6 +234,7 @@
self._tuner_ids.append(t)
# TODO: if everything is the same do not update
+ log.info('update channel %s', name)
self._db.update_object(("channel", c2["id"]),
tuner_id = c2["tuner_id"],
long_name = long_name)
@@ -240,6 +248,7 @@
else:
self._tuner_ids.append(t)
+ log.info('add channel %s %s %s', tuner_id, name, long_name)
o = self._db.add_object("channel", tuner_id = tuner_id, name = name,
long_name = long_name)
return o["id"]
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog