Djapian API

2007-08-18 Thread Rafael \"SDM\" Sierra
Hi all, I wrote a module 3th-part to Django: http://code.google.com/p/djapian/ It's a simple interface between Django and Xapian (a search engine), it's just a fork of search-api (I think it's too slow, and I know that there is another priority) -- Rafael "SDM" S

Re: How to I unsubscribe from this group

2007-08-15 Thread Rafael \"SDM\" Sierra
On 8/15/07, Brad Cathey <[EMAIL PROTECTED]> wrote: > > To unsubscribe from this group, send email to > [EMAIL PROTECTED] -- Rafael "SDM" Sierra http://stiod.com.br/ --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: problems with spawning new subprocesses with development server

2007-05-08 Thread Rafael \&quot;SDM\&quot; Sierra
On 5/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > What about Windows? Linux is for production, but development is on > Windows machines. os.fork is platform independent, so it must work Maybe you'll need to implement SIGCHLD handler to avoid "s" p

Re: Issue with database Postgresql :(

2007-05-08 Thread Rafael \&quot;SDM\&quot; Sierra
> u'caminhão' u'caminh\xe3o' >>> u'caminhão'.encode('utf-8') 'caminh\xc3\xa3o' >>> type(u'caminhão') Django doesn't convert unicode to str objects (yet?), so you must to by your self -- Rafael "SDM"

Re: Creating a decoration for the views

2006-10-23 Thread Rafael SDM Sierra
# Create the decorator def decorador(function):     def new_function(*args, **kwargs):     # Do what need do     return function(*args, **kwargs)     new_function.__doc__ = function.__doc__     new_function.__name__ = function.__name__     return new_function # Then use it @decorador def

Re: "Pool" of "one" connection in Apache

2006-10-18 Thread Rafael SDM Sierra
Archatas]On 10/18/06, Rafael SDM Sierra < [EMAIL PROTECTED]> wrote:> Looking the django.db.backends.postgresql  source code, I saw that Django> connection needs only one connection for all processes, because it uses > cursors to execute sql queries. So, I develop a system that run 100

"Pool" of "one" connection in Apache

2006-10-18 Thread Rafael SDM Sierra
Looking the django.db.backends.postgresql  source code, I saw that Django connection needs only one connection for all processes, because it uses cursors to execute sql queries. So, I develop a system that run 1000+ threads using only one connection by changing the base.py [1]. But, this solution

Re: search engine

2006-10-18 Thread Rafael SDM Sierra
On 10/17/06, canen <[EMAIL PROTECTED]> wrote: http://www.mercurytide.com/knowledge/white-papers/django-full-text-searchis a good article on adding full-text search to django using mysql. A search api branch of django can also be found herehttp://code.djangoproject.com/browser/django/branches/search

Re: email_user with text/html type

2006-10-17 Thread Rafael SDM Sierra
Hi all, thanks for the help, I do like you Guillermo, and I create another function to send the email. ThanksOn 10/13/06, Guillermo Fernandez Castellanos <[EMAIL PROTECTED] > wrote:Hi,This might help you get going (see at the end). I modified a bit the function that sends the mail in Django. It is

Re: anyone see this problem in psycopg2 i m unable to debug this

2006-09-29 Thread Rafael SDM Sierra
Hi anil, with this message we can't see what error is happen, you need say if you create some manual query, or if you edit something...What steps you follow?On 9/29/06, anil <[EMAIL PROTECTED]> wrote: psycopg2.ProgrammingError : current transaction is aborted, commandsignored until end of transacti

Django leaving lots of open connection

2006-09-23 Thread Rafael SDM Sierra
Hi, I'm working with FreeBSD-6.0-RELEASE, Django-0.95, psycopg-1.1.21 and Apache-2.0.58, when I access the admin page, it leave lots of connection opened like say "ps ax":'''25593  p1  S  0:00.02 postmaster: user database 127.0.0.1(58517) idle in transaction (postgres)'''What can I do to avoid

Re: Re: How about search-api?

2006-09-15 Thread Rafael SDM Sierra
Hi, I've finished the "stable" version of xapian backend, look at http://code.djangoproject.com/ticket/2707 for more informationOn 9/13/06, Rafael SDM Sierra <[EMAIL PROTECTED] > wrote:On 9/12/06, Rafael SDM Sierra <[EMAIL PROTECTED]> wrote: On 9/12/06, James Bennet

Re: Re: How about search-api?

2006-09-13 Thread Rafael SDM Sierra
On 9/12/06, Rafael SDM Sierra <[EMAIL PROTECTED]> wrote: On 9/12/06, James Bennett <[EMAIL PROTECTED]> wrote: File a ticket against the search-api branch, and attach your diff :) Done: http://code.djangoproject.com/ticket/2707 Thanks for your help James :D Can I attach how much patch

Re: Re: How about search-api?

2006-09-12 Thread Rafael SDM Sierra
On 9/12/06, James Bennett <[EMAIL PROTECTED]> wrote: File a ticket against the search-api branch, and attach your diff :) Done: http://code.djangoproject.com/ticket/2707 Thanks for your help James :D -- SDM UnderlinuxGarimpar.com--PEP-8"Mais vale um ponteiro na mao do que duas classes voando"CPFL -

Re: How about search-api?

2006-09-12 Thread Rafael SDM Sierra
On 9/12/06, James Bennett <[EMAIL PROTECTED]> wrote: The search-api branch is alive and well, even if there areoccasionally bursts of inactivity on it. Bug reports and suggestionsfor improvements are extremely welcome :) I've finished my very first work (put the xapian backend to work ;), what shou

How about search-api?

2006-09-12 Thread Rafael SDM Sierra
I'm trying the search-api backend [1] but this seems to be "stop", it is true? becouse it is a nice idea and I want to contribuite with the project, I'm using Xapian as backend, and I'll follow "alone" with the project sending any changes to the list of Merquery [2]. I'll use the branch search-api