Bug 706801 - Python-client: Default directory of --srcfile should be current directory ('.').
Summary: Python-client: Default directory of --srcfile should be current directory ('.').
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Zanata
Classification: Retired
Component: Component-PythonClient
Version: 1.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: zanata-dev-internal
QA Contact: Ding-Yi Chen
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-23 04:25 UTC by Ding-Yi Chen
Modified: 2011-10-28 07:25 UTC (History)
2 users (show)

Fixed In Version:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-10-28 07:25:19 UTC
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.