Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install tiddlywebplugins.form

How to install tiddlywebplugins.form

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install tiddlywebplugins.form
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.7
0.10Never BuiltWhy not?
0.7 Available View build log
0.6 Available View build log
0.5 Available View build log
0.4 Available View build log
0.3 Available View build log
dev Available View build log
Windows (64-bit)
0.7
0.10Never BuiltWhy not?
0.7 Available View build log
0.6 Available View build log
0.5 Available View build log
0.4 Available View build log
0.3 Available View build log
dev Available View build log
Mac OS X (10.5+)
0.10 Available View build log
0.7 Available View build log
0.6 Available View build log
0.5 Available View build log
0.4 Available View build log
0.3 Available View build log
dev Available View build log
Linux (32-bit)
0.10 Available View build log
0.7 Available View build log
0.6 Available View build log
0.5 Available View build log
0.4 Available View build log
0.3 Available View build log
dev Available View build log
Linux (64-bit)
0.10 Available View build log
0.7 Available View build log
0.6 Available View build log
0.5 Available View build log
0.4 Available View build log
0.3 Available View build log
dev Available View build log
 
Author
Lastest release
version 0.10 on Jun 26th, 2013

tiddlywebplugins.form

Provides a Serializer to transform HTML form-data into an object that can be put into the store.

Also adds POST support to the standard set of URLs and support for uploading binary files.

URLs with POST support are:

/bags/foo/tiddlers /recipes/foo/tiddlers

To use, add tiddlywebplugins.form to your system_plugins in tiddlywebconfig.py.

You can then POST tiddlers to the server as follows:

  1. set up an HTML form with any named elements. Supported names include:

    title - tiddler.title (this is optional and, depends upon which URL you POST to. Additionally, if you POST to /bags/foo/tiddlers without a title, you will get a UUID title instead). text - tiddler.text tags - tiddler.tags (this can be a list (eg checkboxes), or a string formatted as per standard TiddlyWiki tags). created - tiddler.created modified - tiddler.modified file - this is a special case and represents a binary file so must take the form of an HTML <input type="file" /> tag. If this is specified, you may include tags and a title, but anything else will be ignored.

  2. Content type (enctype attribute in HTML form lingo) of the form must be either appilcation/x-www-form-urlencoded or multipart/form-data (if uploading a binary file)

  3. POST the form (ie - set the method to POST) to one of the above URLs (ie - set the action attribute), replacing foo as required.

  4. Optionally specificy a redirect to redirect to a different page.

Example Usage:

say you want to POST a new tiddler to the bag "common", you might include the following HTML:

<form action="/bags/common/tiddlers" method="POST"> <input type="text" name="title" value="New Tiddler" /> <textarea name="text" rows="5" cols="40"></textarea> <input type="text" name="tags" /> <input type="submit" value="Save" /> </form>

Alternatively, you may want to upload a binary file to the bag "common":

<form action="/bags/common/tiddlers" method="POST" enctype="multipart/form-data"> <input type="file" name="file" /> <input type="submit" value="Upload" /> </form>

There is also a Binary Upload Plugin for TiddlyWiki designed specifically to work with tiddlyweplugins.form. You can find it at http://svn.tiddlywiki.org/Trunk/contributors/BenGillies/TiddlyWeb/Plugins/Binary/tiddlers/BinaryUploadPlugin.tid

You can find the source code at https://github.com/bengillies/tiddlywebplugins.form

Subscribe to package updates

Last updated Jun 26th, 2013

Download Stats

Last month:6

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.