Saturday, July 23, 2005

posting and TKCS

The TKCS database that the Wiki is implemented over has quite a bit of metadata about the various properties that are used. Enough so that a destroy operation is entirely generic--the metadata determines which sub-files (nodes) get destroyed in turn and which are niether part of nor dependent on the item being destroyed. This same metadata is sufficient to implement a Wiki post operation.

Now I never implemented a copy operation at the TKCS level because of a problem with file names. Within each TKCS directory, files had to have unique names. So when copying a structure, all the sub-files also had to have unique names. But this is not a problem with posting at the Wiki level because all the TKCS files used to implement a Wiki item have randomly assigned file names. (And there is no need to give the new item a different WikiName.)

Posting will apply to every usage except Ark. However, a post operation will only copy present values, not past state.

A post operation will have two phases:
  1. The item being posted is copied.
  2. The new item is added to the designated Ark, Cabinet, Drawer, Folder, Page or LSec.

There are also some future considerations, going forward:

  • Usage may change. For example, a Remark may be posted as an LSec or Page.
  • Type may change during a posting operation.

0 Comments:

Post a Comment

<< Home