-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 2013-06-04 06:57, Edwin Boersma wrote:
> Hej Martin!
> 
> I had the exact same problem when I upgraded to 2.5.0 last week
> and managed to solve it. I'm on Debian squeeze, so it uses python
> 2.6. The installation is in /var/www/pootle.

THANK YOU!
It solved my troubles.


> ALLDIRS = [ '/var/www/pootle/env/lib/python2.6/site-packages', 
> '/var/www/pootle/env/lib/python2.6/site-packages/pootle/apps' ]
> 
> # Add each new site-packages directory. for directory in ALLDIRS: 
> site.addsitedir(directory)

This is the part that was missing.

Also a comment.

> # Remember original sys.path. prev_sys_path = list(sys.path)
> 
> 
> # Reorder sys.path so new directories at the front. new_sys_path =
> []
> 
> for item in list(sys.path): if item not in prev_sys_path: 
> new_sys_path.append(item) sys.path.remove(item)
> 
> sys.path[:0] = new_sys_path

This snippet here. I don't think it does what you state in the
comments there.

1. You save the current sys.path as a list into prev_sys_path
2. You loop the sys.path list.
3. You check if the current item fetched from the list is already in
the copy of the same list as you loop from.
4. if so you add it to a new variable.
5. and then remove it from the old.

I have a hard time seeing how point 4 and 5 can ever become true. And
my server works fine without that code.

- -- 
brother
http://sis.bthstudent.se
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJRrvH1AAoJEJbdSEaj0jV7CJAH/A/URXrdo9jP86HvHeeXEs6Y
gFdmYipGP7PEV+zvbHoYp2B1xhz8QNxx5FViw/0oQuVldnvDMtELrHmZbCiRiCGQ
mI16rEzbF0jlzPASlJ5qxc6ZOVRaI5XQHYNglabjsW6Fhe4EcI0NUczeheAgUlfl
d1NynlvaGWnndZsxz4PtUHtnuO5hJyb6Gb9b9yJ4Aen93VFUjBbLp5JLG0Oxces/
+YZz8RFqHNLeG6KogzVGiH7g6JqDc2ZE8fdhwpohv7uI2YGpXfBD9uT1607WX/3c
1o9fpNDW0LQ+bXrAQXt6R58GGlpeMGKMKDTrmLPA60jfDrkGYZ2CxJKOe05sfCU=
=hz8m
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle

Reply via email to