Commits

Alexander Dudko committed 3a21642

new README.rst to resolve issue 1

Comments (0)

Files changed (2)

 
 
 
-Installation
-============
+Linux installation
+==================
+
+    sudo easy_install jira-bulk-loader
+
+By default jira-bulk-loader.py will be installed in the /usr/bin/ folder.
+
+
+Windows installation
+====================
 
-Download and install using pip:
+    C:/Python27/Scripts/easy_install.exe jira-bulk-loader
 
-    pip install jira-bulk-loader
+By default jira-bulk-loader.py will be installed in the C:/Python27/Scripts/ folder.
 
 
 
 
 command: 
 
-	./jira-bulk-loader.py -U <your_username> -P <your_password> -H jira.your_domain.org -W PRKEY template_file
+	jira-bulk-loader.py -U <your_username> -P <your_password> -H jira.your_domain.org -W PRKEY template_file
 
 two tasks will be created and assigned to *assignee* in the project with a project key *PRKEY*.
 
 
 and the command:
 
-	./jira-bulk-loader.py -U <your_username> -P <your_password> -H jira.your_domain.org -D 2012-09-20 -W PRKEY template_file
+	jira-bulk-loader.py -U <your_username> -P <your_password> -H jira.your_domain.org -D 2012-09-20 -W PRKEY template_file
 
 It will create a task with two subtasks. Moreover it also sets due date 2012-09-18 (YYYY-mm-DD) to 2nd sub-task, and 2012-09-20 to the task and its first sub-task.
 

jirabulkloader/task_extractor.py

             if 'project' in self.default_params:
                 return self.default_params['project']['key']
             else:
-                raise TaskExtractorTemplateErrorProject('Missing project key in line: ' + input_line['summary'])
+                raise TaskExtractorTemplateErrorProject('Missing project key in line: ' + input_line['summary'] \
+                        + '.\nYou should add \'{"project": {"key": "JIRA"}}\' to the template, where "JIRA" must be replaced by your real project key.')
 
     def _validate_user(self, user, project):
         """
                     error_message = "Your username and password are not accepted by Jira."
                     raise TaskExtractorJiraValidationError(error_message)
                 else:
-                    error_message = "The username '%s' and the project '%s' can not be validated.\nJira response: Error %s, %s" % (user, project, e.code, e.read())
+                    error_message = "The username '%s' and the project '%s' can not be validated.\nJira response: Error %s, %s" % (user, project, e.code, full_url) #e.read())
                     raise TaskExtractorJiraValidationError(error_message)
             elif hasattr(e, 'reason'):
                 error_message = "%s: %s" % (e.reason, self.jira_url)