ah I see. But I'm a little confused. How are your users manipulating
this list if not via a web page? are you saying you trying to create
an API in your application for people to use on querysets and interact
with the database table?

The notion of lists & tables in the web space is a little ambiguous.

On Oct 8, 7:05 am, Steven Sacks <stevensa...@gmail.com> wrote:
> Sorry I accidentally repeated myself.
>
> List Delete closes gaps by setting item.prev = item.next and item.next
> = item.prev.
>
> On Oct 8, 5:03 am, Steven Sacks <stevensa...@gmail.com> wrote:
>
>
>
> > While I appreciate your response, your assumption is incorrect.
> > However, I've found the solution and it's rather easy.
>
> > The List Delete function closes gaps by setting an item.prev =
> > item.next and item.prev = item.next
> > The List Insert function injects item(s) either at the end of the list
> > (when the first item inserted's prev is the tail, and the tail's next
> > is set to the first item inserted), or in the middle of the list
> > (using similar logic).
> > The List Move function simply calls List Delete to close the gaps, and
> > List Insert with the new position.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to