Changeset 370


Ignore:
Timestamp:
07/13/09 10:29:10 (5 years ago)
Author:
david
Message:

Adding svn status

File:
1 edited

Legend:

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

    r366 r370  
    194194        soup = BeautifulSoup(raw) 
    195195        self.deployDocumentActions(portal, aurl, dpath, soup, ssprops) 
     196        self.deployNonActionNonHTMLViews(portal, aurl, dpath, soup, ssprops) 
    196197        if isFolderish: 
    197198            curl = aurl + '/index.html' 
     
    245246                                    self._writeFile(mpath, body) 
    246247 
     248    def deployNonActionNonHTMLViews(self, portal, aurl, dpath, soup, ssprops): 
     249        #deploy non-html views that are not tied to views_to_add and not found as links within pages 
     250        views_to_add = ssprops.getProperty('views_to_add') 
     251        non_html_views = ssprops.getProperty('non_html_views') 
     252        views = [x for x in non_html_views if x not in views_to_add] 
     253        for view in views: 
     254            url = '%s/%s' % (aurl, view) 
     255            raw = self._httpget(url) 
     256            if len(raw) > 0: 
     257                obj_path = url.replace(portal.portal_url()+'/', '') 
     258                dpath += '%s' % obj_path 
     259                self._writeFile(dpath, raw) 
     260 
    247261    def runDocumentFilters(self, portal, current, soup, ssprops): 
    248262        self.filterBaseTag(soup, current) 
     
    376390                if back.has_key('href'): 
    377391                    back['href'] = current.replace('image_view_fullscreen.html', 'view.html') 
     392 
    378393    def getDocumentLinks(self, soup): 
    379394        tags = soup.findAll('a') + soup.findAll('link') 
Note: See TracChangeset for help on using the changeset viewer.