comparison myrss/myrss_app.py @ 113:4d3f845c4ef2

cs: update cookies.js, set domain and secure cookie parameters
author paulo
date Mon, 03 Aug 2020 01:45:23 -0600
parents e2817e789895
children
comparison
equal deleted inserted replaced
14:6a023f65511a 15:89d08b5480ec
27 27
28 CACHE_LIFE = 1200 # [seconds] 28 CACHE_LIFE = 1200 # [seconds]
29 MAX_ITEMS = 50 29 MAX_ITEMS = 50
30 MAX_LINK_Z = 4 30 MAX_LINK_Z = 4
31 MAX_THREADS = 20 31 MAX_THREADS = 20
32 URLOPEN_TIMEOUT = 60 # [seconds] 32 URLOPEN_TIMEOUT = 10 # [seconds]
33 33
34 34
35 _PARSE_ROOT_TAG_RE = re.compile(r"(\{(.+)\})?(.+)") 35 _PARSE_ROOT_TAG_RE = re.compile(r"(\{(.+)\})?(.+)")
36 36
37 def _parse_root_tag(root_tag): 37 def _parse_root_tag(root_tag):
257 257
258 ret = _to_html(dtnow, docstruct) 258 ret = _to_html(dtnow, docstruct)
259 259
260 with open(CACHE_HTML_FILE, 'w') as cache_html_file: 260 with open(CACHE_HTML_FILE, 'w') as cache_html_file:
261 cache_html_file.write(ret) 261 cache_html_file.write(ret)
262 logging.debug("main() ended")
262 263
263 return ret 264 return ret
264 265
265 266
266 class MyRssApp: 267 class MyRssApp: