Can't one pass in a view by way of a lambda?

On Thu, Jul 23, 2009 at 4:53 PM, googletorp <[email protected]> wrote:

>
> Using include is not a good option as it seems to be cached. I tried
> that myself a few days ago, but found that on my dev server I needed
> to restart before seeing newly enabled payment methods. I looked at
> setting up a signal to clear cache when payment methods are altered
> but that didn't seem possible.
>
> ~Jakob
>
> On Jul 23, 7:10 pm, C <[email protected]> wrote:
> > It would appear that url(regex, view, ...)
> > now expects that view is either a string, created by include(), or a 3
> > item list or tuple.
> >
> > Changing [urlmodule] to include(urlmodule) in
> > payment/urls.py's  make_urlpatterns() appears to resolve the issue.
> >
> > Now I have this itching urge to see what happens if I do something
> > idiotic like
> > patterns.append(url(<regex>, include([urlmodule]))
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to