projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f734326
)
Proper glyphs for GenericBits.
author
Simon Cross
<hodgestar@gmail.com>
Sat, 17 May 2014 18:40:01 +0000
(20:40 +0200)
committer
Simon Cross
<hodgestar@gmail.com>
Sat, 17 May 2014 18:40:08 +0000
(20:40 +0200)
naja/actions.py
patch
|
blob
|
history
diff --git
a/naja/actions.py
b/naja/actions.py
index d5e2b37227b0fb22f3ad512b6381e9537d43b4c3..4dafbc6fbe3ebed6dc8d68b06a19986013183c61 100644
(file)
--- a/
naja/actions.py
+++ b/
naja/actions.py
@@
-135,6
+135,16
@@
class GenericBits(LocationAction):
bits.toggle_bits(self.toggle_bits)
bits.clear_bits(self.clear_bits)
+ def get_glyphs(self):
+ glyphs = []
+ if self.set_bits:
+ glyphs.append(ACTION_GLYPHS.SET_BITS)
+ if self.clear_bits:
+ glyphs.append(ACTION_GLYPHS.CLEAR_BITS)
+ if self.toggle_bits:
+ glyphs.append(ACTION_GLYPHS.TOGGLE_BITS)
+ return tuple(glyphs)
+
def get_text(self, location=None):
if 'message' in self.data:
return super(GenericBits, self).get_text()