aboutsummaryrefslogtreecommitdiff
path: root/py11/attributes.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-09-15 14:14:16 -0400
committerRob Austein <sra@hactrn.net>2015-09-15 14:14:16 -0400
commitcdb4d3a72091bebc4f0763980aabcea5dc0bc93d (patch)
treebd8e873c1ed9786c5bf54d39c5ac5f93c7dd21e5 /py11/attributes.py
parent3345ef8b1a7ad719dbd3a0f26697c6bc4bd884b1 (diff)
Add C_CreateObject(), which required refactoring some of the template-checking code.
Diffstat (limited to 'py11/attributes.py')
-rw-r--r--py11/attributes.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/py11/attributes.py b/py11/attributes.py
index 7c90768..32cf940 100644
--- a/py11/attributes.py
+++ b/py11/attributes.py
@@ -93,3 +93,9 @@ class AttributeDB(object):
template[i].pValue = create_string_buffer(v)
template[i].ulValueLen = len(v)
return template
+
+ def attribute_name(self, code):
+ return self.db[code].name
+
+ def attribute_code(self, name):
+ return self.db[name].code