Differences between revisions 1 and 2
Revision 1 as of 2005-02-05 15:46:14
Size: 963
Editor: ZoomQuiet
Comment:
Revision 2 as of 2009-12-25 07:15:15
Size: 963
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 32: Line 32:
-- ZoomQuiet [[[DateTime(2005-02-05T15:46:14Z)]]] -- ZoomQuiet [<<DateTime(2005-02-05T15:46:14Z)>>]

2005-02-03

  • 该死的 Spam 们!!来吧!!!
  • ZoomQuiet 升级了 MoinMoin 巩固,禁止未登录的用户进行修改

    •    1 class Permissions:
         2     ...
         3     def __init__(self, user):
         4         """ Calculate the permissons `user` has.
         5         """
         6         ...
         7         self.valid = user.valid
      
    • 奇怪哪 1.2.3 居然要手工加一个变量在 security.py
    • 才可以令如下的设置工作:

   1 from MoinMoin.security import Permissions 
   2 class SecurityPolicy(Permissions):
   3         #def __init__(self, user):
   4         #       Permissions.__int__(self, user);
   5         def edit(self, pagename, **_): 
   6                 # only known users are allowed to delete 
   7                 #return self.user.valid 
   8                 #return self.getACL(pagename).may(self.request, self.name, "write")
   9                 return self.valid
  • 马上可以进行各种保护尝试!!积极影响大家的需求!!!


-- ZoomQuiet [2005-02-05 15:46:14]

WoodpeckerLog/2005-02-03 (last edited 2009-12-25 07:15:15 by localhost)