From bc87e3e041cfdcf33e5dde037a5a39c3d176ddf3 Mon Sep 17 00:00:00 2001 From: tmeissner Date: Fri, 12 Sep 2014 17:22:30 +0200 Subject: [PATCH] editor module to use & test auth module --- python_3_oop/chapter04/editor.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 python_3_oop/chapter04/editor.py diff --git a/python_3_oop/chapter04/editor.py b/python_3_oop/chapter04/editor.py new file mode 100644 index 0000000..17ae123 --- /dev/null +++ b/python_3_oop/chapter04/editor.py @@ -0,0 +1,8 @@ +import auth + + +# setup a test user & permission +auth.authenticator.add_user("joe", "joepassword") +auth.authorizor.add_permission("test program") +auth.authorizor.add_permission("change program") +auth.authorizor.permit_user("test program", "joe") \ No newline at end of file