Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv13616
Modified Files:
plugin.py playlist.py fxditem.py
Log Message:
remove update function
Index: plugin.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugin.py,v
retrieving revision 1.58
retrieving revision 1.59
diff -C2 -d -r1.58 -r1.59
*** plugin.py 31 Dec 2003 16:39:43 -0000 1.58
--- plugin.py 3 Jan 2004 17:40:27 -0000 1.59
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.59 2004/01/03 17:40:27 dischi
+ # remove update function
+ #
# Revision 1.58 2003/12/31 16:39:43 dischi
# flag if the mimetype returns something else than play files
***************
*** 213,224 ****
"""
return []
-
-
- def update(self, parent, new_files, del_files, new_items, del_items,
current_items):
- """
- update a directory. Add items to del_items if they had to be removed based on
- del_files or add them to new_items based on new_files
- """
- pass
--- 216,219 ----
Index: playlist.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/playlist.py,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -d -r1.49 -r1.50
*** playlist.py 2 Jan 2004 11:18:39 -0000 1.49
--- playlist.py 3 Jan 2004 17:40:27 -0000 1.50
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.50 2004/01/03 17:40:27 dischi
+ # remove update function
+ #
# Revision 1.49 2004/01/02 11:18:39 dischi
# call correct build function
***************
*** 526,548 ****
return items
-
-
- def update(self, parent, new_files, del_files, new_items, del_items,
current_items):
- """
- update a directory. Add items to del_items if they had to be removed based on
- del_files or add them to new_items based on new_files
- """
- for item in current_items:
- # remove 'normal' files
- for file in util.find_matches(del_files, self.suffix()):
- if item.type == 'playlist' and item.filename == file and not \
- item in del_items:
- del_items += [ item ]
- del_files.remove(file)
-
- # add new 'normal' files
- for file in util.find_matches(new_files, self.suffix()):
- new_items.append(Playlist(file, parent))
- new_files.remove(file)
--- 529,532 ----
Index: fxditem.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/fxditem.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** fxditem.py 31 Dec 2003 16:40:25 -0000 1.8
--- fxditem.py 3 Jan 2004 17:40:27 -0000 1.9
***************
*** 27,30 ****
--- 27,33 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.9 2004/01/03 17:40:27 dischi
+ # remove update function
+ #
# Revision 1.8 2003/12/31 16:40:25 dischi
# small speed enhancements
***************
*** 126,165 ****
else:
return []
-
-
- def update(self, parent, new_files, del_files, new_items, del_items,
current_items):
- """
- update a directory. Add items to del_items if they had to be removed based on
- del_files or add them to new_items based on new_files
- """
- if parent.type != 'dir':
- # don't know what to do here
- return
-
- # a fxd files may be removed, 'free' covered files
- for fxd_file in util.find_matches(del_files, ['fxd']):
- for i in current_items:
- if i.fxd_file == fxd_file and hasattr(i, '_fxd_covered_'):
- for covered in i._fxd_covered_:
- if not covered in del_files:
- new_files.append(covered)
- del_items.append(i)
- del_files.remove(fxd_file)
-
-
- # a new fxd file may cover items
- fxd_files = util.find_matches(new_files, ['fxd'])
- if fxd_files:
- for f in fxd_files:
- new_files.remove(f)
- copy_all = copy.copy(parent.all_files)
- new_items += self.parse(parent, fxd_files, copy_all)
- for f in parent.all_files:
- if not f in copy_all:
- # covered by fxd now
- if not f in new_files:
- del_files.append(f)
- else:
- new_files.remove(f)
--- 129,132 ----
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog