From aee8bb1088d02b5624ed087d26a1a07a4460d795 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.anjos@idiap.ch>
Date: Tue, 18 Sep 2012 20:55:23 +0200
Subject: [PATCH] Add a 'videofile' method to retrieve the concerned video file

---
 xbob/db/replay/models.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/xbob/db/replay/models.py b/xbob/db/replay/models.py
index 6618e70..3468e27 100644
--- a/xbob/db/replay/models.py
+++ b/xbob/db/replay/models.py
@@ -91,6 +91,19 @@ class File(Base):
 
     return os.path.join(directory, self.path + extension)
 
+  def videofile(self, directory=None):
+    """Returns the path to the database video file for this object
+
+    Keyword parameters:
+
+    directory
+      An optional directory name that will be prefixed to the returned result.
+
+    Returns a string containing the video file path.
+    """
+
+    return self.make_path(directory, '.mov')
+
   def facefile(self, directory=None):
     """Returns the path to the companion face bounding-box file
 
-- 
GitLab