Commit Graph

14 Commits

Author SHA1 Message Date
Benjamin Peterson 90f5ba538b convert shebang lines: python -> python3 2010-03-11 22:53:45 +00:00
Skip Montanaro 1e8ce58f5d remove most uses of list(somedict.keys()) in Demo scripts 2007-08-06 21:07:53 +00:00
Collin Winter 6f2df4d5e1 Run 2to3 over the Demo/ directory to shut up parse errors from 2to3 about lingering print statements. 2007-07-17 20:59:35 +00:00
Guido van Rossum b940e113bf SF patch 1631942 by Collin Winter:
(a) "except E, V" -> "except E as V"
(b) V is now limited to a simple name (local variable)
(c) V is now deleted at the end of the except block
2007-01-10 16:19:56 +00:00
Guido van Rossum cc44ccccb2 Add description of what's here. 2002-10-18 15:35:42 +00:00
Guido van Rossum 154c08894b Refactor cmd_view(): move line formatting to a helper method. 2002-10-17 21:43:47 +00:00
Guido van Rossum 9c3848b39b In cmd_create(), use a redirect directive instead of viewing the page;
this avoids resubmitting POST data.

Remove redundant 'Page' from label passed from cmd_new().
2002-10-17 21:41:42 +00:00
Guido van Rossum 3296dcc65d Remove redundant load() call. 2002-10-17 19:30:39 +00:00
Guido van Rossum a55dda6773 Grammar repair in comment. 2002-10-17 16:33:40 +00:00
Guido van Rossum c9776bd8dd Use tempfile.gettempdir() to get the temp directory rather than
hardcoding "/tmp".
2002-10-17 16:26:45 +00:00
Guido van Rossum f66cccf506 Restructure: move all wiki code into a separate module. 2002-10-17 15:53:02 +00:00
Guido van Rossum 26a1ac462c Add trailing newline when saving. 2002-10-17 13:34:01 +00:00
Guido van Rossum 48123b266c Security fixes: reject non-wiki-word page names; set homedir to /tmp.
Show errors returned by store().

A few nits.
2002-10-17 11:45:54 +00:00
Guido van Rossum 68077210c2 Some really simple cgi examples. cgi3 is a MiniWiki. 2002-10-16 21:01:27 +00:00