summaryrefslogtreecommitdiff
path: root/cliff/show.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove sixxuanyandong2020-10-291-4/+1
| | | | | | | | | | | | Replace the following items with Python 3 style code. - six.moves - six.PY2 - six.PY3 - six.string_types - six.text_type Change-Id: I1656b976864c8f2343e658a4abf432d30c151d0b
* Add Apache 2.0 license to source fileCao Xuan Hoang2016-10-101-0/+12
| | | | | | | | | | | | As per OpenStack licensing guide lines [1]: [H102 H103] Newly contributed Source Code should be licensed under the Apache 2.0 license. [H104] Files with no code shouldn't contain any license header nor comments, and must be left completely empty. [1] http://docs.openstack.org/developer/hacking/#openstack-licensing Change-Id: I0efe587768fa1b8f1b6fc64ecfb56a2e57ebd9a9
* Clean imports in codeCao Xuan Hoang2016-09-201-2/+2
| | | | | | | | | | This patch set modifies lines which are importing objects instead of modules. As per openstack import guide lines, user should import modules in a file not objects. http://docs.openstack.org/developer/hacking/#imports Change-Id: Ief01c4915b385b3135ec000f949755ab0d4883dd
* Distinguish no existed columns in ShowOneRui Chen2016-04-201-8/+3
| | | | | | | | | | If we show a resource with no existed column, ShowOne command don't raise any warning and notify that we are doing some wrong things, the suitable behavior should be like as Lister command, output the no recognized column names. Change-Id: I5a698653a683c00dd3e3e41c3b381f3d4dac2c08 Closes-Bug: #1548701
* Don't import unused loggingChangBo Guo(gcb)2015-12-301-4/+0
| | | | Change-Id: I8891e893a44c21cb573ffd02899d75e507716b44
* Merge "Use six.add_metaclass instead of __metaclass__"Jenkins2014-06-091-1/+3
|\
| * Use six.add_metaclass instead of __metaclass__Christian Berendt2014-06-031-1/+3
| | | | | | | | | | | | | | According to http://docs.openstack.org/developer/hacking/ it should be preferred to use six.add_metaclass instead of __metaclass__. Change-Id: I33a0d1b0a0a31beacc8c768eb18fac3cb9ed5936
* | Make show option compatible with Python 2.6.Feodor Tersin2014-06-061-2/+1
|/ | | | | Change-Id: I573ba628e1f7d4e1f6d71223e27f2301db7eb080 Closes-Bug: #1322931
* Add dict2columns()Dean Troyer2013-07-181-0/+9
| | | | | Add ShowOne.dict2columns() to handle the common process of displaying a single dict as two columns of key and value.
* Refactor DisplayBase.run() to make it easier to override separate parts in ↵Doug Hellmann2012-06-011-5/+6
| | | | | | subclasses. Rename get_data() to take_action() so subclasses that do something other than query for values have a clear place to override.
* move the column option so it applies to "show" commands, tooDoug Hellmann2012-05-061-1/+11
|
* refactor ShowOne and Lister to share a common base classDoug Hellmann2012-04-291-38/+8
|
* clean up help text for the other formattersDoug Hellmann2012-04-281-1/+1
|
* add ShowOne base class for commands that need to show properties of an ↵Doug Hellmann2012-04-271-0/+65
individual object make the table formatter work as a single object formatter update the docs for the new features