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

Modified Files:
        directory.py 
Log Message:
added DIRECTORY_REVERSE_SORT

Index: directory.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/directory.py,v
retrieving revision 1.43
retrieving revision 1.44
diff -C2 -d -r1.43 -r1.44
*** directory.py        11 Oct 2003 09:54:22 -0000      1.43
--- directory.py        12 Oct 2003 09:42:37 -0000      1.44
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.44  2003/10/12 09:42:37  dischi
+ # added DIRECTORY_REVERSE_SORT
+ #
  # Revision 1.43  2003/10/11 09:54:22  dischi
  # just to be save
***************
*** 96,100 ****
                   'AUDIO_RANDOM_PLAYLIST', 'FORCE_SKIN_LAYOUT',
                   'AUDIO_FORMAT_STRING','DIRECTORY_SMART_SORT',
!                  'USE_MEDIAID_TAG_NAMES')
  
  possible_display_types = [ ]
--- 99,103 ----
                   'AUDIO_RANDOM_PLAYLIST', 'FORCE_SKIN_LAYOUT',
                   'AUDIO_FORMAT_STRING','DIRECTORY_SMART_SORT',
!                  'USE_MEDIAID_TAG_NAMES', 'DIRECTORY_REVERSE_SORT')
  
  possible_display_types = [ ]
***************
*** 499,502 ****
--- 502,508 ----
                                               o.sort().upper()))
  
+         if self.DIRECTORY_REVERSE_SORT:
+             play_items.reverse()
+             
          files.sort(lambda l, o: cmp(l.upper(), o.upper()))
  
***************
*** 524,529 ****
              dir_items.sort(lambda l, o: cmp(l.dir.upper(), o.dir.upper()))
   
! 
! 
          # build items for playlists
          pl_items = []
--- 530,536 ----
              dir_items.sort(lambda l, o: cmp(l.dir.upper(), o.dir.upper()))
   
!         if self.DIRECTORY_REVERSE_SORT:
!             dir_items.reverse()
!             
          # build items for playlists
          pl_items = []
***************
*** 664,668 ****
                  self.play_items.sort(lambda l, o: cmp(l.sort().upper(),
                                                        o.sort().upper()))
-                 
  
          # add new dir items to the menu
--- 671,674 ----
***************
*** 681,684 ****
--- 687,693 ----
              self.dir_items.sort(lambda l, o: cmp(l.dir.upper(), o.dir.upper()))
  
+         if self.DIRECTORY_REVERSE_SORT:
+             self.play_items.reverse()
+             self.dir_items.reverse()
  
          # add new playlist items to the menu




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to