[HOME]: [Mac OS X]: [MacPython]: [Emacs]: [生存報告記]: [MacEmacs JP Project]: [NTEmacs JP Project]:

SecurityPolicy is a config option that allows wiki admins to dynamically enable or disable certain key actions in a MoinMoin wiki, most notably editing and deleting content.

Mechanics

Security restrictions in a MoinMoin wiki work by the interface defined in the MoinMoin.security module. The Permissions class implements the basic interface for user permissions and system policy. If you want to define your own policy, inherit from that base class, so that when new permissions are defined, you get the defaults.

Then assign your new class to SecurityPolicy in moin_config; and I mean the class, not an instance of it!

Samples

Disable editing over HTTPS

This is used at WEB.DE AG to make the main intra-net wiki available in read-only form via HTTPS. It's an extra security measure, in addition to password protection, against content changes from the outside. The same scheme can be used to have two different URLs pointing at the same wiki, and have only one of those URLs1 being able to edit the wiki. The net effect is that you have a read-only wiki editable only by certain people.

Add this to your moin_config.py:

# permissions
import MoinMoin.security

class SecurityPolicy(MoinMoin.security.Permissions):
    def __init__(self, user):
        MoinMoin.security.Permissions.__init__(self, user)

        # no edits via https
        from MoinMoin import webapi
        self.edit = not webapi.isSSL()
        self.delete = self.edit

incest sites incest pics incest family incest sex pics incest galleries incest taboo forum mother and son incest gay incest stories cartoon incest sister incest incest taboo free incest pics incest stories incest erotica sibling incest mature incest porn incest father daughter incest teen incest mother incest real incest incest drawings incest forum free incest videos incest story free incest pic incest sex incest video incest videos father son incest incest videos incest story teen incest incest pictures free incest pictures mother daughter incest incest rape incest stories mother daughter incest incest comics free incest porn mother son incest erotic incest stories mom incest incest porn incest free stories incest sex incest pics incest stories incest pictures mature incest incest stories incest drawings incest mom real incest

  • 1 An URL that is password-protected, by means of Apache server rules.