ItemNotes

Here are some notes on the new item refactoring:

I'm writing some general-purpose routines to support managing content from multiple locations, in multiple formats.

location [edit section]

A tbwiki "item" is a logical unit of the wiki, and can be one of the following:

A page is a whole file. A block is an item inside a file, defined by the triple-brace syntax. A section is an item inside a file, defined by the header syntax. A row is something that can be inside a page, block, or section. This is used to express moin table rows. A field can be a single-line entry appearing on a page, and defined by the definition list syntax.

content_format [edit section]

Each item is expressed in the raw text in a format:

item_class [edit section]

A new set of routines is supposed to replace all previous access and update routines for content, and allow different systems to access data items in the wiki in a uniform manner. The different systems that need to access the items are:

The idea is that items are addressable with a uniform resource string.

item_class routines [edit section]

Here are the functions supported by the new item_class:

internal helper routines:

example uses [edit section]