[Zope-CVS] CVS: Products/FileCacheManager - FileCacheManager.py:1.3
Jens Vagelpohl
jens at dataflake.org
Fri Aug 13 04:41:50 EDT 2004
Update of /cvs-repository/Products/FileCacheManager
In directory cvs.zope.org:/tmp/cvs-serv20921
Modified Files:
FileCacheManager.py
Log Message:
- Add form cleanup
- Help screeen for add form
- Add ability to set a title from the add form
- Tests for the instantiation (not tested yet, other stuff fails)
=== Products/FileCacheManager/FileCacheManager.py 1.2 => 1.3 ===
--- Products/FileCacheManager/FileCacheManager.py:1.2 Sun Mar 28 01:15:24 2004
+++ Products/FileCacheManager/FileCacheManager.py Fri Aug 13 04:41:20 2004
@@ -133,10 +133,10 @@
_dir = '/tmp' # XXX make configurable
- def __init__(self, ob_id):
+ def __init__(self, ob_id, title=''):
# based on RAMCacheManager
self.id = ob_id
- self.title = ''
+ self.title = title
self._settings = {
'threshold': 1000,
'cleanup_interval': 3600,
@@ -164,9 +164,10 @@
manage_addFileCacheManagerForm = PageTemplateFile('www/addFCM', globals())
-def manage_addFileCacheManager(self, id, REQUEST=None):
+def manage_addFileCacheManager(self, id, title='', REQUEST=None):
'Adds a FileCacheManager to the folder.'
- self._setObject(id, FileCacheManager(id))
+ self._setObject(id, FileCacheManager(id, title))
+
if REQUEST is not None:
return self.manage_main(self, REQUEST)
More information about the Zope-CVS
mailing list