You are not logged in Log in Join
You are here: Home » Members » andym » Zope File System » Using ZFS » View Document

Log in
Name

Password

 

Using ZFS

Using ZFS

ZFS points at a location on the file system and notes which mode Zope is running in, debug (-D) or production.

  • Debug mode
    • Each time you enter a folder in any way Zope checks the file system to see if it needs to add, delete or update any files. Thus you can create objects in Zope or in the file system.
    • Files are created based on their extension in the following way:
      • directory -> Folder
      • .dtml -> DTML Document
      • .py -> Script (Python)
      • .pt -> Page Template
      • .gif/jpg/png -> Image
      • .html -> DTML Document
      • anything else -> File
    • Whenever an object is changed in Zope, it is changed in the file system.
  • Production mode
    • Whenever an object is changed in Zope, it is changed in the file system.
    • However to increase performance when a folder is accessed, it does not check the file system. It assumes Zope is correct.
    • To sync up to the file system, go to the management screen and click the "sync" link. Or call the syncZFS method. This will sync all the folders up. Objects are created using the same rules as in debug mode.