Re: Schema Evolution branch?

2007-01-08 Thread Jacob Kaplan-Moss
On 1/8/07 7:52 PM, Victor Ng wrote: I've already emailed Jacob last week to open the branch for me. Crap -- I must have missed that email. I'll get something set up first thing tomorrow morning (my wife's telling me to close the damned laptop and go to bed...); please feel free to poke me a

Re: Newforms and hidden fields

2007-01-08 Thread Adrian Holovaty
On 1/6/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: On 1/6/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > # Unbound form with dynamic initial data > f = MyForm(initial={'foo': 'initial value'}) > > # Bound form with dynamic initial data > f = MyForm({'foo': 'bar'}, initia

Site-wide variables that vary depending on request.is_secure()

2007-01-08 Thread Jon Colverson
Hello all. I'm planning to host my Django app with SSL optional, so that the same content can be accessed via http or https addresses. I'm hosting my static content on a different sub-domain, so I have to use absolute addresses in my img/link tags. I was looking for a solution to the problem

Re: newforms widget idea

2007-01-08 Thread Adrian Holovaty
On 1/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I made 2 new widgets, selectgrouped and selectmultiplegrouped, which would resolve such an issue. The optgroup is inserted into choices like a normal option: choices= ( ['__group__', 'label for group'], ['value1', 'label1']) I added a si

Re: newforms: Choices don't accept unicode values

2007-01-08 Thread Adrian Holovaty
On 1/7/07, jfroehlich <[EMAIL PROTECTED]> wrote: Hi, not sure but i think there is a bug in a fields choices with python 2.3 When i do something like http://dpaste.com/hold/4454/ i get an UnicodeDecodeError when rendering the form to html. A friend of mine tested it with python 2.4 without a pr

Re: Schema Evolution branch?

2007-01-08 Thread Russell Keith-Magee
On 1/9/07, Victor Ng <[EMAIL PROTECTED]> wrote: I've already emailed Jacob last week to open the branch for me. Ok. As it turns out - I've got *lots* of spare programming cycles since I'm stuck in an entirely unholy quagmire of bureaucratic sludge right now. :) Delicious :-). In the mea

Re: Schema Evolution branch?

2007-01-08 Thread Victor Ng
I've already emailed Jacob last week to open the branch for me. As it turns out - I've got *lots* of spare programming cycles since I'm stuck in an entirely unholy quagmire of bureaucratic sludge right now. :) Mmm. bureaucratic sludge. vic On 1/8/07, Russell Keith-Magee <[EMAIL PROTE

Re: Schema Evolution branch?

2007-01-08 Thread Russell Keith-Magee
On 1/9/07, inflector <[EMAIL PROTECTED]> wrote: That whole discussion seems like it should have taken place here to me but I'm a noob so perhaps I've missed the disctinction between users and developers. There is no formal distinction - users are the set of people interested in using Django t

Re: Have a look at django.newforms

2007-01-08 Thread Benjamin Slavin
Adrian, I think rassilon is talking about something like "help_text". I've seen this discussed before... both here and on django-users. As a result, I've created a patch that has been posted to trac. [1] -Ben [1] http://code.djangoproject.com/ticket/3255 On 1/8/07, Adrian Holovaty <[EMAI

Re: Schema Evolution branch?

2007-01-08 Thread inflector
That whole discussion seems like it should have taken place here to me but I'm a noob so perhaps I've missed the disctinction between users and developers. Any idea what the status is on the potential for a branch, or for Victor's changes getting rolled into the schema evolution branch? I've vol

Re: Search API branch status?

2007-01-08 Thread Joseph Heck
I've been working on enabling search on a django application, and we found an interesting problem in having two head-end machines serving our content. That was basically - how do we keep the indices up to date and intact for the relevant data? (We wanted the search pieces *immediately* available u

Re: New newforms code

2007-01-08 Thread Adrian Holovaty
On 1/8/07, Rob Hudson <[EMAIL PROTECTED]> wrote: > I just wanted to say that this is the reason I'm reluctant to use > Django's forms (new or old) no matter how stable it is. I like that > any major chunk of HTML code is visible for tinkering in my template > files. Maybe a template solution w

Re: Have a look at django.newforms

2007-01-08 Thread Adrian Holovaty
On 1/8/07, rassilon <[EMAIL PROTECTED]> wrote: One issue i have with new forms is that there is no detail/description space for the forms, it would be really useful, since at the moment, rather than being able to use the automatic generation methods, i have to write custom templates for each for

Re: test suite fails in release 4293

2007-01-08 Thread Michael Radziej
Hi Waylan, thanks for your information. I currently follow newforms only very loose. I've created a patch in ticket 3252. Michael -- noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg - Tel +49-911-9352-0 - Fax +49-911-9352-100 http://www.noris.de - The IT-Outsourcing Company -

Re: test suite fails in release 4293

2007-01-08 Thread Waylan Limberg
On 1/8/07, Waylan Limberg <[EMAIL PROTECTED]> wrote: As of changeset 4284 [1], the behavior of clean_data was altered. It looks like the tests in tests/modeltests/model_forms/models.py were not updated to reflect that change. Specifically, I see no calls to is_valid() which would explain the ab

Re: New newforms code

2007-01-08 Thread Rob Hudson
I just wanted to say that this is the reason I'm reluctant to use Django's forms (new or old) no matter how stable it is. I like that any major chunk of HTML code is visible for tinkering in my template files. Maybe a template solution would be more work (probably some repetition, I haven't re

Re: test suite fails in release 4293

2007-01-08 Thread Waylan Limberg
On 1/8/07, Michael Radziej <[EMAIL PROTECTED]> wrote: Hi, after I've updated to svn release 4293, django's test suite fails with this message, using mysql 4.1.12 and python 2.4: == FAIL: Doctest: modeltests.model_forms.models

SOLVED: test suite fails in release 4293

2007-01-08 Thread Michael Radziej
Hi, there's something seriously wrong with my machine or the database. It's certainly got nothing to do with any changes, other tests fail seemingly randomly for older versions that I have certainly tested before. Sorry, Michael -- noris network AG - Deutschherrnstraße 15-19 - D-90429 Nür

test suite fails in release 4293

2007-01-08 Thread Michael Radziej
Hi, after I've updated to svn release 4293, django's test suite fails with this message, using mysql 4.1.12 and python 2.4: == FAIL: Doctest: modeltests.model_forms.models.__test__.API_TESTS --

Re: django.contrib.formtools: High-level abstractions of common form tasks

2007-01-08 Thread rassilon
Right, after a bit of black magic, a few false starts and a fair bit of reworking, djmultipartform is actually working as its meant to more than just an abstract concept which i posted last time. * www.halfapenguin.com/djmultipartform-0.1.tar.gz * www.halfapenguin.com/djmultipartform-0.1.zip

Re: django.contrib.formtools: High-level abstractions of common form tasks

2007-01-08 Thread rassilon
Right, after a bit of black magic, a few false starts and a fair bit of reworking, djmultipartform is actually working as its meant to more than just an abstract concept which i posted last time. www.halfapenguin.com/djmultipartform-0.1.tar.gz www.halfapenguin.com/djmultipartform-0.1.zip (in ca

Re: Have a look at django.newforms

2007-01-08 Thread rassilon
One issue i have with new forms is that there is no detail/description space for the forms, it would be really useful, since at the moment, rather than being able to use the automatic generation methods, i have to write custom templates for each form with the labels in (or use an ugly hack to pul