Re: Switching the db_table on the fly

2007-03-26 Thread Wolfram Kriesing
On 3/26/07, Jeremy Bowers <[EMAIL PROTECTED]> wrote: > > Wolfram Kriesing wrote: > > The main reason I need this is that I want to have a transparent model > > that switches the underlying language (the according DB table it > > should work on) on the fly, so i can keep hacking away without > > la

Re: Switching the db_table on the fly

2007-03-26 Thread Wolfram Kriesing
On 3/26/07, Honza Král <[EMAIL PROTECTED]> wrote: > On 3/26/07, Wolfram Kriesing <[EMAIL PROTECTED]> wrote: > > > > I would like to change the table of a model on the fly. > > I was looking into the Manager code, but since the get_query_set() > > method in there uses the model as is, changing the >

Re: Edit inline in newforms-admin branch (ATTN: Joseph Kocherans)

2007-03-26 Thread Joseph Kocherhans
On 3/26/07, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > > Hey Adrian. Looking at the newforms-admin branch tonight, I can't seem > to get some things working. Gah. Nevermind. Only the index page is working of AdminSite, and it's root method acts like a view that takes url as a param. Doesn't e

Re: Edit inline in newforms-admin branch (ATTN: Joseph Kocherans)

2007-03-26 Thread Joseph Kocherhans
On 3/25/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > Now that we have 0.96 out the door, I'd love to wrap up the > newforms-admin branch, which is mostly missing edit-inline support but > works well for other cases. > > Joseph Kocherans was working on edit-inline support, but I haven't > see

Re: {% with %} tag

2007-03-26 Thread Malcolm Tredinnick
On Mon, 2007-03-26 at 17:06 -0500, Jacob Kaplan-Moss wrote: > On 3/26/07, SmileyChris <[EMAIL PROTECTED]> wrote: > > Sure: http://code.djangoproject.com/ticket/3826 > > Sweet; thanks. > > I'm gonna wait a couple of days for any objections from Malcom/Adrian, > but unless I hear any I'll add this

Re: Support for a binary storage field?

2007-03-26 Thread Honza Král
On 3/27/07, Marc Fargas Esteve <[EMAIL PROTECTED]> wrote: > Hi, > If you provide a BinaryField it's just a matter of time that "hacks" will > start to go out on blogs, the wiki or even django-users to get ImageField > and FileField on the database (there's a hack on this already), maybe it's > 99%

GSoC application: Comet support

2007-03-26 Thread Emanuele Pucciarelli
Hi everyone! Jacob's reminder on the 23rd made me aware that Django had re-entered the list of mentoring organisations, so I prepared a proposal for an idea I've been entertaining for some time: adding Comet support to the framework, but without killing the servers. :) The full text is at http:/

Re: Support for a binary storage field?

2007-03-26 Thread Marc Fargas Esteve
Hi, If you provide a BinaryField it's just a matter of time that "hacks" will start to go out on blogs, the wiki or even django-users to get ImageField and FileField on the database (there's a hack on this already), maybe it's 99% bad but if those fields are provided inside django it will be much b

Re: django documentation - editing

2007-03-26 Thread Marc Fargas Esteve
Uhm.. when did comments disappear? They're nowhere now! It's nicer that way :) Forget my last comment! On 3/27/07, Marc Fargas Esteve <[EMAIL PROTECTED]> wrote: > > w0w, > That's really **cooler** than the previous method. I always wondered how > often were the on-line docs updated, now it only d

Re: django documentation - editing

2007-03-26 Thread Marc Fargas Esteve
w0w, That's really **cooler** than the previous method. I always wondered how often were the on-line docs updated, now it only depends on the cache :) One thing that is not managed on TRAC are comments on documentation, they are supposed to get "cleaned" when they get incorporated onto the docs, b

Re: {% with %} tag

2007-03-26 Thread Jacob Kaplan-Moss
On 3/26/07, SmileyChris <[EMAIL PROTECTED]> wrote: > Sure: http://code.djangoproject.com/ticket/3826 Sweet; thanks. I'm gonna wait a couple of days for any objections from Malcom/Adrian, but unless I hear any I'll add this shortly. Jacob --~--~-~--~~~---~--~~ Yo

Re: {% with %} tag

2007-03-26 Thread SmileyChris
On Mar 27, 3:07 am, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > Chris: can you work up a patch in case we decide to check this in? Sure: http://code.djangoproject.com/ticket/3826 --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: search-api Pylucene Kill processus.

2007-03-26 Thread Norjee
I'm afraid your solution only works when using the development server, and even then when used in auto_reload mode. I think the easiest solution is to simply execute the functions interfacing with pylucene in their own thread. something like: def search(query): - delegate work to new pylucene thr

Re: Switching the db_table on the fly

2007-03-26 Thread Jeremy Bowers
Wolfram Kriesing wrote: > The main reason I need this is that I want to have a transparent model > that switches the underlying language (the according DB table it > should work on) on the fly, so i can keep hacking away without > language switching before every access via my model. > Why do yo

Re: Switching the db_table on the fly

2007-03-26 Thread Honza Král
On 3/26/07, Wolfram Kriesing <[EMAIL PROTECTED]> wrote: > > I would like to change the table of a model on the fly. > I was looking into the Manager code, but since the get_query_set() > method in there uses the model as is, changing the > model._meta.db_table would most probably change the db_tabl

Switching the db_table on the fly

2007-03-26 Thread Wolfram Kriesing
I would like to change the table of a model on the fly. I was looking into the Manager code, but since the get_query_set() method in there uses the model as is, changing the model._meta.db_table would most probably change the db_table for all users/threads, not only for the current one, right? An

Re: Support for a binary storage field?

2007-03-26 Thread Todd O'Bryan
On Mon, 2007-03-26 at 10:03 -0500, Jacob Kaplan-Moss wrote: > -1 on allowing File/ImageField to be stored in the database. That's > bad design 99% of the time, and will needlessly complicate file upload > code. > If people want to do it themselves, it's pretty easy to create a DBFile model with n

Re: Edit inline in newforms-admin branch (ATTN: Joseph Kocherans)

2007-03-26 Thread Joseph Kocherhans
On 3/25/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > Now that we have 0.96 out the door, I'd love to wrap up the > newforms-admin branch, which is mostly missing edit-inline support but > works well for other cases. > > Joseph Kocherans was working on edit-inline support, but I haven't > see

Re: django documentation - editing

2007-03-26 Thread Jacob Kaplan-Moss
On 3/25/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > As James mentioned (indirectly), it's all under django/docs.txt -- we > basically just run rst2html.py over the results before it is displayed > on the website. [Actually, it's a bit cooler now: the doc views now pull the reST source dir

Re: {% with %} tag

2007-03-26 Thread Jacob Kaplan-Moss
On 3/26/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > However, on a related > topic, it's easy when writing things like object.person.count to create > repetitive queries (there's no reuse of that queryset if you type the > same thing later). So I was thinking in idle moments today about how

Re: Support for a binary storage field?

2007-03-26 Thread Jacob Kaplan-Moss
On 3/26/07, Simon G. <[EMAIL PROTECTED]> wrote: > So - if we do want a BinaryField we could use #2417 and make it > suitable for larger binary stores (e.g. the VARBINARY used for MySQL > has a max length of 255 bytes - perfect for the small bin. chunks > wanted in #2417, but not for larger data),

Re: Support for a binary storage field?

2007-03-26 Thread mario__
On 26 mar, 10:04, "Noah Slater" <[EMAIL PROTECTED]> wrote: > >it depends the FS you're using. > > To get round this problem I am using NFS. Do you have any other > suggestions? > hum, you could do some test using GFS > Either way, I still think it would be nice to be able to store binary >

Re: Support for a binary storage field?

2007-03-26 Thread Noah Slater
>it depends the FS you're using. To get round this problem I am using NFS. Do you have any other suggestions? Either way, I still think it would be nice to be able to store binary blobs directly via models. --~--~-~--~~~---~--~~ You received this message be

Re: Support for a binary storage field?

2007-03-26 Thread mario__
On 26 mar, 07:14, "Noah Slater" <[EMAIL PROTECTED]> wrote: > Saving binary data as printable ASCII seems extremely hack^H^H^H > suboptimal to me. > You can have a TextField and save data as base64 or save data as binary. In postgres binary data is not saved inside database, a link is saved only

Re: search-api Pylucene Kill processus.

2007-03-26 Thread xav4django
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Solution found in pylucene-dev : changed django/utils/autoreload.py from: import thread to: import PyLucene.PythonThread as thread Norjee a écrit : > Pylucene has some threading issues (read incompatibilities with python > threads, it must be run

Re: search-api Pylucene Kill processus.

2007-03-26 Thread xav4django
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thx :) Norjee a écrit : > Pylucene has some threading issues (read incompatibilities with python > threads, it must be run from either the main thread, or its own thread > version). > > The solution is rather simple, use it in its own separte thread

Re: search-api Pylucene Kill processus.

2007-03-26 Thread Norjee
Pylucene has some threading issues (read incompatibilities with python threads, it must be run from either the main thread, or its own thread version). The solution is rather simple, use it in its own separte thread. See for example turbolucene, http://dev.krys.ca/turbolucene/ --~--~-~-

search-api Pylucene Kill processus.

2007-03-26 Thread xav4django
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. My probleme with search-api and lucene : I make index and search with a script python test.py. python manage.py shell < test.py It's ok, and give me results. But when I use this. python manage.py runserver 8080 --verbosity=2 and add the first l

Re: [Changeset] r4828 - django/trunk/django/conf/locale/de/LC_MESSAGES

2007-03-26 Thread Nicola Larosa
[Cc: to Django-IT and Django-I18N] Malcolm Tredinnick wrote: > One thing we do have to watch out for as translation activity picks up > is that we currently have no language coordinators/maintainers. This > could potentially lead to translation "battles" with some phrases > changing back and fort

Re: Support for a binary storage field?

2007-03-26 Thread Noah Slater
Saving binary data as printable ASCII seems extremely hack^H^H^H suboptimal to me. To make a case for binary data - how about when you want to store a small image for a UserProfile. Saving to the local file-system doesn't work when you are clustering your application servers. --~--~-~-

Re: Support for a binary storage field?

2007-03-26 Thread David Danier
I think a BinaryField could even help getting less data saved into the database, as some binary data fits well into the database, but must be saved as ASCII now (converted or by using a different format). For example the full-history-branch uses pickle (cPickle) to serialize the data of an object

Re: Support for a binary storage field?

2007-03-26 Thread Noah Slater
Whether you think RDMSSes are for binary data is mostly by the by. IMO the patch for #2417 is sub-optimal as it: 1) Subclasses the Char field. 2) Does not provide an intelligent manipulator. The solution to this problem is to provide a form upload field with the addition of a checkbox to sign

Support for a binary storage field?

2007-03-26 Thread Simon G.
Hi folks. Digging through the tickets, it appears we have a few near-duplicates requesting some form of binary storage inside the database. Whilst I'm -0 (RDBMSes are not for binary data!), but I can see the use for them in some circumstances (#2417 lists a few), and these are likely to be a fair

Re: {% with %} tag

2007-03-26 Thread Malcolm Tredinnick
On Mon, 2007-03-26 at 11:17 +0200, Arvin Schnell wrote: > On Sat, Mar 24, 2007 at 06:42:08AM -, SmileyChris wrote: > > > > For a while I've been thinking that it would be nice to have a tag so > > you could re-use an expression in a template. > > I did one up and put it on http://www.djangosn

Re: {% with %} tag

2007-03-26 Thread Arvin Schnell
On Sat, Mar 24, 2007 at 06:42:08AM -, SmileyChris wrote: > > For a while I've been thinking that it would be nice to have a tag so > you could re-use an expression in a template. > I did one up and put it on http://www.djangosnippets.org/snippets/132/ > > Is this useful enough for core? I w

Re: SuSE rpm for Django-0.96

2007-03-26 Thread Arvin Schnell
On Sun, Mar 25, 2007 at 02:02:41PM +0200, Lars Stavholm wrote: > > Hi List, > > Following the advice at > > we've decided to announce here that we've packaged latest > django as an rpm for SuSE-10.2 (should work on other rpm > based dist