comparison roundup/backends/rdbms_common.py @ 2649:1df7d4a41da4

Buncha stuff (sorry about the large checkin): - Permissions may now be defined on a per-property basis - added "Create" Permission. Replaces the "Web"- and "Email Registration" Permissions. - added option to turn off registration confirmation via email ("instant_registration" in config) Migrated the user edit/view permission to use check code. Fixed a buncha stuff in the default templates. Needs a thorough review though.
author Richard Jones <richard@users.sourceforge.net>
date Wed, 28 Jul 2004 02:29:46 +0000
parents b01eca163779
children d68a444fcce3
comparison
equal deleted inserted replaced
2648:fe71e108d998 2649:1df7d4a41da4
1 # $Id: rdbms_common.py,v 1.126 2004-07-27 04:28:39 richard Exp $ 1 # $Id: rdbms_common.py,v 1.127 2004-07-28 02:29:45 richard Exp $
2 ''' Relational database (SQL) backend common code. 2 ''' Relational database (SQL) backend common code.
3 3
4 Basics: 4 Basics:
5 5
6 - map roundup classes to relational tables 6 - map roundup classes to relational tables
605 if self.classes.has_key(cn): 605 if self.classes.has_key(cn):
606 raise ValueError, cn 606 raise ValueError, cn
607 self.classes[cn] = cl 607 self.classes[cn] = cl
608 608
609 # add default Edit and View permissions 609 # add default Edit and View permissions
610 self.security.addPermission(name="Create", klass=cn,
611 description="User is allowed to create "+cn)
610 self.security.addPermission(name="Edit", klass=cn, 612 self.security.addPermission(name="Edit", klass=cn,
611 description="User is allowed to edit "+cn) 613 description="User is allowed to edit "+cn)
612 self.security.addPermission(name="View", klass=cn, 614 self.security.addPermission(name="View", klass=cn,
613 description="User is allowed to access "+cn) 615 description="User is allowed to access "+cn)
614 616

Roundup Issue Tracker: http://roundup-tracker.org/