Update of /cvsroot/freevo/freevo/src/video
In directory sc8-pr-cvs1:/tmp/cvs-serv14087/video

Modified Files:
        videoitem.py 
Log Message:
Move delete file from VideoItem into a global plugin. Now it's also
possible to remove audio and image files.


Index: videoitem.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/video/videoitem.py,v
retrieving revision 1.79
retrieving revision 1.80
diff -C2 -d -r1.79 -r1.80
*** videoitem.py        30 Aug 2003 17:05:41 -0000      1.79
--- videoitem.py        31 Aug 2003 17:14:20 -0000      1.80
***************
*** 11,14 ****
--- 11,18 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.80  2003/08/31 17:14:20  dischi
+ # Move delete file from VideoItem into a global plugin. Now it's also
+ # possible to remove audio and image files.
+ #
  # Revision 1.79  2003/08/30 17:05:41  dischi
  # remove bookmark support, add support for ItemPlugin eventhandler
***************
*** 278,310 ****
          items += configure.get_items(self)
   
-         if self.filename and self.mode == 'file' and not self.media:
-             items += [ (self.confirm_delete, 'Delete file') ]
- 
- 
          if self.variants and len(self.variants) > 1:
              items = [ (self.show_variants, 'Show variants') ] + items
  
          return items
- 
- 
-     def confirm_delete(self, arg=None, menuw=None):
-         if not self.menuw:
-             self.menuw = menuw
-         ConfirmBox(text='Do you wish to delete\n %s?' % self.name,
-                    handler=self.delete_file, default_choice=1).show()
- 
- 
-     def delete_file(self):
-         if DEBUG: print 'Deleting %s' % self.filename
-         base = os.path.splitext(self.filename)[0] + '.'
-         if os.path.isfile(base + 'jpg'):
-             os.remove(base + 'jpg')
-         if os.path.isfile(base + 'png'):
-             os.remove(base + 'png')
-         if os.path.isfile(self.filename):
-             os.unlink(self.filename)
-         if hasattr(self, 'fxd_file') and os.path.isfile(self.fxd_file):
-             os.unlink(self.fxd_file)
-         self.menuw.back_one_menu(arg='reload')
  
  
--- 282,289 ----




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to