X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FPlugins%2FExtensions%2FHbbTV%2Fbookmark.py;h=504856488d06c549f5106c4950e69339f79a77a4;hp=6e5dd7b7ec5f5bb950b4ad446f79de5d551d490d;hb=ee75b9b5a61fb4363008bc701e1ba9a42c0b922c;hpb=76ed1c8aaa8a58cd44153fc51aa1756d2de8ef23 diff --git a/lib/python/Plugins/Extensions/HbbTV/bookmark.py b/lib/python/Plugins/Extensions/HbbTV/bookmark.py index 6e5dd7b..5048564 100644 --- a/lib/python/Plugins/Extensions/HbbTV/bookmark.py +++ b/lib/python/Plugins/Extensions/HbbTV/bookmark.py @@ -1,3 +1,5 @@ +import vbcfg + class BookmarkData: def __init__(self, _id, _title, _url, _parent, _type): self.mId = _id @@ -38,7 +40,6 @@ class SimpleConfigParser: def _read(self): if self.mDataValid: return - print "populate!!" self.mConfig.read(self.mFileName) self.mCategoryCurrentIdx = self.getNumber('__SYS__', 'category_current_idx') @@ -52,7 +53,6 @@ class SimpleConfigParser: self.mPopulateValid = False def _del(self, _section, _option=None): - #print _section, ' :', _option if _option is None: if not self.exist(_section): return @@ -66,7 +66,7 @@ class SimpleConfigParser: try: data = self.mConfig.get(_section, _option) except Exception, e: - #print e + vbcfg.ERR(e) return _default else : return data @@ -153,8 +153,9 @@ class BookmarkManager(SimpleConfigParser): if not self.mDebugEnable: return if params is None: - print format - else: print format % (params) + vbcfg.DEBUG(format) + else: + vbcfg.DEBUG(format % (params)) def getBookmark(self, _title): self.populate() @@ -287,6 +288,6 @@ class BookmarkManager(SimpleConfigParser): @staticmethod def getInstance(): - return BookmarkManager('/usr/lib/enigma2/python/Plugins/Extensions/HbbTV/bookmark.ini') + return BookmarkManager(vbcfg.PLUGINROOT + "/bookmark.ini")