answered 22:31 < spy> dreimark: do you have any ideas on http://codereview.appspot.com/6307082/diff/1/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): ...
12 years, 5 months ago
(2012-06-13 06:00:00 UTC)
#2
some more comments http://codereview.appspot.com/6307082/diff/14001/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): http://codereview.appspot.com/6307082/diff/14001/MoinMoin/apps/frontend/views.py#newcode485 MoinMoin/apps/frontend/views.py:485: # We only want the sub-item ...
12 years, 5 months ago
(2012-06-17 22:42:38 UTC)
#3
http://codereview.appspot.com/6307082/diff/14001/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): http://codereview.appspot.com/6307082/diff/14001/MoinMoin/apps/frontend/views.py#newcode485 MoinMoin/apps/frontend/views.py:485: # We only want the sub-item part of the ...
12 years, 5 months ago
(2012-06-17 22:53:01 UTC)
#4
a comment http://codereview.appspot.com/6307082/diff/10004/MoinMoin/templates/blog.html File MoinMoin/templates/blog.html (right): http://codereview.appspot.com/6307082/diff/10004/MoinMoin/templates/blog.html#newcode25 MoinMoin/templates/blog.html:25: <ul class="moin-post-tags"> why is for div and ...
12 years, 5 months ago
(2012-06-19 06:07:23 UTC)
#5
12 years, 5 months ago
(2012-06-19 21:09:44 UTC)
#9
Thanks, fixed.
http://codereview.appspot.com/6307082/diff/10004/MoinMoin/apps/frontend/views.py
File MoinMoin/apps/frontend/views.py (right):
http://codereview.appspot.com/6307082/diff/10004/MoinMoin/apps/frontend/views...
MoinMoin/apps/frontend/views.py:465:
@frontend.route('/+blog/<itemname:item_name>', defaults=dict(rev=CURRENT))
On 2012/06/19 20:49:46, Reimar Bauer wrote:
> On 2012/06/19 19:50:32, spy wrote:
> > On 2012/06/19 10:51:45, Reimar Bauer wrote:
> > > which methods ?
> >
> > Sorry, did not understand what you mean...
>
> Is it GET or POST or both together.
>
> You can have a keyword methods for the route, look at others
>
>
Currently we need only GET method, thus added methods=['GET'] parameter.
some comments http://codereview.appspot.com/6307082/diff/23001/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): http://codereview.appspot.com/6307082/diff/23001/MoinMoin/apps/frontend/views.py#newcode486 MoinMoin/apps/frontend/views.py:486: title_name=item.name, where is title_name used in the ...
12 years, 4 months ago
(2012-07-04 04:53:19 UTC)
#11
Reply on comments about 'title_name' http://codereview.appspot.com/6307082/diff/23001/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): http://codereview.appspot.com/6307082/diff/23001/MoinMoin/apps/frontend/views.py#newcode486 MoinMoin/apps/frontend/views.py:486: title_name=item.name, On 2012/07/04 04:53:19, ...
12 years, 4 months ago
(2012-07-04 17:29:07 UTC)
#12
Reply on comments about 'title_name'
http://codereview.appspot.com/6307082/diff/23001/MoinMoin/apps/frontend/views.py
File MoinMoin/apps/frontend/views.py (right):
http://codereview.appspot.com/6307082/diff/23001/MoinMoin/apps/frontend/views...
MoinMoin/apps/frontend/views.py:486: title_name=item.name,
On 2012/07/04 04:53:19, Reimar Bauer wrote:
> where is title_name used in the template
>
> What is the reason to rename item_name?
title_name is used in the base.html template as a title of a page.
item=item, item_name=item.name is used in almost all other templates where we
deal with only one item. But if you look at those templates such as +search,
+history, +index, etc where there are many items to represent on a page you can
find that title_name is used to specify the title of a page. In my views +post
and +blog there are many items used to represent on a page. That is why I wrote
my code in such a way.
http://codereview.appspot.com/6307082/diff/23001/MoinMoin/apps/frontend/views...
MoinMoin/apps/frontend/views.py:508: title_name=item.name,
On 2012/07/04 04:53:19, Reimar Bauer wrote:
> Why not item_name, I think we have that in all other templates used. So the
name
> can be constant?
Look at the previous comment ^
> we have a cfg.supplementation_item_names = [u'Discussion', ] it is used in the > itemviews ...
12 years, 4 months ago
(2012-07-06 20:53:24 UTC)
#15
> we have a cfg.supplementation_item_names = [u'Discussion', ] it is used in the
> itemviews listing. How could I use this list of names in our case? I guess
there
> may be multiple names in this list.
Use cfg.supplementation_item_names[0] for now. I guess we need something better
there, but [0] is still better than hardcoding it likely.
Issue 6307082: Simple blog view and template
(Closed)
Created 12 years, 5 months ago by spy
Modified 12 years, 4 months ago
Reviewers: thomas.j.waldmann_googlemail.com, Reimar Bauer, ThomasJWaldmann
Base URL:
Comments: 37