Commit 0dc185de authored by Stefan Behnel's avatar Stefan Behnel

add method that was accidentally left out

parent 1d7072f1
...@@ -1482,6 +1482,14 @@ class GlobalState(object): ...@@ -1482,6 +1482,14 @@ class GlobalState(object):
self.utility_codes.add(utility_code) self.utility_codes.add(utility_code)
utility_code.put_code(self) utility_code.put_code(self)
def use_entry_utility_code(self, entry):
if entry is None:
return
if entry.utility_code:
self.use_utility_code(entry.utility_code)
if entry.utility_code_definition:
self.use_utility_code(entry.utility_code_definition)
def funccontext_property(name): def funccontext_property(name):
attribute_of = operator.attrgetter(name) attribute_of = operator.attrgetter(name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment