Re: WTForm should be inbuilt to Django, and make admin & others use it.

2009-03-19 Thread sime
Definite +1. The lack of fieldsets has tripped me up plenty of times. On Mar 19, 10:06 am, Jari Pennanen wrote: > WTForm is simple implementation built on top of existing (new)forms to > help create fieldsets, and by judging django snippets alone one can > see it's a huge hole in Django. Everyon

Re: Mysql query log causing django to lock up

2009-02-25 Thread sime
On Feb 25, 7:24 pm, Nick Craig-Wood wrote: Sounds like your table and/or innodb/mysql install is broken. It's hanging on updating statistics. Try REPAIR TABLE or google for something like "mysql state statistics". --~--~-~--~~~---~--~~ You received this message be

Re: Newforms suggestions - pre_clean? magic cleaned_data? - access to errors?

2007-08-16 Thread sime
> Closures; fantastic. The more I learn about Python the shorter and > shorter my code gets. :-) Nathan, perhaps you can post a short excerpt of your code? Closures are lovely and all, but newforms needs a few minor but important design changes so it doesn't require us to do anything even slight

Re: Newforms suggestions - pre_clean? magic cleaned_data? - access to errors?

2007-08-16 Thread sime
> The solution is that clean_* methods should just be passed the field's > value as an argument. > Even being backwards incompatible, I think it needs to be done. Absolutely, +1 here too. What was the argument against this? --~--~-~--~~~---~--~~ You received this

Re: Newforms suggestions - pre_clean? magic cleaned_data? - access to errors?

2007-08-15 Thread sime
> It is simple, Pythonic and doesn't change core :-) Pythonic sure, but not even close to what I would consider simple. Surely we can find better, simpler, cleaner solutions to these common problems. I'll gather some code so we can all see what a mess these few trivial omissions are making. --~

Re: Newforms suggestions - pre_clean? magic cleaned_data? - access to errors?

2007-08-14 Thread sime
> class MyForm(Form) >field1 = ... >field2 = ... > >def generic_clean(self): > # ... > >clean_field1 = generic_clean >clean_field2 = generic_clean The problem here is generic_clean doesn't know which field it is, an

Re: Regroup tag with intervals

2007-08-14 Thread sime
> I've accomplished the same thing with a template filter called "bunch" > -- it converts a list into a list of tuples that have been bunched. > I'd rather add a "bunch" filter than make this change to the regroup > tag, because this would completely change the meaning of the regroup > tag. Sound

Re: Newforms suggestions - pre_clean? magic cleaned_data? - access to errors?

2007-08-13 Thread sime
Another one -- 6. Maybe allow clean_method=x in field parameters, rather than have to create a custom field or repeat similar clean functions. > 5. (Somewhat pedantic) Rename data[] to raw_data[] and cleaned_data[] > to data[] - Has anyone seen how unnecessarily ugly this can get? Sorry I take

Newforms suggestions - pre_clean? magic cleaned_data? - access to errors?

2007-08-13 Thread sime
Hello all, I have some suggestions for newforms, which I've condensed into point form, excuse me if they seem a little blunt they are just meant to be concise -- 1. Magic cleaned_data - So we can get/set values out of order and before the clean() run, having themselves clean implicitly as requir

Regroup tag with intervals

2007-07-31 Thread sime
Hi all I have a patch to the regroup tag which allows -- Regroup into any number of groups, of set size -- {% regroup list every 4 as grouped %} Regroup into set number of groups, at any size -- {% regroup list into 4 as grouped %} I've found this indispensable in rendering unordered lists wher

Making admin easier to hack!

2007-06-02 Thread sime
Been hacking admin a bit lately and wondering if anyone else thinks the following couple of minor improvements would help. 1. An extra_context on the admin view functions? Allowing you to easily hack not only the template for a particular admin page, but also the view! 2. The template selection

Re: MEDIA_URL template tag/context processor/etc again

2007-05-28 Thread sime
> Unclear opinion > - [EMAIL PROTECTED] I'm a definite +1 on this, whether it's {{ MEDIA_URL }} or {% MEDIA_URL %} I don't mind. Lets not forget though, it's a VERY common case to have more than just MEDIA_URL being needed from settings.py. Obviously not all of it though. I seem to recall Smiley

Re: newforms.clean_data vs. newforms.cleanED_data

2007-05-28 Thread sime
Perhaps even a single page, that lists all backwards-incompatible changes, by their version of introduction to trunk? I've already used newforms in production, so stuff like this is kinda important. --~--~-~--~~~---~--~~ You received this message because you are s

Re: MEDIA_URL template tag/context processor/etc again

2007-05-24 Thread sime
Yes it really does need to be there! Out of the box. It's omission contradicts the whole concept of serving media separately; not to mention being an unnecessary 'what the ?' hurdle for newcomers. --~--~-~--~~~---~--~~ You received this message because you are su

Re: Any developers in Gold Coast Australia?

2007-04-12 Thread sime
Sorry Jacob, new post here -- http://groups.google.com/group/django-users/t/2bcc79251b693a05 On Apr 13, 12:59 pm, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > On 4/12/07, sime <[EMAIL PROTECTED]> wrote: > > > I'm looking for a talented local program

Any developers in Gold Coast Australia?

2007-04-12 Thread sime
I'm looking for a talented local programmer to help with a growing workload, on a regular contract basis. All projects in django :-) Or if you have experience working remotely that could work too. --~--~-~--~~~---~--~~ You received this message because you are su

Re: MEDIA_URL - feedback pls on ticket 1278

2007-02-19 Thread sime
On Feb 20, 11:30 am, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > But I suppose that you are talking about using MEDIA_URL to access CSS > and JS files, right? If yes then it's not what everyone does. Many > people keep CSS and JS under source control in a place that has nothing > to do with a direc

MEDIA_URL - feedback pls on ticket 1278

2007-02-19 Thread sime
Hi all - interested to hear feedback on a minor but I feel important addition to allow MEDIA_URL and other selected constants to be accessible from templates -- http://code.djangoproject.com/ticket/1278#comment:6 Particularly important for new users (like me a couple days back). I was scratching

Re: newforms: proposal ModelForm Baseclass for model related Forms

2007-02-18 Thread sime
Yeah I like the ModelForm class idea better, for sure. Are you coding it or will I? On Feb 13, 3:13 am, "RonnyPfannschmidt" <[EMAIL PROTECTED]> wrote: > that wouldnt remove the strict distinction betwen form_for_model > and form_for_instance (the only difference i see, is that one of them > has

Re: Newforms styling suggestion

2007-02-16 Thread sime
OK here's my new patch, adds a css='bla' option to your field definitions, also class='bla error' when there's an error, and class='bla required' when the field is required (thanks waylan for the idea on those last two points) -- http://code.djangoproject.com/ticket/3515 On Feb 16, 10:12 am, "Bri

Re: Newforms styling suggestion

2007-02-16 Thread sime
Hey Wayne - I just submitted something similar - check it out http://code.djangoproject.com/ticket/3515 On Feb 17, 6:57 am, "waylan" <[EMAIL PROTECTED]> wrote: > FYI: I opened a ticket (#3512) and uploaded three separate patches. > Personally, after working out all three, I think I prefer the thi

Re: Newforms styling suggestion

2007-02-16 Thread sime
On Feb 16, 10:12 am, "Brian Morton" <[EMAIL PROTECTED]> wrote: > I don't know if this has been suggested yet, but has anyone considered an > enhancement to newforms to optionally allow a field to have a different > class if it has an error? It would be helpful for things like making error > field