From 2f837bdbc9e74dd704196e4f87491742f40b157e Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 8 Jul 2002 03:07:37 +0000 Subject: [PATCH] Note correct API calls in the doc ;) git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@825 57a73879-2fb5-44c3-a270-3262357dd7e2 --- doc/security.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/security.txt b/doc/security.txt index d63f0ed..356a24b 100644 --- a/doc/security.txt +++ b/doc/security.txt @@ -2,7 +2,7 @@ Security Mechanisms =================== -:Version: $Revision: 1.3 $ +:Version: $Revision: 1.4 $ Current situation ================= @@ -203,13 +203,13 @@ The instance dbinit module then has:: in init(): - r = db.getclass('role').find('Admin') + r = db.getclass('role').lookup('Admin') user.create(username="admin", password=Password(adminpw), address=instance_config.ADMIN_EMAIL, roles=[r]) # choose your anonymous user access permission here - #r = db.getclass('role').find('No Rego') - r = db.getclass('role').find('User') + #r = db.getclass('role').lookup('No Rego') + r = db.getclass('role').lookup('User') user.create(username="anonymous", roles=[r]) -- 2.30.2