Re: Continued work on a django.contrib.formtools.wizard replacement

2011-05-11 Thread David Durham
On Mon, Apr 25, 2011 at 11:09 AM, Stephan Jäkel wrote: > Hi everybody, > > I want to continue the discussion on the replacement of > django.contrib.formtools.wizard (previous discussions can be found here: > http://bit.ly/eI5ZT5 and http://bit.ly/gVTRtr). I keep seeing some maintenance type of a

Re: contrib 's FormWizard needs a lot of work

2011-01-06 Thread David Durham
On Thu, Jan 6, 2011 at 4:22 PM, Stephan Jäkel wrote: > Hi David, > > you should take a look at the NamedUrlFormWizard. In this second approach, > after successful posting a form, a redirect is done to get the user to the > next step. Is this the point you meant? > > Using the NamedUrlFormWizard, i

Re: contrib 's FormWizard needs a lot of work

2011-01-06 Thread David Durham
If I'm reading this code correctly: https://github.com/stephrdev/django-formwizard/blob/master/formwizard/forms.py I think this implementation misses the core point I was trying to address with #9200, that you should not have to POST in order to navigate to a step/form in the wizard. My implem

#9200 - working to resolve any issues

2009-11-13 Thread David Durham
I'm back at this one since it apparently is around +0 in the voting, though it still does not have a committer. I've updated the diff to work against trunk, and fixed some documentation errors. However, I'm not able to attach a file to the ticket. I receive this error: 403 Forbidden (TICKET_

Re: 1.1 Sprints and roadmap

2008-12-30 Thread David Durham, Jr.
On Tue, Dec 30, 2008 at 2:41 PM, alex.gay...@gmail.com wrote: > > For any sprint occurring before the 11th I could help arrange > something in Chicago Count me in. But all I'll do is try to harass the local python gurus in to fixing my session-wizard-thing. -Dave --~--~-~--~~-

Re: SessionWizard

2008-12-08 Thread David Durham, Jr.
On Sat, Dec 6, 2008 at 3:15 PM, David Cramer <[EMAIL PROTECTED]> wrote: > > Would have to look at how FormPreview's work, but I agree. > > So far what I've done with the wizard is remove all of the data from > the session as much as possible. It calculates cleaned_data at the > very end and only s

Re: SessionWizard

2008-12-08 Thread David Durham, Jr.
On Wed, Dec 3, 2008 at 8:34 PM, David Cramer <[EMAIL PROTECTED]> wrote: > > So far I've refactored a bunch of the methods to store less in the > session, and generate more on demand (otherwise you could change the > method and then session data represents inaccurate information). I've > completedl

Re: SessionWizard

2008-12-08 Thread David Durham, Jr.
On Wed, Dec 3, 2008 at 7:50 PM, David Cramer <[EMAIL PROTECTED]> wrote: > > So I needed the ability to specify initial data for a wizard, and I > also liked the idea of storing it in the session (vs the POST). I was > pointed to the SessionWizard patch, and I believe this was a 1.1 > possibility a

Re: Feature reviews for 1.1

2008-11-20 Thread David Durham, Jr.
On Thu, Nov 20, 2008 at 1:38 PM, Bob <[EMAIL PROTECTED]> wrote: > Also, I added my votes here: > https://spreadsheets.google.com/ccc?key=pIaJn09D1vqW1yJjl3wGUeg > (not sure if you're counting non-committer votes or not) You're -1 on SessionWizard is partially invalid. I tried to anticipate the n

Re: session backed form wizard

2008-10-04 Thread David Durham, Jr.
I think I'm pretty much done with what I plan to do with this ticket: http://code.djangoproject.com/ticket/9200 Unless anyone else has comments or suggestions that could improve its chances of actually making it into contrib. Thanks, Dave --~--~-~--~~~---~--~---

Re: dealing with legacy tables without primary key

2008-10-02 Thread David Durham, Jr.
>> > Maybe this tip could be added in the doc; for others sgbd, there must >> > be something similar. >> > And why not put this in the inspectdb command ... >> >> Because it's a dirty, dirty hack. > It is your opinion; what is your solution ? it should interest me, > because this "dirty hack" can

Re: session backed form wizard

2008-09-26 Thread David Durham, Jr.
On Fri, Sep 26, 2008 at 9:29 PM, David Durham, Jr. <[EMAIL PROTECTED]> wrote: > I did find more information here: > > http://docs.djangoproject.com/en/dev/internals/contributing/ > > But this method appears to only run the tests in tests, not the tests > in django/contr

Re: session backed form wizard

2008-09-26 Thread David Durham, Jr.
> So I'm working on tests for this, and I can see the pattern for > writing tests by looking at django.contrib.formtools.tests.py, but I > don't see what the infrastructure is, if any, for running these tests. > The documentation here doesn't seem to have the info I need > > http://docs.djangop

Re: session backed form wizard

2008-09-26 Thread David Durham, Jr.
>> http://code.djangoproject.com/ticket/9200 > > I see this pattern a lot, and I guess it will be quite useful - I was > just thinking about writing someting like this class myself. > I have marked the ticked as "Need Docs" and "Need tests", and the status as > DDN. So I'm working on tests for t

session backed form wizard

2008-09-24 Thread David Durham, Jr.
Hi all, I posted a patch for django.contrib.formtools.wizard that adds a SessionWizard class. I'd like to know if there's any interest in apply this or a similar patch, and if so I'll work on tests and documentation. http://code.djangoproject.com/ticket/9200 Thanks, Dave --~--~-~--~--

Re: Proposal: django.forms.SafeForm - forms with built in CSRF protection

2008-09-24 Thread David Durham, Jr.
On Wed, Sep 24, 2008 at 9:00 AM, Simon Willison <[EMAIL PROTECTED]> wrote: > > On Sep 24, 2:18 pm, zellyn <[EMAIL PROTECTED]> wrote: >> Would it make sense to have the middleware/view decorator set a >> property on the request, and pass the request to all forms, and have >> *all* forms CSRF-protec

Re: Denormalisation, magic, and is it really that useful?

2008-09-23 Thread David Durham, Jr.
On Tue, Sep 23, 2008 at 7:44 AM, Steve Holden <[EMAIL PROTECTED]> wrote: > > This appears to be a proposal to re-implement triggers inside Django. > > I can see there are benefits if the underlying DB platform won't support > triggers, but wouldn't triggers be the preferred solution when they're >

Re: FormWizard - GETs on all but last step?

2008-07-01 Thread David Durham, Jr.
On Tue, Jul 1, 2008 at 6:10 PM, Waylan Limberg <[EMAIL PROTECTED]> wrote: > Um, this is intentional and a good thing. If you read the spec, not > only is the difference between GET and POST defined, but the way user > agents (browsers) should treat them is defined as well. Breaking the > back & re

Re: FormWizard - GETs on all but last step?

2008-07-01 Thread David Durham, Jr.
On Tue, Jul 1, 2008 at 4:59 PM, David Durham, Jr. <[EMAIL PROTECTED]> wrote: > form, and are redirected to a GET for the next step. In this case, > the POST disappears from the user's history (refresh and reload work > as expected). Sorry, reload and back work as

Re: FormWizard - GETs on all but last step?

2008-07-01 Thread David Durham, Jr.
On Mon, Jun 30, 2008 at 8:03 PM, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > I was thinking the FormWizard should allow GET to be used on all but > the last step, or should allow configuration of what to method to use. > > Forms aren't just for posting. > > Any interest in this? Nice thing about