Gintautas Miliauskas wrote:
> Hello,
>
>   
>> I am probably missing something, but I really can't get 0.10rc2 to
>> work on my machine. Everything seems to be fine until I hit
>> "Translate All" or "Quick Translate". I can't get to the editor at
>> all, it is just stuck.
>>
>> I have been told it is probably a kid error. I tried reinstalling 
>> everything but still no success.
>>
>> One thing: I am on Ubuntu, so I used Debian packages for Kid (v 0.8)
>> and Elementtree (python 2.4-elementtree 1.2.6-4ubuntu3), but I had to
>> use tarballs for Pootle and Translate Toolkit (the debian packages
>> are not ready yet, as far as I know). I don't know if this has got
>> anything to do with anything (i.e. maybe I need later versions of kid
>> or elementtree?).
>>
>> The traceback of the error is
>>
>> 2006-08-12 11:45:38: Error handling request from ('127.0.0.1',
>> 60794): NameError : name 'defined' is not defined
>>     
>
> I had the same problem and just assumed that something was wrong just
> my machine.  Rather than meddle with kid, I just commented out the
> offending section (see attached patch).  That worked for me, but YMMV.
>
>   
> ------------------------------------------------------------------------
>
> diff -u -r1.27 translatepage.html
> --- Pootle/templates/translatepage.html 28 Jun 2006 15:18:01 -0000      1.27
> +++ Pootle/templates/translatepage.html 12 Aug 2006 12:41:24 -0000
> @@ -216,6 +216,7 @@
>        <input type="hidden" name="pofilename" value="${pofilename}" />
>      </form>
>
> +    <!--
>      <div py:if="defined('assigns')" class="sidetitle" 
> py:content="assigns.title">Assign Strings</div>
>      <form py:if="defined('assigns')" action="?index=1" name="assignform">
>        <select name="assignto" title="${assigns.user_title}">
> @@ -228,6 +229,7 @@
>      <div class="side" py:if="defined('checking_text')" 
> py:content="checking_text">
>        checking has-suggestion, etc
>      </div>
> +    -->
>    </div>
>  </body>
>  </html>
This is because defined is only available in kid 0.9 ... 
http://www.kid-templating.org/notes.html#convenience-functions

David


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle

Reply via email to