On Thursday 07 January 2010 00:12:08 gaz wrote:

> However I thought I'd drop a line here since this isn't in the
> backwards incompatible changes listed for 1.2 (I guess I'm possibly
> already playing with voodoo, view_func isn't really documented so
>  it's my own fault I guess).

Yes, that definitely falls into the category of relying on an 
implementation detail, rather than something that should be mentioned 
as a backwards incompatibility.  At the level of inspecting code 
objects (which is essentially what your code was doing), almost any 
change is backwards incompatible.  'view_func' is not only not 
documented, it is a member of a class which is private and marked as 
such - _CheckLogin.

The relevant changesets are:

http://code.djangoproject.com/changeset/11587
http://code.djangoproject.com/changeset/11586

Between them, the '_CheckLogin' object was replaced with a more 
general method.  That may enable you to find a solution to your 
problem.

Personally, I'd use this as an opportunity to find a more robust way 
of getting that information to the template tag :-)

Luke

-- 
"Mediocrity: It takes a lot less time, and most people don't 
realise until it's too late." (despair.com)

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


Reply via email to