Mercurial > p > roundup > code
comparison roundup/templates/classic/dbinit.py @ 1105:62485452f514
anonymous may view by default
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 11 Sep 2002 01:18:24 +0000 |
| parents | 04a6b3bfbf23 |
| children | a95428868bf4 |
comparison
equal
deleted
inserted
replaced
| 1104:d759c3cb1f06 | 1105:62485452f514 |
|---|---|
| 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 17 # | 17 # |
| 18 # $Id: dbinit.py,v 1.26 2002-09-09 23:55:19 richard Exp $ | 18 # $Id: dbinit.py,v 1.27 2002-09-11 01:18:24 richard Exp $ |
| 19 | 19 |
| 20 import os | 20 import os |
| 21 | 21 |
| 22 import config | 22 import config |
| 23 from select_db import Database, Class, FileClass, IssueClass | 23 from select_db import Database, Class, FileClass, IssueClass |
| 126 p = db.security.getPermission('Email Registration') | 126 p = db.security.getPermission('Email Registration') |
| 127 db.security.addPermissionToRole('Anonymous', p) | 127 db.security.addPermissionToRole('Anonymous', p) |
| 128 # - Allow anonymous users access to the "issue" class of data | 128 # - Allow anonymous users access to the "issue" class of data |
| 129 # Note: this also grants access to related information like files, | 129 # Note: this also grants access to related information like files, |
| 130 # messages, statuses etc that are linked to issues | 130 # messages, statuses etc that are linked to issues |
| 131 #p = db.security.getPermission('View', 'issue') | 131 p = db.security.getPermission('View', 'issue') |
| 132 #db.security.addPermissionToRole('Anonymous', p) | 132 db.security.addPermissionToRole('Anonymous', p) |
| 133 # - Allow anonymous users access to edit the "issue" class of data | 133 # - Allow anonymous users access to edit the "issue" class of data |
| 134 # Note: this also grants access to create related information like | 134 # Note: this also grants access to create related information like |
| 135 # files and messages etc that are linked to issues | 135 # files and messages etc that are linked to issues |
| 136 #p = db.security.getPermission('Edit', 'issue') | 136 #p = db.security.getPermission('Edit', 'issue') |
| 137 #db.security.addPermissionToRole('Anonymous', p) | 137 #db.security.addPermissionToRole('Anonymous', p) |
