MoinMessage

Change of MoinMessageSupport.py

34:880d5796bf8d
MoinMessageSupport.py
     1.1 --- a/MoinMessageSupport.py	Fri Jun 07 01:34:51 2013 +0200
     1.2 +++ b/MoinMessageSupport.py	Fri Jun 07 01:54:28 2013 +0200
     1.3 @@ -232,10 +232,19 @@
     1.4  
     1.5          "Locate the GPG home directory."
     1.6  
     1.7 -        homedir = getattr(self.request.cfg, "moinmessage_gpg_homedir")
     1.8 +        request = self.request
     1.9 +        homedir = get_homedir(self.request)
    1.10 +
    1.11          if not homedir:
    1.12              writeHeaders(request, "text/plain", getMetadata(self.page), "415 Unsupported Media Type")
    1.13              request.write("Encoded data cannot currently be understood. Please notify the site administrator.")
    1.14 +
    1.15          return homedir
    1.16  
    1.17 +def get_homedir(request):
    1.18 +
    1.19 +    "Locate the GPG home directory."
    1.20 +
    1.21 +    return getattr(request.cfg, "moinmessage_gpg_homedir")
    1.22 +
    1.23  # vim: tabstop=4 expandtab shiftwidth=4