Changeset 4570 for waeup/branches


Ignore:
Timestamp:
25 Dec 2009, 12:41:28 (15 years ago)
Author:
uli
Message:

Return datacenter files in basename order.

This fixes arbitrary test results in browser tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/datacenter.py

    r4277 r4570  
    6767    def getFiles(self):
    6868        """Get a list of files stored in `storage`.
     69
     70        Files are sorted by basename.
    6971        """
    7072        result = []
    7173        if not os.path.exists(self.storage):
    7274            return result
    73         for filename in os.listdir(self.storage):
     75        for filename in sorted(os.listdir(self.storage)):
    7476            fullpath = os.path.join(self.storage, filename)
    7577            if not os.path.isfile(fullpath):
Note: See TracChangeset for help on using the changeset viewer.