Bug 706801

Summary: Python-client: Default directory of --srcfile should be current directory ('.').
Product: [Retired] Zanata Reporter: Ding-Yi Chen <dchen>
Component: Component-PythonClientAssignee: zanata-dev-internal <zanata-dev-internal>
Status: CLOSED CURRENTRELEASE QA Contact: Ding-Yi Chen <dchen>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.3CC: jni, zanata-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-28 07:25:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ding-Yi Chen 2011-05-23 04:25:57 UTC
Description of problem:
Usually, if a filename does not specify the directory, current directory is used.

However, if we specify "--srcfile messages.po", 
an error message shows:

error: File messages.po not found

even messages.po is in current directory.


Version-Release number of selected component (if applicable):
zanata-python-client-1.2.3-1


How reproducible:
Always


Steps to Reproduce:
1. svn checkout http://galaxium.googlecode.com/svn/trunk/po galaxium-read-only
2. cd galaxium-read-only
3. Log in zanata server
4. Create a project "galaxium-read-only"
5. Create a version "trunk"
6. Download zanata.xml
7. zanata po push --url=<server> --srcfile messages.po
  
Actual results:
error: File messages.po not found

Expected results:
messages.po in current directory is used.


Additional info:

Comment 1 James Ni 2011-05-25 08:28:00 UTC
Hi Dean,

I have modify the source code to fix this issue, the changes is in commit
931bb6ed in devel branch of zanataclient. (I forget to add
the bug number to commit comment, sorry for that!)

Best Regards

Comment 2 Ding-Yi Chen 2011-05-26 03:28:46 UTC
VERIFIED with commit 931bb6ed454d207a93e88b4a0e19713671741510