Commits

Guido Draheim committed 3f68809

cleanup

Comments (0)

Files changed (1)

src/dvbcronrecording/files.py

         req.perm.assert_permission('DVBREC_LIST_VIEW')
         translate = Translate("files", req.locale)
 
-        # getting cursor
-        db = self.env.get_db_cnx()
-        cursor = db.cursor()
         page = req.args['page']
         if not page: page = "list"
         videotype="video/mpeg"
             name = page[len("play/"):]
             data = {}
             data['title'] = translate("Show Video")
-            data['entries'] = self._file_entries(cursor, req)
+            data['entries'] = self._file_entries(req)
             data['videofile'] = name
             data['videoheight'] = 576
             data['videowidth'] = 768
             diskfree = commands.getoutput("df -h "+self.intodir)
             message =  "| \n".join([ item for item in diskfree.split("\n") if "/" in item ])
             # message = diskfree 
-        entries = self._file_entries(cursor, req)
+        entries = self._file_entries(req)
         data = {}
         data['title'] = translate("Recorded Files Overview")
         data["_pagenum"] = req.args.get("_pagenum", "0")
         add_stylesheet(req, PACKAGE+'/css/recordinglist.css')
         add_script(req, 'common/js/trac.js')
         return ('recordingfiles.html', data, None)
-    def _file_entries(self, cursor, req):
+    def _file_entries(self, req):
         if False:
             entry = FileEntry()
             entry.name = self.intodir+"/*.mpg"