[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Start improve list-servers; refactor config types; less...



Update of /home/minion/cvsroot/src/minion/lib/mixminion/directory
In directory moria.mit.edu:/tmp/cvs-serv20799/lib/mixminion/directory

Modified Files:
	Directory.py 
Log Message:
Start improve list-servers; refactor config types; less mem usage for flush.

ClientDirectory,ClientMain:
 - New interface to display server information.  Not done yet, but
   better than groveling over directories by hand.

ClientMain, MMTPClient, ClientUtils:
 - Change client queue flushing code so that we don't load everything
   into memory when we flush the queue.  Moved ClientQueue to use a
   metadata store; added proxy class to lazy-load flushable messages
   without changing sendMessages interface.

Config:
 - Add resolveFeature/getFeature functions to generic config file
   interface to make it easier for users to describe aspects of server
   descriptors.

Config, ServerInfo, test, Modules, ServerConfig
 - Change the way that types are specficied for _ConfigFile
   derivitives: now they're by name instead of by by function.  This
   makes unparsing a snap, and keeps us from having to use private
   (underscore-prefixed) names from Config.



Index: Directory.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/directory/Directory.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- Directory.py	30 Jul 2003 22:38:03 -0000	1.13
+++ Directory.py	7 Nov 2003 07:03:28 -0000	1.14
@@ -157,18 +157,18 @@
         'Host' : C.ClientConfig._syntax['Host'],
         "Directory-Store" : {
            "__SECTION__" : ("REQUIRE", None, None ),
-           "Homedir" : ('REQUIRE', C._parseFilename, None),
+           "Homedir" : ('REQUIRE', "filename", None),
            "DirUser" : ('REQUIRE', None, None),
            "CGIUser" : ('REQUIRE', None, None),
            "CGIGroup" : ('REQUIRE', None, None),
         },
         'Directory' : {
            "BadServer" : ("ALLOW*", None, None),
-           "BadServerFile" : ("ALLOW*", C._parseFilename, None)
+           "BadServerFile" : ("ALLOW*", "filename", None)
         },
         'Publishing' : {
            "__SECTION__": ('REQUIRE', None, None),
-           "Location" : ('REQUIRE', C._parseFilename, None)
+           "Location" : ('REQUIRE', "filename", None)
         } }
     def __init__(self, filename=None, string=None):
         C._ConfigFile.__init__(self, filename, string)