Mercurial > p > roundup > code
comparison roundup/templates/classic/dbinit.py @ 1002:1798d2fa9fec
Hack hack...
. Lots of cleanup in the classic html (stylesheet, search page, index page, ...)
. Reinstated searching, but not query saving yet
. Filtering only allows sorting and grouping by one property - all backends
now implement this behaviour.
. Nosy list journalling turned off by default, everything else is on.
. Added some convenience methods (reverse, propchanged, [item] accesses, ...)
. Did I mention the stylesheet is much cleaner now? :)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 01 Sep 2002 04:32:30 +0000 |
| parents | e02093543d59 |
| children | fec6af48558b |
comparison
equal
deleted
inserted
replaced
| 1001:7fea15e6cdfe | 1002:1798d2fa9fec |
|---|---|
| 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.23 2002-08-30 08:30:45 richard Exp $ | 18 # $Id: dbinit.py,v 1.24 2002-09-01 04:32:30 richard Exp $ |
| 19 | 19 |
| 20 import os | 20 import os |
| 21 | 21 |
| 22 import instance_config | 22 import instance_config |
| 23 from select_db import Database, Class, FileClass, IssueClass | 23 from select_db import Database, Class, FileClass, IssueClass |
| 107 db.security.addPermissionToRole('User', p) | 107 db.security.addPermissionToRole('User', p) |
| 108 # and give the regular users access to the web and email interface | 108 # and give the regular users access to the web and email interface |
| 109 p = db.security.getPermission('Web Access') | 109 p = db.security.getPermission('Web Access') |
| 110 db.security.addPermissionToRole('User', p) | 110 db.security.addPermissionToRole('User', p) |
| 111 p = db.security.getPermission('Email Access') | 111 p = db.security.getPermission('Email Access') |
| 112 db.security.addPermissionToRole('User', p) | |
| 113 | |
| 114 # May users view other user information? Comment these lines out | |
| 115 # if you don't want them to | |
| 116 p = db.security.getPermission('View', 'user') | |
| 112 db.security.addPermissionToRole('User', p) | 117 db.security.addPermissionToRole('User', p) |
| 113 | 118 |
| 114 # Assign the appropriate permissions to the anonymous user's Anonymous | 119 # Assign the appropriate permissions to the anonymous user's Anonymous |
| 115 # Role. Choices here are: | 120 # Role. Choices here are: |
| 116 # - Allow anonymous users to register through the web | 121 # - Allow anonymous users to register through the web |
| 183 | 188 |
| 184 db.commit() | 189 db.commit() |
| 185 | 190 |
| 186 # | 191 # |
| 187 # $Log: not supported by cvs2svn $ | 192 # $Log: not supported by cvs2svn $ |
| 193 # Revision 1.23 2002/08/30 08:30:45 richard | |
| 194 # allow perms on user class | |
| 195 # | |
| 188 # Revision 1.22 2002/08/01 00:56:22 richard | 196 # Revision 1.22 2002/08/01 00:56:22 richard |
| 189 # Added the web access and email access permissions, so people can restrict | 197 # Added the web access and email access permissions, so people can restrict |
| 190 # access to users who register through the email interface (for example). | 198 # access to users who register through the email interface (for example). |
| 191 # Also added "security" command to the roundup-admin interface to display the | 199 # Also added "security" command to the roundup-admin interface to display the |
| 192 # Role/Permission config for an instance. | 200 # Role/Permission config for an instance. |
