Editing this page in the 'vim' editor
This Python program can create new pages,
edit existing pages, and upload files to
an Aether blog. It doesn't require
access to the filesystem, but does
everything through the regular HTTP
interface.
Requirements: Python 2.3 or better (for tempfile.mkstemp) and ClientForm 0.1.17 or better. (Earlier versions may appear to work, but some have problems when the page contains certain characters)
Usage:
- python aether.py page
- Edit page in your $EDITOR. Each time the file is
written, it is previewed in the browser. When you're satisfied with the
results, click the "save" button in the browser.
- python aether.py -n blogpage
- Edit a new blog entry for the blog at blogpage. Works just like the above, except for automatically choosing the number for the new blog entry.
- python aether.py -u page localfile...
- python aether.py -u page remotefile=localfile...
- Upload localfile, optionally renaming it to
remotefile (which should not contain any "/" characters, if it is specified).
remotefile defaults to the basename of localfile.
To specify the location of your aether website, use the -r (aether root)
commandline option, or edit the AETHER_TOP assignment near the top of this script.
Bugs:
- Because pages are uploaded using GET URLs passed on the Unix commandline to firefox, the password is visible to local users who can run ps
- Because pages are uploaded using GET URLs passed on the Unix commandline to firefox, there is a limit on the size of a page that can be edited
Files currently attached to this page: