Note: An alternative skin, TW4MW (work in progress), is available from the user preferences.

Dev:Server Adaptor Mechanism

TiddlyWiki Community Wiki

(Redirected from Dev:Adaptors)
Jump to: navigation, search
This page's contents need to be reviewed and/or refactored to comply with TiddlyWiki.org's quality standards.
Please improve the article, or discuss the issue on the talk page.
This page is to be merged with Dev:ServerAdaptorMechanism.

As of TiddlyWiki v2.4.1, there is a BaseAdaptor class which provides much of the basic functionality. The current documentation has not been updated to reflect this yet.

Server adaptors are designed to use a familiar model akin to a device driver, adapting a standardized interface to whatever is required by the underlying server: WebDAV, ZiddlyWiki, MediaWiki, Socialtext or HTML scraping.

Many server architectures are REST based, and TiddlyWiki server adaptors are particularly easy to create for common REST patterns. It is also possible to create TiddlyWiki server adaptors for servers with an XML-RPC interface.

Server adaptors are registered by name in the global object config.adaptors. Each entry is a reference to an object constructor for that type of server adaptor. The adaptor object must implement the following methods:

Additionally the adaptor may implement the following methods:

The adaptor object is used through the life of a connection to a server; see ServerAdaptorConcepts for details. Many of the methods use an AsynchronousPattern of callbacks to deliver their results.

Custom formatters for the WikifierFormatterMechanism are often used alongside server adaptors to allow TiddlyWiki to display content in the native format of a server.

[edit] See Also

Personal tools