MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / _getLabel

Method _getLabel

src/bitmessageqt/foldertree.py:178–188  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

176 self.setType()
177
178 def _getLabel(self):
179 if self.address is None:
180 return unicode(_translate(
181 "MainWindow", "All accounts").toUtf8(), 'utf-8', 'ignore')
182 else:
183 try:
184 return unicode(
185 BMConfigParser().get(self.address, 'label'),
186 'utf-8', 'ignore')
187 except:
188 return unicode(self.address, 'utf-8')
189
190 def _getAddressBracket(self, unreadCount = False):
191 ret = ""

Callers 2

dataMethod · 0.95
__lt__Method · 0.95

Calls 3

_translateFunction · 0.90
BMConfigParserClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected