Ignore:
Timestamp:
Apr 3, 2012 3:36:19 PM (8 years ago)
Author:
potar
Message:

fixed deleteVerificationFile(); added method absolute_url to template, new changes to HISTORY.txt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/branches/1.7.1/quintagroup/plonegooglesitemaps/browser/configletview.py

    r3399 r3405  
    55from OFS.ObjectManager import BadRequestException 
    66from Products.Five import BrowserView 
     7 
     8import urlparse 
    79 
    810 
     
    144146        return (size, entries) 
    145147 
    146     def deleteVerificationFile(self): 
     148    def deleteGSMVerificationFile(self): 
    147149        portal = self.pps.portal() 
    148150        portal.manage_delObjects([self.request.id, ]) 
    149         if 'HTTP_REFERER' in self.request.keys(): 
    150             url = self.request.HTTP_REFERER 
    151         else: 
    152             url = self.context + 'prefs_gsm_verification' 
    153         self.request.RESPONSE.redirect(url) 
     151        self.request.RESPONSE.redirect( 
     152                                urlparse.urljoin(self.context.absolute_url, 
     153                                'prefs_gsm_verification')) 
    154154 
    155155    def getVerificationFiles(self): 
Note: See TracChangeset for help on using the changeset viewer.