← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1183578] Re: LazyURLPattern Does Not Implement Special Methods

 

** Changed in: horizon
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1183578

Title:
  LazyURLPattern Does Not Implement Special Methods

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  Note: Django 1.5

  It would appear that the SimpleLazyObject in Django 1.5 isn't
  forwarding special methods like __len__ and __getitem__ to the wrapped
  object.  Since LazyURLPattern implements the special iteration methods
  itself, but not __len__ and __getitem__, Django gives an HTTP 500
  Internal Server Error when attempting to render the 404 page, since it
  tries to call len() and use [] on the LazyURLPattern.  The fix is
  rather trivial -- see the attached file.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1183578/+subscriptions