From: richard Date: Mon, 8 Jul 2002 03:07:37 +0000 (+0000) Subject: Note correct API calls in the doc ;) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2f837bdbc9e74dd704196e4f87491742f40b157e;p=roundup.git Note correct API calls in the doc ;) git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@825 57a73879-2fb5-44c3-a270-3262357dd7e2 --- 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])