From 7ab7f02fd94a8d0fd3bb2c4adfbdee1c5ddf51c6 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 24 May 2015 20:16:13 -0400 Subject: [PATCH] Add a marker to expanded values showing access level and method status --- pudb/var_view.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pudb/var_view.py b/pudb/var_view.py index e498b4f..bbb6174 100644 --- a/pudb/var_view.py +++ b/pudb/var_view.py @@ -287,6 +287,17 @@ class ValueWalker: displayed_value = type_stringifier(value) \ + " (!! %s error !!)" % iinfo.display_type + if iinfo.show_detail: + if iinfo.access_level == "public": + marker = "pub" + elif iinfo.access_level == "private": + marker = "pri" + else: + marker = "all" + if iinfo.show_methods: + marker += "+()" + displayed_value += " [%s]" % marker + self.add_item(prefix, label, displayed_value, id_path, attr_prefix)