Update of /cvsroot/freevo/freevo/src/plugins In directory sc8-pr-cvs1:/tmp/cvs-serv5999
Modified Files: mediamenu.py Log Message: better fxd handling Index: mediamenu.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/plugins/mediamenu.py,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** mediamenu.py 1 Dec 2003 19:09:37 -0000 1.27 --- mediamenu.py 6 Dec 2003 13:47:11 -0000 1.28 *************** *** 10,13 **** --- 10,16 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.28 2003/12/06 13:47:11 dischi + # better fxd handling + # # Revision 1.27 2003/12/01 19:09:37 dischi # better handling of the MimetypePlugin *************** *** 160,183 **** if self.display_type: ! dirs = eval('config.%s_ITEMS' % self.display_type.upper()) self.normal_items = [] # add default items ! for d in dirs: try: ! if isinstance(d, str): # normal file for p in plugin.mimetype(self.display_type): ! self.normal_items += p.get(self, [ d ]) ! else: ! (t, dir) = d[:2] ! if len(d) > 2: ! add_args = d[2:] ! else: ! add_args = None ! d = directory.DirItem(dir, self, name = t, ! display_type = self.display_type, ! add_args = add_args) ! self.normal_items.append(d) except: traceback.print_exc() --- 163,199 ---- if self.display_type: ! items = eval('config.%s_ITEMS' % self.display_type.upper()) self.normal_items = [] + # add default items ! for item in items: try: ! add_args = None ! if isinstance(item, str): ! title, filename = '', item ! else: ! (title, filename) = item[:2] ! if len(item) > 2: ! add_args = item[2:] ! ! if vfs.isdir(filename): ! item = directory.DirItem(filename, self, display_type=self.display_type, ! add_args=add_args) ! if title: ! item.name = title ! self.normal_items.append(item) ! else: ! if not vfs.isfile(filename): ! filename = vfs.join(config.SHARE_DIR, filename) # normal file for p in plugin.mimetype(self.display_type): ! items = p.get(self, [ filename ]) ! if title: ! for i in items: ! i.name = title ! self.normal_items += items ! ! except: traceback.print_exc() ------------------------------------------------------- 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