I have begun work on the suggestion I made, the current diff is here:
http://dpaste.com/61309/, right now the main issue I have is that
currently AdminSite.root() sets self.root_path which I believe is no
longer necessary(although I could be wrong), but I'm not 100% sure
what it is used for(if it is used for relative URL redirects it should
be possible since reverse should work with this), however hopefully
someone more familar with NFA can assist.  Within the diff any time I
have removed a URL pattern from it's current location it means that it
is reimplemented in the _get_urls method.  Any assistance or ideas
would(as always) be welcome.

On Jul 8, 12:23 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> My suggestion is that we make AdminSite have an attr that is actually
> a getter that dynamically generates a module like object that just has
> a urlpatterns attr so it's basically a dynamically generated URLConf
> and have each ModelAdmin cobble together it's portion and the
> AdminSite can put it all together.  If there is any interest in this
> at all I can put together a prototype.
>
> On Jul 7, 11:24 pm, Collin Grady <[EMAIL PROTECTED]> wrote:
>
> > I know it's kind of late to bring this up, but I haven't been using the 
> > branch,
> > so it hasn't been at the front of my mind at all :)
>
> > newforms-admin currently uses a url match of ^admin/(.*) which sort of kills
> > reversing - you can't just pass the parts in, you have to manually build the
> > string for the rest of the URL.
>
> > Would it be feasible to change that back to separate url matches like the
> > current admin, or would that take too long at this close date?
>
> > Or perhaps another method would be to give newforms-admin its own helper to
> > generate URLs?  It's nice to be able to link back to admin for staff 
> > members, so
> > you can quickly go and edit a page, so I think any fix along these lines 
> > would
> > be very useful :)
>
> > --
> > Collin Grady
>
> > "I only touch base with reality on an as-needed basis!"
> >                 -- Royal Floyd Mengot (Klaus)
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to