Mercurial > p > roundup > code
diff roundup/mailgw.py @ 902:b0d3d3535998
Bugger it. Here's the current shape of the new security implementation.
Still to do:
. call the security funcs from cgi and mailgw
. change shipped templates to include correct initialisation and remove
the old config vars
... that seems like a lot. The bulk of the work has been done though. Honest :)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 25 Jul 2002 07:14:06 +0000 |
| parents | de3da99a7c02 |
| children | 502a5ae11cc5 |
line wrap: on
line diff
--- a/roundup/mailgw.py Thu Jul 25 04:14:46 2002 +0000 +++ b/roundup/mailgw.py Thu Jul 25 07:14:06 2002 +0000 @@ -73,7 +73,7 @@ an exception, the original message is bounced back to the sender with the explanatory message given in the exception. -$Id: mailgw.py,v 1.77 2002-07-18 11:17:31 gmcm Exp $ +$Id: mailgw.py,v 1.78 2002-07-25 07:14:06 richard Exp $ ''' @@ -96,6 +96,16 @@ class UnAuthorized(Exception): """ Access denied """ +def initialiseSecurity(security): + ''' Create some Permissions and Roles on the security object + + This function is directly invoked by security.Security.__init__() + as a part of the Security object instantiation. + ''' + newid = security.addPermission(name="Email Registration", + description="Anonymous may register through e-mail") + security.addPermissionToRole('Anonymous', newid) + class Message(mimetools.Message): ''' subclass mimetools.Message so we can retrieve the parts of the message... @@ -790,6 +800,11 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.77 2002/07/18 11:17:31 gmcm +# Add Number and Boolean types to hyperdb. +# Add conversion cases to web, mail & admin interfaces. +# Add storage/serialization cases to back_anydbm & back_metakit. +# # Revision 1.76 2002/07/10 06:39:37 richard # . made mailgw handle set and modify operations on multilinks (bug #579094) #
