Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 17817001: Simple CMS as Anwiki replacement (Closed)

Created:
Oct. 23, 2013, 1:52 p.m. by Wladimir Palant
Modified:
Nov. 5, 2013, 11:38 a.m.
Visibility:
Public.

Description

See https://hg.adblockplus.org/wwwnew/file/ for the source data this is intended to work on. Currently it can process pages specified in Markdown (slightly extended to allow specifying page-specific parameters) or Jinja2 formats. Unfortunately, Markdown source isn`t very readable with the localizable strings removed. In addition, this will also process static files, both of the localized and unlocalized variety. What`s currently missing is code reuse (includes) which is required to support some of the more complicated pages, especially the home page. There are two scripts here: generate_static_pages.py converts an entire repository into static files (intended to be run on the server regularly), test_server.py provides a web server for testing that operates on a directory - you can edit the files and see your changes apply immediately.

Patch Set 1 #

Patch Set 2 : Various improvements #

Patch Set 3 : Completed functionality #

Total comments: 19

Patch Set 4 : Addressed comments and improved localization #

Patch Set 5 : Fixed MIME type #

Unified diffs Side-by-side diffs Delta from patch set Stats (+706 lines, --2 lines) Patch
A sitescripts/web/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A sitescripts/web/bin/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A sitescripts/web/bin/generate_static_pages.py View 1 2 3 1 chunk +98 lines, -0 lines 0 comments Download
A sitescripts/web/bin/test_server.py View 1 2 3 4 1 chunk +77 lines, -0 lines 0 comments Download
A sitescripts/web/converters.py View 1 2 3 1 chunk +226 lines, -0 lines 0 comments Download
A sitescripts/web/sources.py View 1 2 3 1 chunk +253 lines, -0 lines 0 comments Download
A sitescripts/web/utils.py View 1 2 1 chunk +54 lines, -0 lines 0 comments Download

Messages

Total messages: 12
Wladimir Palant
Oct. 23, 2013, 1:52 p.m. (2013-10-23 13:52:55 UTC) #1
Wladimir Palant
Various improvements
Oct. 24, 2013, 11:42 a.m. (2013-10-24 11:42:20 UTC) #2
Wladimir Palant
A bunch of improvements in the new revision: * Implemented "raw" format (mostly unprocessed HTML ...
Oct. 24, 2013, 11:49 a.m. (2013-10-24 11:49:59 UTC) #3
Wladimir Palant
Completed functionality
Oct. 24, 2013, 9:32 p.m. (2013-10-24 21:32:01 UTC) #4
Wladimir Palant
As far as I am concerned, all the necessary functionality is there now (minus our ...
Oct. 24, 2013, 9:41 p.m. (2013-10-24 21:41:52 UTC) #5
Wladimir Palant
Note that everything is documented under https://hg.adblockplus.org/wwwnew/file/tip/README.md now. The repository also contains more examples now.
Oct. 24, 2013, 9:44 p.m. (2013-10-24 21:44:35 UTC) #6
Sebastian Noack
http://codereview.adblockplus.org/17817001/diff/140001/sitescripts/web/bin/generate_static_pages.py File sitescripts/web/bin/generate_static_pages.py (right): http://codereview.adblockplus.org/17817001/diff/140001/sitescripts/web/bin/generate_static_pages.py#newcode42 sitescripts/web/bin/generate_static_pages.py:42: pass I would check if we got EEXIST here ...
Oct. 29, 2013, 11:04 a.m. (2013-10-29 11:04:17 UTC) #7
Wladimir Palant
All comments should be addressed unless noted otherwise. A few additional changes I've implemented: * ...
Nov. 4, 2013, 9:49 a.m. (2013-11-04 09:49:21 UTC) #8
Sebastian Noack
http://codereview.adblockplus.org/17817001/diff/140001/sitescripts/web/bin/generate_static_pages.py File sitescripts/web/bin/generate_static_pages.py (right): http://codereview.adblockplus.org/17817001/diff/140001/sitescripts/web/bin/generate_static_pages.py#newcode55 sitescripts/web/bin/generate_static_pages.py:55: pagedata = re.sub(r'(<script\s[^<>]*\bsrc="/[^"<>]+)', r"\1?%s" % source.version, pagedata) On 2013/11/04 ...
Nov. 4, 2013, 1:28 p.m. (2013-11-04 13:28:18 UTC) #9
Wladimir Palant
Fixed MIME type
Nov. 4, 2013, 4:11 p.m. (2013-11-04 16:11:04 UTC) #10
Wladimir Palant
http://codereview.adblockplus.org/17817001/diff/140001/sitescripts/web/bin/test_server.py File sitescripts/web/bin/test_server.py (right): http://codereview.adblockplus.org/17817001/diff/140001/sitescripts/web/bin/test_server.py#newcode55 sitescripts/web/bin/test_server.py:55: mime = "text/js; charset=utf-8" On 2013/11/04 13:28:18, sebastian wrote: ...
Nov. 4, 2013, 4:11 p.m. (2013-11-04 16:11:35 UTC) #11
Sebastian Noack
Nov. 5, 2013, 11:36 a.m. (2013-11-05 11:36:31 UTC) #12
LGTM

Powered by Google App Engine
This is Rietveld