Re: Adding new language for i18n

2008-04-15 Thread meledictas
I did wrong about po file path. I'm trying to copy a working language and edit po file and re-compile. For now, still cannot see the sign. Thank for your comment, anyway. On Apr 15, 9:35 pm, "Ramiro Morales" <[EMAIL PROTECTED]> wrote: > On Tue, Apr 15, 2008 at 10:04 AM, <[EMAIL PROTECTED]> w

Adding new language for i18n

2008-04-15 Thread meledictas
Hi I try to add translation for Thai language. I did following, 1. My environment is Window so I use Window version of xgettext, see http://gnuwin32.sourceforge.net/packages/gettext.htm 2. Under my application path, I created directory conf/locale. 3. Executed make-messages.py -l th. 4. I can se

Multi user application using admin and generic views

2008-04-07 Thread meledictas
Hi, I 'm developing a web application for multi-user. Because of power of admin interface and generic views, I 'd like to use them as much as possible. For multiple user application, specific views seem to be need, especially permission checking. Are there any example application about this? Any

Unit tesing with XML-RPC server

2007-11-29 Thread meledictas
Anybody have experience running unit testing against mock xml-rpc server? What is posible solution?. Creating mock of XML-RPC server and redirect all XML-RPC request from application to a mock server is initial idea. Any idea or example will be my appliciate. Thanks --~--~-~--~~-

Unit tesing with XML-RPC server

2007-11-29 Thread meledictas
Anybody have experience running unit testing against mock xml-rpc server? What is posible solution?. Creating mock of XML-RPC server and redirect all XML-RPC request from application to a mock server is initial idea. Any idea or example will be my appliciate. Thanks --~--~-~--~~-

Re: upload progress bar (ticket #4165)

2007-07-23 Thread meledictas
1. Check if your upload temp dir is contain file with 32 length random character is created. 2. If not, check you javascript that summit upload form, it should have 32 random character as a query string. 3. For firefox, use filebug extension to see if there are polling for upload status, it occur

Terminate HTTP connection

2007-07-20 Thread meledictas
Hi, Can I terminate a connect without receiving all HTTP request package? I have to check if there are some important data, if not, just terminate it. Thank --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Running fast cgi server

2007-07-06 Thread meledictas
Hi, Instead of using "python manage.py " to start fast cgi server. How to start a server using a single python script. Thank Chatchai --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

XML serializer

2007-06-21 Thread meledictas
Hi, Since serializer has query set as parameter. If data is not query from database, How to construct data structure (query set) and pass to serializer ? Thank Chatchai --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: Maintain data over request/response in memory

2007-06-20 Thread meledictas
Malcolm I see this is a bug in old django version. Now I patched my django and ploblem was solved. Thank Chatchai On Jun 21, 6:52 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Wed, 2007-06-20 at 02:37 -0700, [EMAIL PROTECTED] wrote: > > I try to use local memory cache to cache coun

Re: Maintain data over request/response in memory

2007-06-20 Thread meledictas
I try to use local memory cache to cache counter variable. When I try to get my variable from cache, I got Traceback (most recent call last): File "C:\Python24\Lib\site-packages\django\core\servers \basehttp.py", line 272, in run self.result = application(self.environ, self.start_response

Re: Maintain data over request/response in memory

2007-06-20 Thread meledictas
Well, I 'm implementing a performance counter. This counter will be updated everytime someone view our web page. So, I don't want to rely on another external system such as database. I just want to provide counter to some external monitoring programs. I On Jun 20, 2:36 pm, "James Bennett" <[EMAI

Maintain data over request/response in memory

2007-06-20 Thread meledictas
Hi, Are there any method to maintain data in memory? Since a resquest/response is stateless. For example, once start a server, each request (view) update data that can be accessed from other views (in same project) function. One way I can think is, create a service to allow any vie

Re: %09 in textarea

2007-05-25 Thread meledictas
On May 25, 2:56 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-05-25 at 07:47 +, [EMAIL PROTECTED] wrote: > > Hi, > > > If I have text area like this, > rows="5"> and I load a template using render_to_response. > > When I load a page and click on text area, A cusor will mo

%09 in textarea

2007-05-25 Thread meledictas
Hi, If I have text area like this, and I load a template using render_to_response. When I load a page and click on text area, A cusor will move to some where else instead of at begin of text box. I check a text using javascript (escape/unescape) and found that %09 was added. Is I did something

Right place to put content-length handler

2007-04-30 Thread meledictas
Hi I need to do something with file upload request body that has size greater than limit. I would like to handler it quick as possible (base HTTP handler) with simplicity in mind (middleware) Any idea is welcomed chatchai --~--~-~--~~~---~--~~ You received

Custom django importing

2007-04-27 Thread meledictas
Hi I 'm in situation that I have a django directory and every time I start django, it will use a site-packages version. The problem is, I need to use a patched version of django that locate at my directory. The question is, How to use local django instead of a version at site- package Thank -

XML-RPC call for django unit testing

2007-03-29 Thread meledictas
Hi I 'm trying to test django app using built-in django unit testing. Some of it make a call to xml-rpc server using xmlrpclib. Now, I use django testing framework and can run unit testing except that I can't enable in-process xml-rpc server. My idea is, create xml-rpc server mock as a

Re: Settings for unit test

2007-03-28 Thread meledictas
Malcolm Tredinnick wrote: > On Wed, 2007-03-28 at 21:25 -0700, [EMAIL PROTECTED] wrote: > > Hi, > > > > I have question about how to tell django (manage.py test) to > > use sqlite3 to run unit testing even if in real settings set database > > engine to sometinhg. > > Pass in your customi

Settings for unit test

2007-03-28 Thread meledictas
Hi, I have question about how to tell django (manage.py test) to use sqlite3 to run unit testing even if in real settings set database engine to sometinhg. Thank --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

How to use xmlrpclib Server with django unit testing

2007-03-27 Thread meledictas
I have tested using xmlrpclib and got connection refused. Thank --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscrib

Transfer-Encoding: chunked =? Content-Length

2007-03-02 Thread meledictas
Hi all, Don't know this is a right place to ask this question :( I got problem when I used django to serve xml-rpc request. By definetion, The Content-Length of request must be specified and must be correct (http://www.xmlrpc.com/spec). But some client, they siad that Transfer-Encoding: chunked.

django and tramline integration

2007-02-01 Thread meledictas
Hi Someone please help me how to integrate tramline with django. Are there any example for this? Thank --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dja