first, a usecase: say you have a website with lots of movies. then  
you have a table for "filmstarts of this week" - on the website the  
filmstarts are ordered by a column "position".
basically, it´s for every table you want to order manually (not using  
"date" or whatever).

Am 03.08.2006 um 02:02 schrieb Malcolm Tredinnick:

>
> Hey Patrick,
>
> On Thu, 2006-08-03 at 01:26 +0200, patrickk wrote:
>> see http://demo.script.aculo.us/ajax/sortable_elements
>
> I managed to work out that you were implementing some sort of sortable
> table. :-) Unfortunately, that doesn't fill in enough details to  
> help me
> answer the questions you were asking. Some questions I have:

I didn´t want to use the term "sortable table", because that´s  
usually leading to the wrong assumptions (sorting is already possible  
in the admin-interface ...)

> - How were you intending this to be used in the admin? For a specific
> type of field? Or everywhere there is a table, or...? This isn't  
> just an
> "ask the obvious" question: I have one case where I've had to make an
> orderable model (a list of images showing changes over time) and I
> didn't use the admin interface for that. Your addition would be useful
> in that sort of case, but is that all you're thinking of?

see usecase above - I hope that answers your question ...

> - It sounds like you want another database column to store the  
> ordering,
> but that is surely a property of the model (the model instances  
> need to
> be orderable), so it should be a specific field in the model that the
> user has defined, shouldn't it? Why is the column name an admin
> property, rather than part of a normal model field?

the column name is part of the model. I use a column  
"position" (positivesmallinteger).
I´m not sure what you mean here ...

> - If I accidently drop a row in the wrong place, or decide that the
> shuffling was just plain wrong, is there some way to "go back" to an
> earlier state? With normal form submission delineated changes,  
> there are
> specific checkpoints that make up a change and we can usually go  
> back to
> at least the last change. With "immediate apply", what are the
> possibilities for undoing mistakes?

I do favor a method without "immediate apply" - first drag, then save.

> Without seeing the implementation, I would also think about:
>
> - Does wrapping every tr in a tbody element make things really bad for
> screen readers or other linearisation needs?

don´t know. just doesn´t looks good to me.

> - Links suddenly stopping working, as you mentioned in your post,  
> could
> be a bit of an annoyance (again, I'm not sure of the intended use  
> case,
> so hard to tell for sure).

I agree. That´s why I´d like to have a button ("reorder"). When you  
click that button you get to another page (without any links to  
detail pages) for reordering stuff - symphony (http:// 
www.symphony21.com) does it exactly like that.

> It will probably be easier to give concrete feedback after you post a
> code patch. Certainly sounds interesting (the image reordering case is
> one where this might be useful).
>
> Best wishes,
> Malcolm
>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to