Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(659)

Issue 6344080: plugin system experimental work

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by Maiku Mori
Modified:
11 years, 9 months ago
Reviewers:
thomas.j.waldmann, Reimar Bauer
Visibility:
Public.

Description

plugin system experimental work

Patch Set 1 #

Total comments: 21

Patch Set 2 : Changes according to suggestions and small bugfixes. #

Total comments: 11

Patch Set 3 : Slightly hacky theme implementation. #

Total comments: 31

Patch Set 4 : Now it should fully work and also contains most of the suggestions from the last review. #

Total comments: 37

Patch Set 5 : Minor changes. #

Total comments: 3

Patch Set 6 : Minor changes #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M MoinMoin/plugin.py View 1 2 3 4 5 1 chunk +1 line, -1 line 2 comments Download
M MoinMoin/themes/__init__.py View 1 2 3 4 5 2 chunks +11 lines, -1 line 6 comments Download

Messages

Total messages: 18
Reimar Bauer
some comments http://codereview.appspot.com/6344080/diff/1/MoinMoin/app.py File MoinMoin/app.py (right): http://codereview.appspot.com/6344080/diff/1/MoinMoin/app.py#newcode38 MoinMoin/app.py:38: from MoinMoin import plugin should be moved ...
11 years, 10 months ago (2012-07-04 14:30:25 UTC) #1
Maiku Mori
http://codereview.appspot.com/6344080/diff/1/MoinMoin/plugin.py File MoinMoin/plugin.py (right): http://codereview.appspot.com/6344080/diff/1/MoinMoin/plugin.py#newcode14 MoinMoin/plugin.py:14: from MoinMoin import log On 2012/07/04 14:30:25, Reimar Bauer ...
11 years, 10 months ago (2012-07-04 14:43:03 UTC) #2
ThomasJWaldmann
http://codereview.appspot.com/6344080/diff/1/MoinMoin/_tests/test_plugin.py File MoinMoin/_tests/test_plugin.py (right): http://codereview.appspot.com/6344080/diff/1/MoinMoin/_tests/test_plugin.py#newcode1 MoinMoin/_tests/test_plugin.py:1: # Copyright: 2012 MoinMoin:Miks Kalniņš <mikskalnins@maikumori.com> if possible, keep ...
11 years, 10 months ago (2012-07-05 12:14:54 UTC) #3
Maiku Mori
http://codereview.appspot.com/6344080/diff/1007/MoinMoin/_tests/test_plugin.py File MoinMoin/_tests/test_plugin.py (left): http://codereview.appspot.com/6344080/diff/1007/MoinMoin/_tests/test_plugin.py#oldcode26 MoinMoin/_tests/test_plugin.py:26: pytest.importorskip("ExampleMoinPlugin") Once we have some inbuilt plugins, this won't ...
11 years, 10 months ago (2012-07-05 14:18:51 UTC) #4
Maiku Mori
http://codereview.appspot.com/6344080/diff/1007/contrib/ExamplePlugin/ExampleMoinPlugin/__init__.py File contrib/ExamplePlugin/ExampleMoinPlugin/__init__.py (left): http://codereview.appspot.com/6344080/diff/1007/contrib/ExamplePlugin/ExampleMoinPlugin/__init__.py#oldcode15 contrib/ExamplePlugin/ExampleMoinPlugin/__init__.py:15: def author(self): forgot to change these, they're already changed ...
11 years, 10 months ago (2012-07-05 14:22:32 UTC) #5
ThomasJWaldmann
http://codereview.appspot.com/6344080/diff/1007/MoinMoin/_tests/test_plugin.py File MoinMoin/_tests/test_plugin.py (right): http://codereview.appspot.com/6344080/diff/1007/MoinMoin/_tests/test_plugin.py#newcode17 MoinMoin/_tests/test_plugin.py:17: description = "Test Plugin." unicode? http://codereview.appspot.com/6344080/diff/1007/MoinMoin/config/default.py File MoinMoin/config/default.py (right): ...
11 years, 10 months ago (2012-07-05 15:02:10 UTC) #6
Maiku Mori
http://codereview.appspot.com/6344080/diff/11001/MoinMoin/app.py File MoinMoin/app.py (right): http://codereview.appspot.com/6344080/diff/11001/MoinMoin/app.py#newcode151 MoinMoin/app.py:151: loaders.append(app.jinja_env.loader) Reading this again and something is wrong here, ...
11 years, 10 months ago (2012-07-06 09:10:29 UTC) #7
ThomasJWaldmann
http://codereview.appspot.com/6344080/diff/11001/MoinMoin/app.py File MoinMoin/app.py (right): http://codereview.appspot.com/6344080/diff/11001/MoinMoin/app.py#newcode105 MoinMoin/app.py:105: logging.info("Plugins initialized: {0}".format(", ".join(app.initialized_plugins.keys()))) is .keys() needed here? http://codereview.appspot.com/6344080/diff/11001/MoinMoin/app.py#newcode151 ...
11 years, 10 months ago (2012-07-06 10:58:47 UTC) #8
Maiku Mori
http://codereview.appspot.com/6344080/diff/11001/MoinMoin/plugin.py File MoinMoin/plugin.py (right): http://codereview.appspot.com/6344080/diff/11001/MoinMoin/plugin.py#newcode145 MoinMoin/plugin.py:145: # ExampleMoinPlugin.SomeModule.SomePlugin -> ExampleMoinPlugin On 2012/07/06 10:58:47, ThomasJWaldmann wrote: ...
11 years, 10 months ago (2012-07-06 13:19:18 UTC) #9
Maiku Mori
http://codereview.appspot.com/6344080/diff/2004/MoinMoin/auth/__init__.py File MoinMoin/auth/__init__.py (right): http://codereview.appspot.com/6344080/diff/2004/MoinMoin/auth/__init__.py#newcode448 MoinMoin/auth/__init__.py:448: # logging.debug("session started for user {0!r}".format(userobj)) This is not ...
11 years, 10 months ago (2012-07-06 13:25:40 UTC) #10
ThomasJWaldmann
http://codereview.appspot.com/6344080/diff/2004/MoinMoin/auth/__init__.py File MoinMoin/auth/__init__.py (right): http://codereview.appspot.com/6344080/diff/2004/MoinMoin/auth/__init__.py#newcode448 MoinMoin/auth/__init__.py:448: # logging.debug("session started for user {0!r}".format(userobj)) ok, just don't ...
11 years, 10 months ago (2012-07-11 08:42:23 UTC) #11
Maiku Mori
http://codereview.appspot.com/6344080/diff/11001/MoinMoin/themes/__init__.py File MoinMoin/themes/__init__.py (right): http://codereview.appspot.com/6344080/diff/11001/MoinMoin/themes/__init__.py#newcode83 MoinMoin/themes/__init__.py:83: def global_theme_template(ctx, templatename, fallback=True): On 2012/07/06 10:58:47, ThomasJWaldmann wrote: ...
11 years, 10 months ago (2012-07-11 10:29:32 UTC) #12
ThomasJWaldmann
http://codereview.appspot.com/6344080/diff/2004/MoinMoin/themes/__init__.py File MoinMoin/themes/__init__.py (right): http://codereview.appspot.com/6344080/diff/2004/MoinMoin/themes/__init__.py#newcode43 MoinMoin/themes/__init__.py:43: template = template[8:] I still don't understand the difference ...
11 years, 10 months ago (2012-07-11 13:31:04 UTC) #13
Maiku Mori
http://codereview.appspot.com/6344080/diff/2004/MoinMoin/themes/__init__.py File MoinMoin/themes/__init__.py (right): http://codereview.appspot.com/6344080/diff/2004/MoinMoin/themes/__init__.py#newcode43 MoinMoin/themes/__init__.py:43: template = template[8:] On 2012/07/11 13:31:04, ThomasJWaldmann wrote: > ...
11 years, 10 months ago (2012-07-12 19:48:52 UTC) #14
ThomasJWaldmann
http://codereview.appspot.com/6344080/diff/2004/MoinMoin/plugin.py File MoinMoin/plugin.py (right): http://codereview.appspot.com/6344080/diff/2004/MoinMoin/plugin.py#newcode131 MoinMoin/plugin.py:131: # Before we only took leaves which means there ...
11 years, 9 months ago (2012-07-31 19:38:39 UTC) #15
Maiku Mori
http://codereview.appspot.com/6344080/diff/2004/MoinMoin/plugin.py File MoinMoin/plugin.py (right): http://codereview.appspot.com/6344080/diff/2004/MoinMoin/plugin.py#newcode48 MoinMoin/plugin.py:48: path = os.path.dirname(os.path.abspath(sys.modules[self.__class__.__module__].__file__)) On 2012/07/11 08:42:23, ThomasJWaldmann wrote: > ...
11 years, 9 months ago (2012-08-01 13:00:31 UTC) #16
ThomasJWaldmann
http://codereview.appspot.com/6344080/diff/19001/MoinMoin/plugin.py File MoinMoin/plugin.py (right): http://codereview.appspot.com/6344080/diff/19001/MoinMoin/plugin.py#newcode130 MoinMoin/plugin.py:130: # XXX: This potentialy has problems. "potentially" what are ...
11 years, 9 months ago (2012-08-01 13:59:21 UTC) #17
Maiku Mori
11 years, 9 months ago (2012-08-02 16:48:35 UTC) #18
http://codereview.appspot.com/6344080/diff/19001/MoinMoin/plugin.py
File MoinMoin/plugin.py (right):

http://codereview.appspot.com/6344080/diff/19001/MoinMoin/plugin.py#newcode130
MoinMoin/plugin.py:130: # XXX: This potentialy has problems.
On 2012/08/01 13:59:21, ThomasJWaldmann wrote:
> "potentially"
> what are the problems? the stuff described below or anything else?
Yes, those described below.

http://codereview.appspot.com/6344080/diff/19001/MoinMoin/themes/__init__.py
File MoinMoin/themes/__init__.py (right):

http://codereview.appspot.com/6344080/diff/19001/MoinMoin/themes/__init__.py#...
MoinMoin/themes/__init__.py:41: Supports two ways of refering to templates:
On 2012/08/01 13:59:21, ThomasJWaldmann wrote:
> "referring" (this is not the W3C :D ).

Done.

http://codereview.appspot.com/6344080/diff/19001/MoinMoin/themes/__init__.py#...
MoinMoin/themes/__init__.py:44: - You can link directly to the theme template
using string such as
On 2012/08/01 13:59:21, ThomasJWaldmann wrote:
> using a string

Done.

http://codereview.appspot.com/6344080/diff/19001/MoinMoin/themes/__init__.py#...
MoinMoin/themes/__init__.py:46: even if user has different template selected.
On 2012/08/01 13:59:21, ThomasJWaldmann wrote:
> if the user has a ...

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b