Author: dmeyer
Date: Wed Feb 22 09:37:38 2006
New Revision: 1214

Modified:
   trunk/WIP/vfs/src/item.py

Log:
integrate kaa.thumb2

Modified: trunk/WIP/vfs/src/item.py
==============================================================================
--- trunk/WIP/vfs/src/item.py   (original)
+++ trunk/WIP/vfs/src/item.py   Wed Feb 22 09:37:38 2006
@@ -32,10 +32,13 @@
 #
 # -----------------------------------------------------------------------------
 
-
+# python imports
 import os
 import stat
 
+# kaa imports
+import kaa.epg2
+
 UNKNOWN = -1
 
 class Item(object):
@@ -89,6 +92,9 @@
 
     
     def getattr(self, key):
+        if key == 'thumbnail' and hasattr(self, 'filename'):
+            return kaa.epg2.Thumbnail(self.filename, url=self.url)
+        
         # FIXME: make sure we have db data
         if self._vfs_data.has_key(key):
             return self._vfs_data[key]


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to