Mercurial > p > roundup > code
comparison roundup/templates/classic/dbinit.py @ 1007:fec6af48558b
don't journal author and recipient link events by default
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 02 Sep 2002 07:00:22 +0000 |
| parents | 1798d2fa9fec |
| children | 04a6b3bfbf23 |
comparison
equal
deleted
inserted
replaced
| 1006:2a71acd81308 | 1007:fec6af48558b |
|---|---|
| 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.24 2002-09-01 04:32:30 richard Exp $ | 18 # $Id: dbinit.py,v 1.25 2002-09-02 07:00:22 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 |
| 67 | 67 |
| 68 # FileClass automatically gets these properties: | 68 # FileClass automatically gets these properties: |
| 69 # content = String() [saved to disk in <instance home>/db/files/] | 69 # content = String() [saved to disk in <instance home>/db/files/] |
| 70 # (it also gets the Class properties creation, activity and creator) | 70 # (it also gets the Class properties creation, activity and creator) |
| 71 msg = FileClass(db, "msg", | 71 msg = FileClass(db, "msg", |
| 72 author=Link("user"), recipients=Multilink("user"), | 72 author=Link("user", do_journal='no'), |
| 73 recipients=Multilink("user", do_journal='no'), | |
| 73 date=Date(), summary=String(), | 74 date=Date(), summary=String(), |
| 74 files=Multilink("file"), | 75 files=Multilink("file"), |
| 75 messageid=String(), inreplyto=String()) | 76 messageid=String(), inreplyto=String()) |
| 76 | 77 |
| 77 file = FileClass(db, "file", | 78 file = FileClass(db, "file", |
| 188 | 189 |
| 189 db.commit() | 190 db.commit() |
| 190 | 191 |
| 191 # | 192 # |
| 192 # $Log: not supported by cvs2svn $ | 193 # $Log: not supported by cvs2svn $ |
| 194 # Revision 1.24 2002/09/01 04:32:30 richard | |
| 195 # . Lots of cleanup in the classic html (stylesheet, search page, index page, ...) | |
| 196 # . Reinstated searching, but not query saving yet | |
| 197 # . Filtering only allows sorting and grouping by one property - all backends | |
| 198 # now implement this behaviour. | |
| 199 # . Nosy list journalling turned off by default, everything else is on. | |
| 200 # . Added some convenience methods (reverse, propchanged, [item] accesses, ...) | |
| 201 # . Did I mention the stylesheet is much cleaner now? :) | |
| 202 # | |
| 193 # Revision 1.23 2002/08/30 08:30:45 richard | 203 # Revision 1.23 2002/08/30 08:30:45 richard |
| 194 # allow perms on user class | 204 # allow perms on user class |
| 195 # | 205 # |
| 196 # Revision 1.22 2002/08/01 00:56:22 richard | 206 # Revision 1.22 2002/08/01 00:56:22 richard |
| 197 # Added the web access and email access permissions, so people can restrict | 207 # Added the web access and email access permissions, so people can restrict |
