diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-11-01 12:50:04 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-11-01 12:50:04 -0400 |
commit | 497fa70441b145c3810b3bacc519fac4c2d94fd4 (patch) | |
tree | 313246377930caeb8439891af6f7582120b401bd | |
parent | 8f45b717d0606ddc6d5595ecbb43ee2f2f93f511 (diff) | |
download | python-mop-497fa70441b145c3810b3bacc519fac4c2d94fd4.tar.gz python-mop-497fa70441b145c3810b3bacc519fac4c2d94fd4.zip |
also replace the hardcoded gen_reader stuff
-rw-r--r-- | mop/__init__.py | 15 |
1 files changed, 15 insertions, 0 deletions
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() |