Commits

Anonymous committed 21a49ad

Apparently, the order of files is significant. Scrape from the input fields.

Comments (0)

Files changed (1)

js/jqueryui/download.py

 
     def build(self, theme_name='No Theme', theme_params='none'):
         print 'downloading', theme_name
+        inputs = self.download_page_html.findall(
+            '//div[@id="download-builder-components"]//input')
         query = {
             'download': 'true',
             'theme': theme_params,
             't-name': theme_name,
             'ui-version': self.stable_version,
-            'files[]': self.jqueryui_dependencies.keys(),
+            'files[]': [input.attrib['value'] for input in inputs],
             }
         postdata = urllib.urlencode(query, doseq=True)
         theme_zip = urllib.urlopen(jqueryui_download_url, postdata).read()