No activity today, make something!
tiddlyweb SerializationInterface

20160313160645 cdent  

Something that implements the SerializationInterface is a serializer. The interface is described in a (mostly) abstract class in tiddlyweb/serializations/__init__.py.

The interface has the following methods. If you choose not to implement one, calling code that tries to use that method will cause a {{{NoSerialzationError}}} to be raised. //This is okay,// some serializations will not need to serialize some entities.

{{{ def recipe_as(self, recipe): def as_recipe(self, recipe, input_string): def bag_as(self, bag): def as_bag(self, bag, input_string): def tiddler_as(self, tiddler): def as_tiddler(self, tiddler, input_string): def list_tiddlers(self, bag): def list_recipes(self, recipes): def list_bags(self, bags): }}}

For more information try {{{pydoc tiddlyweb.serializations}}} from your terminal.

See also: * How do I write a custom serializer?