Recent Changes - Search:

Home Pages Pidgin   Azarennya (S|N) Mac Textanium Reference ToDo Food Local Edit

Local: Hide

Language: Hide

Fantasy: Hide

SciFi: Hide

Film: Hide

Music: Hide

REALbasic: Hide

ResourcesGarageUniversityWebRingForums:REALElfDataPlugins and Code:BKeeneyDeclareSubEinhugurJoeRestrepoTempelmannZAZ

Coding: Hide

Forums:PowWebPHPWebmasterCodingWalkersPerlIntroMonksPHPJavaScriptToolboxUnobtrusiveJavaScriptJavaScriptCompressorRegularExpressions (test)JSLintSQLCocoaCocoaBuilderCocoaDevCocoaLabAppleScriptBBSUserlandFaqintoshFileMakerFileMakerTipsFileMakerWorldFileMakerPlugins

Science: Hide

History: Hide

1421

News/Politics: Hide

Cults/Crime: Hide

ClambakeInfidels

Miscellaneous: Hide

SaveProcess

The system has to do the following when saving an entry:

  • Save the new version of the entry.
    • First, save the new version as an entry in the log file. The entry should be marked as "in progress". The original entry file must not be overwritten until this is done.
    • Create the subfolder within the "Entries" folder if it doesn't exist. The subfolder's name is the first three characters of the entry name (set to lowercase).
    • Save the new version of the entry into the file (the filename is the entry name plus the extension ".txt").
    • Update the log entry: Mark it as "file saved, writing indexes".
  • Update date indexes.
    • Add entry name and timestamp to "created" index (if creating entry).
    • Remove entry name and timestamp from "modified" index (if not creating).
    • Add entry name and new timestamp to "modified" index.
  • Update tag indexes.
    • The editor received the old version of the entry when it was loaded, so the editor passed the old version on to the "save" routine.
    • The old and new versions must be compared to find the tags that were added and those that were removed.
    • Add the entry name to the index of each added tag.
    • Remove the entry name from the index of each removed tag.
  • Modify calendar if necessary. If the entry has "to-do" or "due-by" or other calendar fields, update the calendar with links to the entry.
  • Update the log. Once everything is done, the log entry should be marked as "closed".
Edit - History - Print - Recent Changes - Search
Page last modified on August 03, 2007, at 03:51 PM