From 497fa70441b145c3810b3bacc519fac4c2d94fd4 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 1 Nov 2014 12:50:04 -0400 Subject: also replace the hardcoded gen_reader stuff --- mop/__init__.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/mop/__init__.py b/mop/__init__.py index bc8d606..7d4f747 100644 --- a/mop/__init__.py +++ b/mop/__init__.py @@ -330,4 +330,19 @@ def bootstrap(): name="execute", body=execute )) + # do the same thing with accessor methods that we installed with our + # temporary version of gen_reader + Class.add_method(Method.new( + name="get_superclass", body=gen_reader("superclass") + )) + Class.add_method(Method.new( + name="get_local_attributes", body=gen_reader("attributes") + )) + Attribute.add_method(Method.new( + name="get_default", body=gen_reader("default") + )) + Attribute.add_method(Method.new( + name="get_name", body=gen_reader("name") + )) + bootstrap() -- cgit v1.2.3-54-g00ecf