diff roundup/backends/blobfiles.py @ 864:76c6db876c14

Some more TODOs
author Richard Jones <richard@users.sourceforge.net>
date Sun, 14 Jul 2002 06:14:40 +0000
parents 0779ea9f1f18
children 974a4b94c5e3
line wrap: on
line diff
--- a/roundup/backends/blobfiles.py	Sun Jul 14 06:11:16 2002 +0000
+++ b/roundup/backends/blobfiles.py	Sun Jul 14 06:14:40 2002 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-#$Id: blobfiles.py,v 1.6 2002-07-09 03:02:52 richard Exp $
+#$Id: blobfiles.py,v 1.7 2002-07-14 06:14:40 richard Exp $
 '''
 This module exports file storage for roundup backends.
 Files are stored into a directory hierarchy.
@@ -37,10 +37,6 @@
 
 class FileStorage:
     """Store files in some directory structure"""
-# TODO: maybe set "files"
-#    def __init__(self):
-#        pass
-
     def filename(self, classname, nodeid, property=None):
         '''Determine what the filename for the given node and optionally 
            property is.
@@ -130,6 +126,22 @@
             os.remove(name+".tmp")
 
 # $Log: not supported by cvs2svn $
+# Revision 1.6  2002/07/09 03:02:52  richard
+# More indexer work:
+# - all String properties may now be indexed too. Currently there's a bit of
+#   "issue" specific code in the actual searching which needs to be
+#   addressed. In a nutshell:
+#   + pass 'indexme="yes"' as a String() property initialisation arg, eg:
+#         file = FileClass(db, "file", name=String(), type=String(),
+#             comment=String(indexme="yes"))
+#   + the comment will then be indexed and be searchable, with the results
+#     related back to the issue that the file is linked to
+# - as a result of this work, the FileClass has a default MIME type that may
+#   be overridden in a subclass, or by the use of a "type" property as is
+#   done in the default templates.
+# - the regeneration of the indexes (if necessary) is done once the schema is
+#   set up in the dbinit.
+#
 # Revision 1.5  2002/07/08 06:58:15  richard
 # cleaned up the indexer code:
 #  - it splits more words out (much simpler, faster splitter)

Roundup Issue Tracker: http://roundup-tracker.org/