On Tue, 2009-02-03 at 13:02 +0700, John Francis Lee wrote:
> Hello,
> 
> I feel like I'm talking to myself on this list... but here I go again.
> 
> I changed the boilerplate on the home page of my Pootle. I can now no 
> longer access the Admin page. It appears that Pootle is choking on some 
> Thai characters I put in the boilerplate. Apparently it parses the 
> homepage when I click Admin page? But I don't remember the name of the 
> file I was instructed to change when I did change the boilerplate, can't 
> find the name in the documentation, and don't seem able to grep a piece 
> of the Pootle-offensive boilerplate from any of the Pootle files I can 
> find in my machine,
> 
> I attach the output of the log spit out just after I click on Admin page.
> 
> Maybe I don't even understand what the log is trying to tell me and am 
> barking up the wrong tree. In that case let me just say that Pootle 
> times out when trying to access the Admin page. My user.pref :
> 
> jfl:
>    activated = 1
>    activationcode = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
>    passwdhash = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
>    rights.siteadmin = True
>    email = u'[email protected]'
>    name = u'John Francis Lee'
>    projects = ''
>    uilanguage = u'en'
>    altsrclanguage = ''
>    languages = u'th'
> 
> Thanks, as always, for all your help.
> 
> plain text document attachment (Pootle-error-log.txt)
> *******
> 2009-02-03 12:10:17: Error converting template: 'ascii' codec can't decode 
> byte 0xe0 in position 477: ordinal not in range(128)
> Error location in template file 
> '/usr/lib/python2.5/site-packages/Pootle/templates/adminindex.html'
> on line 63 between columns 12 and 40:
>             <td colspan="1" rowspan="1"> ...
> Context
> {'aboutlink': u'About this Pootle server',
>  'baseurl': 'http://localhost:8080/',
>  'enablealtsrc': False,
>  'instancetitle': 'Pootle',
>  'links': {'account': u'My account',
>            'activate': u'Activate',
>            'admin': u'Admin',
>            'doc': u'Docs & help',
>            'doclang': u'en',
>            'home': u'Home',
>            'languages': u'All languages',
>            'login': u'Log in',
>            'logout': u'Log out',
>            'projects': u'All projects',
>            'register': u'Register'},
>  'logo_alttext': u'Pootle Logo',
>  'options': [{'name': 'option-homepage',
>               'title': u'Home Page',
>               'value': 'home/'},
>              {'name': 'option-description',
>               'title': u'Description',
>               'value': "<div dir='ltr' lang='en'><p>This is a local 
> installation of Pootle.<br /> The purpose of this installation is to</p> \n  
> <ul>\n  <li>discover the ins and outs of running a Pootle server, and 
> then</li>\n  <li>to introduce the students at CRPAO School to machine aided 
> translation, and then</li>\n  <li>to translate Pootle itself into 
> Thai,</li>\n  <li>followed by the translation of the nltk NLP toolkit,</li>\n 
>  <li>the TCExam server, and then</li>\n  <li>real Thai documents such as 
> \xe0\xb9\x81\xe0\xb8\xa1\xe0\xb8\x87\xe0\xb8\xaa\xe0\xb8\xb5\xe0\xb8\xab\xe0\xb8\xb9\xe0\xb8\xab\xe0\xb9\x89\xe0\xb8\xb2\xe0\xb8\x95\xe0\xb9\x8b\xe0\xb8\xb2<br
>  /> (The Monster with Four Ears and Five Eyes).</li>\n  </ul>\n  <p>The 
> server administrator is John Francis Lee, [email protected].</p></div>"},

Can you try remove this from pootle.prefs and see if that fixes the
problem, then lets work back from there.

>              {'name': 'option-baseurl',
>               'title': u'Base URL',
>               'value': 'http://localhost:8080'},
>              {'name': 'option-title', 'title': u'Title', 'value': 'Pootle'}],
>  'search': None,
>  'session': {'isopen': True,
>              'issiteadmin': True,
>              'status': u'logged in as <b>jfl</b>'},
>  'text': {'currentvalue': u'Current value',
>           'generaloptions': u'General options',
>           'home': u'Home',
>           'languages': u'Languages',
>           'option': u'Option',
>           'projects': u'Projects',
>           'savechanges': u'Save changes',
>           'users': u'Users'},
>  'uidir': 'ltr',
>  'uilanguage': u'en'}
> XML Ancestors:
>   
> Traceback (most recent call last):
>   File "/usr/lib/python2.5/site-packages/Pootle/pootle.py", line 552, in 
> buildpage
>     return t.serialize(output="xhtml")
>   File "/var/lib/python-support/python2.5/kid/__init__.py", line 301, in 
> serialize
>     raise_template_error(module=self.__module__)
>   File "/var/lib/python-support/python2.5/kid/__init__.py", line 299, in 
> serialize
>     return serializer.serialize(self, encoding, fragment, format)
>   File "/var/lib/python-support/python2.5/kid/serialization.py", line 107, in 
> serialize
>     text = ''.join(self.generate(stream, encoding, fragment, format))
>   File "/var/lib/python-support/python2.5/kid/serialization.py", line 342, in 
> generate
>     for ev, item in self.apply_filters(stream, format):
>   File "/var/lib/python-support/python2.5/kid/serialization.py", line 165, in 
> format_stream
>     for ev, item in stream:
>   File "/var/lib/python-support/python2.5/kid/parser.py", line 221, in 
> _coalesce
>     for ev, item in stream:
>   File "/var/lib/python-support/python2.5/kid/serialization.py", line 477, in 
> inject_meta_tags
>     for ev, item in stream:
>   File "/var/lib/python-support/python2.5/kid/parser.py", line 179, in _track
>     for p in stream:
>   File "/var/lib/python-support/python2.5/kid/filter.py", line 26, in 
> apply_matches
>     for ev, item in stream:
>   File "/var/lib/python-support/python2.5/kid/parser.py", line 179, in _track
>     for p in stream:
>   File "/var/lib/python-support/python2.5/kid/parser.py", line 221, in 
> _coalesce
>     for ev, item in stream:
>   File "/usr/lib/python2.5/site-packages/Pootle/templates/adminindex.py", 
> line 261, in _pull
>   File "/var/lib/python-support/python2.5/kid/template_util.py", line 146, in 
> make_attrib
>     v = generate_attrib(v, encoding)
>   File "/var/lib/python-support/python2.5/kid/template_util.py", line 178, in 
> generate_attrib
>     item = generate_attrib(item, encoding)
>   File "/var/lib/python-support/python2.5/kid/template_util.py", line 161, in 
> generate_attrib
>     return to_unicode(attrib, encoding)
>   File "/var/lib/python-support/python2.5/kid/parser.py", line 206, in 
> to_unicode
>     return unicode(value, encoding)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 477: 
> ordinal not in range(128)
> Error location in template file 
> '/usr/lib/python2.5/site-packages/Pootle/templates/adminindex.html'
> on line 63 between columns 12 and 40:
>             <td colspan="1" rowspan="1"> ...
> 
> 
> 2009-02-03 12:10:17: Error handling request from ('127.0.0.1', 44938): 
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 477: 
> ordinal not in range(128)
> Error location in template file 
> '/usr/lib/python2.5/site-packages/Pootle/templates/adminindex.html'
> on line 63 between columns 12 and 40:
>             <td colspan="1" rowspan="1"> ...
> 
> 2009-02-03 12:10:17: Traceback follows:
> Traceback (most recent call last):
>   File "/usr/lib/python2.5/SocketServer.py", line 222, in handle_request
>     self.process_request(request, client_address)
>   File "/usr/lib/python2.5/SocketServer.py", line 241, in process_request
>     self.finish_request(request, client_address)
>   File "/usr/lib/python2.5/SocketServer.py", line 254, in finish_request
>     self.RequestHandlerClass(request, client_address, self)
>   File "/var/lib/python-support/python2.5/jToolkit/web/simplewebserver.py", 
> line 73, in __init__
>     BaseHTTPServer.BaseHTTPRequestHandler.__init__(self, request, 
> client_address, server)
>   File "/usr/lib/python2.5/SocketServer.py", line 522, in __init__
>     self.handle()
>   File "/usr/lib/python2.5/BaseHTTPServer.py", line 316, in handle
>     self.handle_one_request()
>   File "/usr/lib/python2.5/BaseHTTPServer.py", line 310, in handle_one_request
>     method()
>   File "/var/lib/python-support/python2.5/jToolkit/web/simplewebserver.py", 
> line 241, in do_GET
>     self.serve_request(path, argdict)
>   File "/var/lib/python-support/python2.5/jToolkit/web/simplewebserver.py", 
> line 194, in serve_request
>     self.sendpage(thepage)
>   File "/var/lib/python-support/python2.5/jToolkit/web/simplewebserver.py", 
> line 222, in sendpage
>     response = self.server.sendpage(self, thepage)
>   File "/var/lib/python-support/python2.5/jToolkit/web/simplewebserver.py", 
> line 441, in sendpage
>     return self.jtoolkitserver.sendpage(req, thepage)
>   File "/usr/lib/python2.5/site-packages/Pootle/pootle.py", line 583, in 
> sendpage
>     pagestring = self.buildpage(os.path.join(self.templatedir, 
> thepage.templatename + ".html"), thepage.templatevars, loadurl, 
> req.session.localize)
>   File "/usr/lib/python2.5/site-packages/Pootle/pootle.py", line 552, in 
> buildpage
>     return t.serialize(output="xhtml")
>   File "/var/lib/python-support/python2.5/kid/__init__.py", line 301, in 
> serialize
>     raise_template_error(module=self.__module__)
>   File "/var/lib/python-support/python2.5/kid/__init__.py", line 299, in 
> serialize
>     return serializer.serialize(self, encoding, fragment, format)
>   File "/var/lib/python-support/python2.5/kid/serialization.py", line 107, in 
> serialize
>     text = ''.join(self.generate(stream, encoding, fragment, format))
>   File "/var/lib/python-support/python2.5/kid/serialization.py", line 342, in 
> generate
>     for ev, item in self.apply_filters(stream, format):
>   File "/var/lib/python-support/python2.5/kid/serialization.py", line 165, in 
> format_stream
>     for ev, item in stream:
>   File "/var/lib/python-support/python2.5/kid/parser.py", line 221, in 
> _coalesce
>     for ev, item in stream:
>   File "/var/lib/python-support/python2.5/kid/serialization.py", line 477, in 
> inject_meta_tags
>     for ev, item in stream:
>   File "/var/lib/python-support/python2.5/kid/parser.py", line 179, in _track
>     for p in stream:
>   File "/var/lib/python-support/python2.5/kid/filter.py", line 26, in 
> apply_matches
>     for ev, item in stream:
>   File "/var/lib/python-support/python2.5/kid/parser.py", line 179, in _track
>     for p in stream:
>   File "/var/lib/python-support/python2.5/kid/parser.py", line 221, in 
> _coalesce
>     for ev, item in stream:
>   File "/usr/lib/python2.5/site-packages/Pootle/templates/adminindex.py", 
> line 261, in _pull
>   File "/var/lib/python-support/python2.5/kid/template_util.py", line 146, in 
> make_attrib
>     v = generate_attrib(v, encoding)
>   File "/var/lib/python-support/python2.5/kid/template_util.py", line 178, in 
> generate_attrib
>     item = generate_attrib(item, encoding)
>   File "/var/lib/python-support/python2.5/kid/template_util.py", line 161, in 
> generate_attrib
>     return to_unicode(attrib, encoding)
>   File "/var/lib/python-support/python2.5/kid/parser.py", line 206, in 
> to_unicode
>     return unicode(value, encoding)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 477: 
> ordinal not in range(128)
> Error location in template file 
> '/usr/lib/python2.5/site-packages/Pootle/templates/adminindex.html'
> on line 63 between columns 12 and 40:
>             <td colspan="1" rowspan="1"> ...
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________ Translate-pootle mailing list 
> [email protected] 
> https://lists.sourceforge.net/lists/listinfo/translate-pootle
-- 
Dwayne Bailey
Associate                                      +27 12 460 1095 (w)
Translate.org.za                               +27 83 443 7114 (c)

Recent blog posts:
* Localisation Information Language - preventing mistakes and increasing the 
richness of localisation
http://www.translate.org.za/blogs/dwayne/en/content/localisation-information-language-preventing-mistakes-and-increasing-richness-localisation
* xclip - where have you been all of my life!
* Virtaal on Fedora

Stop Digital Apartheid! - http://www.digitalapartheid.com
Firefox web browser in Afrikaans - http://af.www.mozilla.com/af/
African Network for Localisation (ANLoc) - http://africanlocalisation.net/



------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle

Reply via email to