Just to report a bit on how migration is proceeding.

I've got Django version of Pootle running okay, the main working area are POST 
requests, which are currently only implemented for login and registration. 
I18n still doesn't work at this moment.


I'll explain the new files more in detail.

These are new files:
- instance.py 
This file is used to setup global variables instance, potree and users. These 
were previously instantiated by jToolkit server.
- conf.py 
This file serves as a placeholder to be able to first import and then later 
set those global variables. The instance, users and potree are callables, 
that return variables.
- storage_client.py 
All the methods that deal with potree are here. At this moment it's just a 
file which holds most of the methods that were previously part of Pootle's 
page classes.
- web/views.py
This file holds all the functions that generate pages. If you check urls.py, 
you'll see the url patterns that are mapped to functions in this file.
- web/forms.py 
This file holds manipulators, as are form handling objects called in Django.
- pootleauth.py
This file serves as a backed to Django authentication system and includes all 
user handling functions.
- settings.py and localsettings.py
These are Django settings files and contain Django configuration. 


If you would like to try it out, you can check out the django-migration branch 
and take a test drive: 

$ svn co 
https://svn.sourceforge.net/svnroot/translate/src/branches/django-migration 
django-migration
$ cd django-migration
$ export PYTHONPATH=`pwd`
$ cd Pootle
$ ./manage.py runserver

Server must be started in Pootle directory due to a bug where potree location 
is determined with relative path.


Thinking about future, I would like to split Pootle in more standalone 
daemons:
- web interface, Django web application as a web translation interface
- storage, to provide a unified way of accessing translations. Since all the 
requests go through storage daemon, there's no multithreaded environment and 
there's no locking.
- indexing and statistics, a low priority indexing and statistics building 
service 

What do you think about this idea?

cheers,
Gasper Zejn

-------------------------------------------------------------------------
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