Browse Source

editor module to use & test auth module

master
T. Meissner 10 years ago
parent
commit
bc87e3e041
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      python_3_oop/chapter04/editor.py

+ 8
- 0
python_3_oop/chapter04/editor.py View File

@ -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")

Loading…
Cancel
Save