c5231586632e88a10fc868b13b6336305801a4ed
mmaddren
  Wed Oct 26 17:02:04 2011 -0700
minor bug fix for composite track
diff --git python/lib/ucscgenomics/track.py python/lib/ucscgenomics/track.py
index 6cd235d..e0f529f 100644
--- python/lib/ucscgenomics/track.py
+++ python/lib/ucscgenomics/track.py
@@ -132,31 +132,31 @@
     def httpDownloadsPath(self):
         """The location of the downloadable files path in apache form"""
         if not os.path.isdir(self._httpDownloadsPath):
             raise KeyError(self._httpDownloadsPath + ' does not exist')
         return self._httpDownloadsPath
     
     @property 
     def files(self):
         """A list of all files in the downloads directory of this composite"""
         try:
             return self._files
         except AttributeError:
             md5sums = readMd5sums(self._md5path)
             
             radict = dict()
-            for stanza in self.alphaMetaDb:
+            for stanza in self.alphaMetaDb.itervalues():
                 if 'fileName' in stanza:
                     for file in stanza['fileName'].split(','):
                         radict[file] = stanza
             
             self._files = dict()
             for file in os.listdir(self.downloadsDirectory):
                 if os.path.isfile(self.downloadsDirectory + file):
                     
                     stanza = None
                     if file in radict:
                         stanza = radict[file]
                         
                     if file in md5sums:
                         self._files[file] = TrackFile(self.downloadsDirectory + file, md5sums[file], stanza)
                     else: