NewPageOnly
Description
Based on newpage.py for [[NewPage]], new features: Page Existence Check, whitespace removal + auto CamelCase Translation, and Not returning to refereer after Save. (can be used by NewPage macro or subclassing from it).
Version History
Action |
Author |
Designed for MoinMoin Release... |
|
HenryHo |
<henryho167 AT hotmail DOT com> |
1.3(.4) |
Comments
- Auto camel casing is a bad idea, you should not change the user data behind the back. If you really want to do this, it can be done by one line, like
>>> 'word word'.title().replace(' ', '') 'WordWord'
- If a page exists, it make more sense to visit it or open it for editing, not returning an error message.