Update of /cvsroot/freevo/freevo/src/image
In directory sc8-pr-cvs1:/tmp/cvs-serv5443/image

Modified Files:
        __init__.py 
Log Message:
move more info to the Mimetype

Index: __init__.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/image/__init__.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** __init__.py 30 Nov 2003 14:41:10 -0000      1.5
--- __init__.py 6 Dec 2003 13:44:12 -0000       1.6
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.6  2003/12/06 13:44:12  dischi
+ # move more info to the Mimetype
+ #
  # Revision 1.5  2003/11/30 14:41:10  dischi
  # use new Mimetype plugin interface
***************
*** 38,41 ****
--- 41,47 ----
  #endif
  
+ # Add support for bins album files
+ from mmpython.image import bins
+ 
  import config
  import util
***************
*** 86,87 ****
--- 92,113 ----
  
          new_items += cwd(parent, new_files)
+ 
+ 
+     def dirinfo(self, diritem):
+         """
+         set informations for a diritem based on album.xml
+         """
+         if vfs.isfile(diritem.dir + '/album.xml'):
+             info  = bins.get_bins_desc(diritem.dir)
+             if not info.has_key('desc'):
+                 return
+ 
+             info = info['desc']
+             if info.has_key('sampleimage'):
+                 image = vfs.join(diritem.dir, info['sampleimage'])
+                 if vfs.isfile(image):
+                     diritem.image       = image
+                     diritem.handle_type = diritem.display_type
+ 
+             if info.has_key('title'):
+                 diritem.name = info['title']




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to