Changeset 370
- Timestamp:
- 07/13/09 10:29:10 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
enpraxis.staticsite/trunk/enpraxis/staticsite/utilities/staticsiteutility.py
r366 r370 194 194 soup = BeautifulSoup(raw) 195 195 self.deployDocumentActions(portal, aurl, dpath, soup, ssprops) 196 self.deployNonActionNonHTMLViews(portal, aurl, dpath, soup, ssprops) 196 197 if isFolderish: 197 198 curl = aurl + '/index.html' … … 245 246 self._writeFile(mpath, body) 246 247 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 247 261 def runDocumentFilters(self, portal, current, soup, ssprops): 248 262 self.filterBaseTag(soup, current) … … 376 390 if back.has_key('href'): 377 391 back['href'] = current.replace('image_view_fullscreen.html', 'view.html') 392 378 393 def getDocumentLinks(self, soup): 379 394 tags = soup.findAll('a') + soup.findAll('link')
Note: See TracChangeset
for help on using the changeset viewer.
