[zanata-bugs] [Bug 696437] New: Python client: --dstdir of po pull does not work for po pull.

bugzilla at redhat.com bugzilla at redhat.com
Thu Apr 14 04:35:42 UTC 2011


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: Python client: --dstdir of po pull does not work for po pull.

https://bugzilla.redhat.com/show_bug.cgi?id=696437

           Summary: Python client: --dstdir of po pull does not work for
                    po pull.
           Product: Zanata
           Version: 1.3-alpha-1
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: unspecified
          Priority: unspecified
         Component: Component-PythonClient
        AssignedTo: zanata-dev-internal at redhat.com
        ReportedBy: dchen at redhat.com
         QAContact: dchen at redhat.com
                CC: zanata-bugs at redhat.com, zanata-dev-internal at redhat.com
   Estimated Hours: 0.0
    Classification: Other
      Story Points: ---


Description of problem:
Without '--dstdir', "zanata po pull" works well.
However, when given zanata po pull --dstdir=/tmp 
it throws error messages.

Version-Release number of selected component (if applicable):
zanata-python-client-1.2.2
Server: 1.2 (20110307-0010)

How reproducible:
Always

Steps to Reproduce:
1. Assume zanata.ini zanata.xml are properly configured.
2. zanata po pull --dstdir=/tmp --url=<serverUrl>
3.

Actual results:
Traceback (most recent call last):
  File "/tmp/zanata-python-client/zanata", line 26, in <module>
    client.run()
  File "/tmp/zanata-python-client/zanataclient/zanata.py", line 1436, in run
    self._pull_pofile(command_args)
  File "/tmp/zanata-python-client/zanataclient/zanata.py", line 850, in
_pull_pofile
    pofile = os.path.join(outpath, item+'.po')
UnboundLocalError: local variable 'outpath' referenced before assignment

Expected results:
Po files are pulled to /tmp

Additional info:

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the zanata-bugs mailing list