File:  [Repository] / ExtFile / Config.py
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Jan 24 16:53:50 2007 UTC (17 years, 5 months ago) by dwinter
Branches: first, MAIN
CVS tags: release, HEAD
Auf der Basis http://www.zope.org/Members/shh/ExtFile Version 1.5.4

mit zlog ersetzt durch logging


    1: #
    2: # Configuration for the ExtFile/ExtImage filesystem repository
    3: #
    4: 
    5: # Repository location and umask
    6: 
    7: REPOSITORY_PATH = ['static','reposit']  # Path to files below INSTANCE_HOME.
    8: REPOSITORY_UMASK = 022
    9: 
   10: 
   11: # Repository directory structure
   12: 
   13: FLAT = 0                # All files reside in a single directory.
   14: SYNC_ZODB = 1           # Directories copy the ZODB folder structure.
   15: SLICED = 2              # Sliced directories from ZOPEID.
   16: SLICED_REVERSE = 3      # Sliced directories from reverse ZOPEID.
   17: SLICED_HASH = 4         # Sliced directories from hash of ZOPEID.
   18: CUSTOM = 5              # Call CUSTOM_METHOD to determine directories.
   19:                         # The CUSTOM feature requires Zope >= 2.7.8.
   20: 
   21: REPOSITORY = SLICED_HASH
   22: 
   23: NORMALIZE = 0           # Normalize case of directory names.
   24: KEEP = 1                # Keep case of directory names (backward compatibility).
   25: 
   26: NORMALIZE_CASE = KEEP
   27: 
   28: PHYSICAL = 0            # SYNC_ZODB uses physical path (recommended).
   29: VIRTUAL = 1             # SYNC_ZODB uses path relative to virtual root (backward compatibility).
   30: 
   31: ZODB_PATH = VIRTUAL
   32: 
   33: SLICE_WIDTH = 1         # SLICED* uses this many characters per slice.
   34: SLICE_DEPTH = 2         # SLICED* goes this many slices (directories) deep.
   35: 
   36: CUSTOM_METHOD = 'getExtFilePath'
   37:                         # CUSTOM calls this method passing the object's path
   38:                         # and ZOPEID as arguments (where path depends on
   39:                         # the ZODB_PATH setting). The method must return a
   40:                         # list of directory names.
   41: 
   42: 
   43: # Repository file name handling
   44: 
   45: # %u=user, %p=path, %n=file name, %e=file extension, %c=counter, %t=time
   46: FILE_FORMAT = "%n%c%e"
   47: 
   48: DISABLED = 0            # Allow file names to begin with 'copy_of_'.
   49: ENABLED = 1             # Remove 'copy_of_' prefixes from file names.
   50: 
   51: COPY_OF_PROTECTION = ENABLED
   52: 
   53: 
   54: # Repository file extension handling
   55: 
   56: ZOPEID = 0              # Use ZOPEID (even if it doesn't include an extension).
   57: MIMETYPE_APPEND = 1     # Append extension to ZOPEID according to mimetype.
   58: MIMETYPE_REPLACE = 2    # Remove extension from ZOPEID, then append mime extension.
   59: 
   60: REPOSITORY_EXTENSIONS = MIMETYPE_REPLACE
   61: 
   62: 
   63: # Repository undo policy
   64: 
   65: BACKUP_ON_DELETE = 0    # Create a .undo copy only when a file is deleted.
   66: ALWAYS_BACKUP = 1       # Create a .undo copy (and a new filename) whenever
   67:                         # a file is uploaded or otherwise modified.
   68: 
   69: UNDO_POLICY = BACKUP_ON_DELETE
   70: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>