diff upmana/manifest.py @ 34:8b630fc8a343 traipse_dev

Updated the Update Manager to 0.3. Settings are being created with a clone of the PulginDB. Repos can be added, GUI does not update, Repo list needs a scrollbar. Repo tab buttons will not work except for New.
author sirebral
date Mon, 03 Aug 2009 11:56:17 -0500
parents 3687514e0218
children 52f6a38f8885
line wrap: on
line diff
--- a/upmana/manifest.py	Sun Aug 02 17:13:45 2009 -0500
+++ b/upmana/manifest.py	Mon Aug 03 11:56:17 2009 -0500
@@ -3,10 +3,10 @@
 import orpg.tools.validate
 from types import *
 
-class PluginDB:
+class ManifestChanges:
     def __init__(self, filename="updatemana.xml"):
         self.filename = orpg.dirpath.dir_struct["user"] + filename
-        #orpg.tools.validate.Validate().config_file(filename,"default_plugindb.xml")
+        orpg.tools.validate.Validate().config_file(filename,"default_manifest.xml")
         self.xml_dom = self.LoadDoc()
 
     def GetString(self, plugname, strname, defaultval, verbose=0):
@@ -21,7 +21,7 @@
                         else: return ""
         else:
             if verbose:
-                print "plugindb: no value has been stored for " + strname + " in " + plugname + " so the default has been returned"
+                print "manifest: no value has been stored for " + strname + " in " + plugname + " so the default has been returned"
             return defaultval
 
     def SetString(self, plugname, strname, val):
@@ -41,6 +41,7 @@
             self.SaveDoc()
             return "added plugin"
 
+
     def FetchList(self, parent):
         retlist = []
         if not len(parent): return []