Changeset 286


Ignore:
Timestamp:
06/12/09 10:11:11 (5 years ago)
Author:
jon
Message:

Fixing broken indent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • enpraxis.staticsite/trunk/enpraxis/staticsite/utilities/staticsiteutility.py

    r284 r286  
    171171        for doc_action in doc_actions: 
    172172            if doc_action.id in ['skinless', 's5']: 
    173                 action_url = self._findDocActionUrl(portal_url, soup, doc_action.id) 
     173                action_url = self._findDocActionUrl(soup, doc_action.id) 
    174174                if action_url: 
    175175                    writepath = '%s-%s.html' %(path, doc_action.id) 
    176176                    raw = self._httpget(action_url) 
    177177                    self._writeFile(writepath, raw) 
    178             elif doc_action.id in ['rss', 'rss_front']: 
    179                 if doc_action.id == 'rss_front': 
    180                 action_url = self._findDocActionUrl(portal_url, soup, doc_action.id) 
     178            elif doc_action.id in ['rss']: 
     179                action_url = self._findDocActionUrl(soup, doc_action.id) 
    181180                if action_url: 
    182181                    writepath = '%s-%s' %(path, doc_action.id) 
     
    185184                     
    186185 
    187     def _findDocActionUrl(self, portal_url, soup, id): 
     186    def _findDocActionUrl(self, soup, id): 
    188187        """ Parse document soup to find a document action """ 
    189188        docdivs = soup.body.findAll('div') 
     
    196195                    if anchor and anchor.has_key('href'): 
    197196                        action_url = anchor['href'] 
    198                         if action_url.find(portal_url) == -1: 
    199                             action_url = '%s/%s' %(portal_url, action_url) 
    200197                break 
    201198        return action_url 
Note: See TracChangeset for help on using the changeset viewer.