Changeset 15430 for main


Ignore:
Timestamp:
28 May 2019, 06:14:44 (5 years ago)
Author:
Henrik Bettermann
Message:

Make maximum number of files listed in finished subfolder customizable.

Location:
main/waeup.kofa/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r15423 r15430  
    441.6.1.dev0 (unreleased)
    55=======================
     6
     7* Make maximum number of files listed in `finished` subfolder
     8  customizable.
    69
    710* Add attendance_sheet.pdf view.
  • main/waeup.kofa/trunk/src/waeup/kofa/datacenter.py

    r15416 r15430  
    3232from waeup.kofa.interfaces import (IDataCenter, IDataCenterFile,
    3333                                   IDataCenterStorageMovedEvent,
    34                                    IDataCenterConfig)
     34                                   IDataCenterConfig,
     35                                   IKofaUtils)
    3536from waeup.kofa.utils.batching import ExportJobContainer
    3637from waeup.kofa.utils.helpers import copy_filesystem_tree, merge_csv_files
    3738from waeup.kofa.utils.logger import Logger
     39
    3840
    3941#: Regular expression describing a logfile name with backup extension
     
    4850    logger_filename = 'datacenter.log'
    4951
    50     max_files = 100
     52    @property
     53    def max_files(self):
     54        return getUtility(IKofaUtils).MAX_FILES
    5155
    5256    def __init__(self, *args, **kw):
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py

    r15287 r15430  
    226226        }
    227227
     228    #: Maximum number of files listed in `finished` subfolder
     229    MAX_FILES = 100
     230
    228231    def sendContactForm(self, from_name, from_addr, rcpt_name, rcpt_addr,
    229232                        from_username, usertype, portal, body, subject):
Note: See TracChangeset for help on using the changeset viewer.