Re: proposal and patch: original_filename with FileField and ImageField

2006-12-08 Thread tsuyuki makoto
Ok, I just added a ticket(http://code.djangoproject.com/ticket/3119). Forget this patch at this time. Do you have any idea? 2006/12/4, tsuyuki makoto <[EMAIL PROTECTED]>: > Hello django developers. > > Currently, FIleField and ImageField store file-system-safe file name. > Imagine, if user upload

Re: newforms feedback

2006-12-08 Thread Gary Wilson
Adrian Holovaty wrote: > On 12/8/06, Gary Doades <[EMAIL PROTECTED]> wrote: > > Also, how can I pass a validator_list to get similar functionality to > > manipulators? Having the ability to supply a validator_list containing > > a list of small single purpose validators is quite nice. Have I misse

Re: schema-evolution: postgres introspection bug

2006-12-08 Thread mario__
> On 01/11/06, Matthew Flanagan <[EMAIL PROTECTED]> wrote: > > # select pg_constraint.conname, pg_constraint.contype, > pg_attribute.attname from pg_constraint, pg_attribute where > pg_constraint.conrelid=pg_attribute.attrelid and > pg_attribute.attnum=any(pg_constraint.conkey) and > pg_constraint

Re: Django Templates and BOM (byte order marks)

2006-12-08 Thread gabor
Sergey Kirillov wrote: > Greetings, > > While researching strange IE behaviour at some pages of my > Django-powered site I've found that Django does not handle BOM marks > correctly. > > For instance I have following templates (!UTF_8_BOM! = EF BB BF): > > --- base.html > !UTF_8_BOM! Transition

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

2006-12-08 Thread Honza Král
Hi, nice work. I have been trying to come up with a solution of my own, but I ran into some problems/questions: 1) I think it would be better to allow (but not force) users to add actions after every step and a final done() - I have NO idea how to do this, at least no working idea... 2) I don't k

Re: ManyToManyField Join Table Name

2006-12-08 Thread Deryck Hodge
On 12/8/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 12/8/06, Deryck Hodge <[EMAIL PROTECTED]> wrote: > > > > Hi, all. > > > > Regarding the join table that is created on ManyToMany relationships, > > there doesn't seem to be a way to override the name given to the > > table. Am I ov

Re: ManyToManyField Join Table Name

2006-12-08 Thread Russell Keith-Magee
On 12/8/06, Deryck Hodge <[EMAIL PROTECTED]> wrote: > > Hi, all. > > Regarding the join table that is created on ManyToMany relationships, > there doesn't seem to be a way to override the name given to the > table. Am I overlooking this somehow? If not, does anyone else think > a join_table opti

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

2006-12-08 Thread Chad Maine
Here's an example template: {% extends "base.html" %} {% block content %} {% if form.errors %}Please correct the following errors{% else %}{{ form_step_name }}{% endif %} {{ form }} {% if not first %} {% endif %} {% if not last %} {% endif %} {% if last %} {% endif %} {% endb

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

2006-12-08 Thread [EMAIL PROTECTED]
Here's a first attempt. As such, this code does per-page validation only. import cPickle as pickle import base64 from django.core.exceptions import ImproperlyConfigured from django.http import HttpResponse,HttpResponseRedirect from django.shortcuts import render_to_response from django.newforms

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

2006-12-08 Thread Antonio Cavedoni
On 8 Dec 2006, at 19:10, JP wrote: > What I've always done in these cases is carry a MAC along with the > hidden data and just validate that the hidden data hasn't changed by > re-hashing it after each form submit. You don't really need to > re-validate the already-validated data, you just need to

Re: newforms feedback

2006-12-08 Thread Gary Doades
Adrian Holovaty wrote: > Hey Gary, > > Great suggestion! Based on your idea, I've just checked in an extra > hook, Field.widget_attrs(), which lets a Field specify any HTML > attributes to add to its Widget. I've implemented the maxlength > attribute for CharField, so your example can be rewritt

Re: newforms feedback

2006-12-08 Thread Gary Doades
Honza Král wrote: >> Also, how can I pass a validator_list to get similar functionality to >> manipulators? Having the ability to supply a validator_list containing >> a list of small single purpose validators is quite nice. Have I missed >> something? > > you can subclass the Field class and add

Re: newforms feedback

2006-12-08 Thread Adrian Holovaty
On 12/8/06, Gary Doades <[EMAIL PROTECTED]> wrote: > I'm just starting to contsruct a form or two with the newforms package. > It works very nicely. However I have a couple of points so far: > > It would be nice for the CharField field to output a "maxlength" > attribute if the max_length paramete

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

2006-12-08 Thread JP
> > You could probably have a partial validation, per-page, and a complete > > one on the final page, essentially re-validating all the fields. > > HTML-escaping of these hidden fields values would be mandatory in all > > cases anyway. > > Yes, my thoughts exactly. Per-page validation, plus a fina

Re: newforms feedback

2006-12-08 Thread Honza Král
On 12/8/06, Gary Doades <[EMAIL PROTECTED]> wrote: > > I'm just starting to contsruct a form or two with the newforms package. > It works very nicely. However I have a couple of points so far: > > It would be nice for the CharField field to output a "maxlength" > attribute if the max_length paramet

newforms feedback

2006-12-08 Thread Gary Doades
I'm just starting to contsruct a form or two with the newforms package. It works very nicely. However I have a couple of points so far: It would be nice for the CharField field to output a "maxlength" attribute if the max_length parameter is set. Otherwise we have to do this: name = CharField(ma

Re: Django Templates and BOM (byte order marks)

2006-12-08 Thread James Bennett
On 12/8/06, Sergey Kirillov <[EMAIL PROTECTED]> wrote: > For instance I have following templates (!UTF_8_BOM! = EF BB BF): Sort of off-topic, but why are you using a BOM in UTF-8? ;) -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~-~--~--

Django Templates and BOM (byte order marks)

2006-12-08 Thread Sergey Kirillov
Greetings, While researching strange IE behaviour at some pages of my Django-powered site I've found that Django does not handle BOM marks correctly. For instance I have following templates (!UTF_8_BOM! = EF BB BF): --- base.html !UTF_8_BOM!http://www.w3.org/TR/html4/loose.dtd";> blah-blah-blah

ManyToManyField Join Table Name

2006-12-08 Thread Deryck Hodge
Hi, all. Regarding the join table that is created on ManyToMany relationships, there doesn't seem to be a way to override the name given to the table. Am I overlooking this somehow? If not, does anyone else think a join_table option would be as useful as the db_table one? Cheers, deryck -- D

Ticket #914: Admin js option does not honor absolute urls

2006-12-08 Thread Matias Hermarud Fjeld
Hello. I've submitted a patch on ticket #914. The patch changes the behavior of the include_admin_script-templatetag. Should this have a regression test as well? If so, in what file should i put the test? -- Matias Hermanrud Fjeld --~--~-~--~~~---~--~~ You recei

Re: active tickets with patches

2006-12-08 Thread Matias Hermarud Fjeld
Russell Keith-Magee wrote: > On 12/6/06, Lakin Wecker <[EMAIL PROTECTED]> wrote: >> I am also interested in helping with this situation. I've run into quite a >> few patches that are reportedly working for some people.How do we help >> get these triaged? > > A well triaged patch has the f