3 September 2007

From Organic Design wiki
Warning.svg This is a blog item that needs to be converted to the new Bliki format


FileSync II

The FileSync extension has been developed to a complete enough stage that it is now in use here on the OrganicDesign wiki as a convenient interface to our OD/Wikia configuration. This replaces the older version of FileSync (file.pl) which was used by our robot Bender to syncronise configuration. The new version is more responsive as it updates files at the time the article is saved rather than pushing the jobs onto the robot's job queue, and it also works bi-directionally so that changes made directly to the file from the file-system are added to the article history when the article is viewed.

The FileSync extension allows wiki sysops to set up relationships between wiki articles and files in the local file-system so that when the article is modified the file's content is also updated. Also if the file in the file-system is modified, then when the article is next viewed, it's content will be updated and the revision added to the history as if it were edited in the wiki. Whenever the article is updated from the file, or if the file doesn't exist, the user viewing the article is notified with a warning message. If the article is deleted, then the corresponding file in the file-system is also deleted, and if a synchronised file doesn't exist when its article is saved the wiki will attempt to create it.