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

Issue 6458126: Add 'Safe Draft' and 'Publish' buttons on BlogEntry item's ModifyForm. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by spy
Modified:
12 years, 3 months ago
Reviewers:
Reimar Bauer
Visibility:
Public.

Description

Add 'Safe Draft' and 'Publish' buttons on BlogEntry item's ModifyForm.

Patch Set 1 #

Total comments: 4

Patch Set 2 : preload ptime with the current datetime #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -3 lines) Patch
M MoinMoin/forms.py View 1 1 chunk +1 line, -1 line 0 comments Download
M MoinMoin/items/__init__.py View 1 4 chunks +32 lines, -2 lines 0 comments Download
A MoinMoin/templates/modify_blog_entry.html View 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 2
Reimar Bauer
some comment http://codereview.appspot.com/6458126/diff/1/MoinMoin/forms.py File MoinMoin/forms.py (right): http://codereview.appspot.com/6458126/diff/1/MoinMoin/forms.py#newcode139 MoinMoin/forms.py:139: DateTime = (DateTimeUNIX.with_properties(widget=WIDGET_DATETIME, placeholder=_("YYYY-MM-DD HH:MM:SS"), helper=_("example: 2999-12-31 ...
12 years, 3 months ago (2012-08-14 05:20:01 UTC) #1
spy
12 years, 3 months ago (2012-08-14 09:16:05 UTC) #2
http://codereview.appspot.com/6458126/diff/1/MoinMoin/forms.py
File MoinMoin/forms.py (right):

http://codereview.appspot.com/6458126/diff/1/MoinMoin/forms.py#newcode139
MoinMoin/forms.py:139: DateTime =
(DateTimeUNIX.with_properties(widget=WIDGET_DATETIME, placeholder=_("YYYY-MM-DD
HH:MM:SS"), helper=_("example: 2999-12-31 23:59:59"))
On 2012/08/14 05:20:01, Reimar Bauer wrote:
> I would add a realistic example e.g. current year + 1
> e.g. 2013-12-31 23:59:59

okay :)

http://codereview.appspot.com/6458126/diff/1/MoinMoin/templates/common.js
File MoinMoin/templates/common.js (right):

http://codereview.appspot.com/6458126/diff/1/MoinMoin/templates/common.js#new...
MoinMoin/templates/common.js:501: now.getUTCMonth() + 1,
On 2012/08/14 05:20:01, Reimar Bauer wrote:
> why + 1 ?

"The getMonth() method returns the month (from 0 to 11) for the specified date,
according to local time."

Perhaps it helps to work with drop-down lists of months.
Sign in to reply to this message.

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