← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1230400] Re: horizon.tables.Column() raises an exception for a valid arguments combination

 

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

** Changed in: horizon
    Milestone: None => icehouse-1

-- 
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/1230400

Title:
  horizon.tables.Column() raises an exception for a valid arguments
  combination

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  Say, if we pass some callable as first mandatory argument 'transform'
  of horizon.tables.Column __init__ method and do not provide
  'verbose_name' optional argument, __init__ fails with an exception
  (I've cut off irrelevant part of stacktrace):

    File "/home/tsufiev/develop/murano-dashboard/.venv/local/lib/python2.7/site-packages/horizon/tables/base.py", line 215, in __init__
      verbose_name = self.transform.title()
  AttributeError: 'function' object has no attribute 'title'

  This is clearly a bug, because horizon.tables.Column should be able to
  derive 'verbose_name' from 'transform' even if it is callable.

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