Commits

Anonymous committed a6696cd

begin refactoring

  • Participants
  • Parent commits 7aeadd7

Comments (0)

Files changed (1)

 
 MessageBox = ctypes.windll.user32.MessageBoxA
 
-def escape(html):
+def escape_html(html):
         """
         Returns the given HTML with ampersands, quotes and angle brackets encoded.
         """
         if not os.path.exists(outDirectory):
                 os.makedirs(outDirectory)
 
-        return outDirectory
-
-def dump_css(outFile) :
-
-        with open(outFile,'w') as f:
+        with open(os.path.join(outDirectory, "main.css"),'w') as f:
                 f.write(PROC_CSS)
 
         return None
 
-def dump_var_type(t) :
+def var_type(t) :
         if (t not in VAR_TYPES) :
                 return "unknown"
 
         return VAR_TYPES[t]
 
-def dump_proc_type(t) :
+def proc_type(t) :
         if (t not in PROC_TYPES) :
                 return "unknown"
 
         if("" == root) :
                 return None
 
-        outDirectory = prepare(root)
-        dump_css(os.path.join(
-                outDirectory,
-                "proc.css"
-        ))
+        prepare(root)
 
         # loop through PDB
         procs = gimp.pdb.query()
         procs.sort()
 
+        with open(os.path.join(root,"pdb","procs.txt"), "w+") as f :
+                f.write("whattttt\n")
+                for p in procs:
+                        f.write(p + "\n")
+
+
+        """
         links = [fname(procs[-1]), "../index.html", ""]
         for i in range(len(procs)) :
                 name = procs[i]
                 #break
 
         # todo: write index file
-
+        """
         return None
 
 register(