Mercurial > p > roundup > code
comparison templates/classic/dbinit.py @ 2077:3e0961d6d44d
Added the "actor" property.
Metakit backend not done (still not confident I know how it's supposed
to work ;)
Currently it will come up as NULL in the RDBMS backends for older items.
The *dbm backends will look up the journal. I hope to remedy the former
before 0.7's release.
Fixed a bunch of migration issues in the rdbms backends while I was at it
(index changes for key prop changes) and simplified the class table update
code for RDBMSes that have "alter table" in their command set (ie. not
sqlite) ... migration from "version 1" to "version 2" still hasn't
actually been tested yet though.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 15 Mar 2004 05:50:20 +0000 |
| parents | 2a4309450202 |
| children | 8e13768d02af |
comparison
equal
deleted
inserted
replaced
| 2076:2a4309450202 | 2077:3e0961d6d44d |
|---|---|
| 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.4 2004-03-12 05:36:26 richard Exp $ | 18 # $Id: dbinit.py,v 1.5 2004-03-15 05:50:20 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 |
| 105 db.security.addPermissionToRole('User', p) | 105 db.security.addPermissionToRole('User', p) |
| 106 p = db.security.getPermission('Edit', cl) | 106 p = db.security.getPermission('Edit', cl) |
| 107 db.security.addPermissionToRole('User', p) | 107 db.security.addPermissionToRole('User', p) |
| 108 for cl in 'priority', 'status': | 108 for cl in 'priority', 'status': |
| 109 p = db.security.getPermission('View', cl) | 109 p = db.security.getPermission('View', cl) |
| 110 db.security.addPermissionToRole('User', p) | |
| 110 | 111 |
| 111 # and give the regular users access to the web and email interface | 112 # and give the regular users access to the web and email interface |
| 112 p = db.security.getPermission('Web Access') | 113 p = db.security.getPermission('Web Access') |
| 113 db.security.addPermissionToRole('User', p) | 114 db.security.addPermissionToRole('User', p) |
| 114 p = db.security.getPermission('Email Access') | 115 p = db.security.getPermission('Email Access') |
