Commits

Anonymous committed 64dbae1

fixed IndexError on empty queries
settings are now searched in "~/sphinxcontrib" too

  • Participants
  • Parent commits 996f292
  • Tags clearquest-0.4

Comments (0)

Files changed (3)

clearquest/CHANGES

 
 This file describes user-visible changes between the extension versions.
 
+Version 0.4 (2011-12-20)
+------------------------
 
+* user credentials are now read in ~/.sphinxcontrib and ~/sphinxcontrib
+  (this is a convenience for windows users)
 
+Version 0.3 (2011-12-16)
+------------------------
+
+* fixed IndexError when the query return nothing 
 
 Version 0.2 (2011-12-14)
 ------------------------
 * fixed broken tables when some columns are "not shown"
 * removed explicit dependency to "pywin32" to avoid crashes of easy_install.
 
-
 Version 0.1 (2011-12-13)
 ------------------------
 

clearquest/setup.py

 
 setup(
     name='sphinxcontrib-clearquest',
-    version='0.3',
+    version='0.4',
     url='http://bitbucket.org/birkenfeld/sphinx-contrib',
     download_url='http://pypi.python.org/pypi/sphinxcontrib-clearquest',
     license='BSD',

clearquest/sphinxcontrib/clearquest/directive.py

             
             if len(records) == 0:
                 # No results from ClearQuest query, we fill one line with dashes
-                records.append(list("--" * len(columns)))
+                records.append(["--"] * len(columns))
             
             col_widths = self.get_column_widths(header=columns, content=records)
             table_head = [ self.create_row(columns) ]
             'db_name': None,
             'db_set': None,
         }
+        config = ConfigParser.RawConfigParser()
+
         # first, we try to read settings from ~/.sphinxcontrib
-        config = ConfigParser.RawConfigParser()
         config.read(path.normpath(path.expanduser('~/.sphinxcontrib')))
+        # then, from ~/sphinxcontrib for windows users
+        config.read(path.normpath(path.expanduser('~/sphinxcontrib')))
+        
         if config.has_section('clearquest'):
             for name in settings.keys():
                 if config.has_option('clearquest', name):