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

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

Location:
quintagroup.plonegooglesitemaps/branches/1.7.1
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/branches/1.7.1/docs/HISTORY.txt

    r3311 r3405  
    11Changelog 
    22========= 
     3 
     41.7.1 - unreleased 
     5------------------ 
     6 
     7* Added deleting (button) the verification file 
     8  [potar] 
     9 
     10* Updated view quintagroup.plonegooglesitemaps (tabs) 
     11  [potar] 
    312 
    4131.7.0 (2011-10-28) 
  • 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): 
  • quintagroup.plonegooglesitemaps/branches/1.7.1/quintagroup/plonegooglesitemaps/browser/configure.zcml

    r3397 r3405  
    5252    <browser:page 
    5353      for="Products.CMFPlone.interfaces.IPloneSiteRoot" 
    54       name="deleteVerificationFile" 
     54      name="deleteGSMVerificationFile" 
    5555      class=".configletview.ConfigletSettingsView" 
    5656      permission="cmf.ManagePortal" 
    57       attribute="deleteVerificationFile" 
     57      attribute="deleteGSMVerificationFile" 
    5858    /> 
    5959 
    6060    <browser:resource                                                            
    61       name="trash.gif"                                                           
    62       image="./images/trash.gif"                                                 
     61      name="quintagroup.plonegooglesitemaps.trash.gif" 
     62      image="images/trash.gif"                                                 
    6363      layer="quintagroup.plonegooglesitemaps.interfaces.IGoogleSitemapsLayer" 
    6464      permission="cmf.ManagePortal" 
     
    6666     
    6767    <browser:resource 
    68       name="verify_file.css" 
     68      name="quintagroup.plonegooglesitemaps.verify_file.css" 
    6969      file="resources/verify_file.css" 
    7070      layer="quintagroup.plonegooglesitemaps.interfaces.IGoogleSitemapsLayer" 
  • quintagroup.plonegooglesitemaps/branches/1.7.1/quintagroup/plonegooglesitemaps/browser/resources/verify_file.css

    r3397 r3405  
    11.delete {                                            
    2     background:url(++resource++trash.gif) 5px 50% no-repeat;      
     2    background:url(++resource++quintagroup.plonegooglesitemaps.trash.gif) 5px 50% no-repeat;      
    33    display:none; 
    44    font-size:80%;                      
  • quintagroup.plonegooglesitemaps/branches/1.7.1/quintagroup/plonegooglesitemaps/profiles/default/cssregistry.xml

    r3397 r3405  
    22<object name="portal_css"> 
    33<stylesheet 
    4     id="++resource++verify_file.css" 
     4    id="++resource++quintagroup.plonegooglesitemaps.verify_file.css" 
    55    media="" rel="stylesheet" rendering="import" 
    66    cacheable="True" compression="safe" cookable="True" 
  • quintagroup.plonegooglesitemaps/branches/1.7.1/quintagroup/plonegooglesitemaps/skins/plonegooglesitemaps/prefs_gsm_verification.cpt

    r3397 r3405  
    1818                    <li class=""> 
    1919                        <a href="" 
    20                         tal:attributes="href string: prefs_gsm_overview" 
     20                        tal:attributes="href string: ${context/absolute_url}/prefs_gsm_overview" 
    2121                        i18n:translate="label_properties">Overview</a> 
    2222                    </li> 
     
    2424                    <li class="selected"> 
    2525                        <a href="" 
    26                         tal:attributes="href string:${template/id}" 
     26                        tal:attributes="href string: ${context/absolute_url}/${template/id}" 
    2727                        i18n:translate="label_properties">Verification</a> 
    2828                    </li> 
     
    3030                    <li class=""> 
    3131                    <a href="" 
    32                         tal:attributes="href string:prefs_gsm_settings"> 
     32                        tal:attributes="href string: ${context/absolute_url}/prefs_gsm_settings"> 
    3333                        Settings</a> 
    3434                    </li> 
     
    8080                                    <a tal:attributes="href string: ${vf/id}" tal:content="vf/id"></a> 
    8181                                    <span tal:replace="string: (${vf/title})">comment to verification file</span> 
    82                                     <a tal:attributes="href string: ${context/absolute_url}/@@deleteVerificationFile?id=${vf/id}; class string:delete">Delete</a> 
     82                                    <a tal:attributes="href string: ${context/absolute_url}/@@deleteGSMVerificationFile?id=${vf/id}; class string:delete">Delete</a> 
    8383                            </li></ul> 
    8484                        </li> 
  • quintagroup.plonegooglesitemaps/branches/1.7.1/setup.py

    r3311 r3405  
    33import os 
    44 
    5 version = '1.7.0' 
     5version = '1.7.1' 
    66 
    77tests_require = ['zope.testing', 
Note: See TracChangeset for help on using the changeset viewer.