[Spambayes-checkins] spambayes/Outlook2000/dialogs/resources rcparser.py, 1.6, 1.7

Mark Hammond mhammond at users.sourceforge.net
Tue Aug 19 06:17:09 EDT 2003


Update of /cvsroot/spambayes/spambayes/Outlook2000/dialogs/resources
In directory sc8-pr-cvs1:/tmp/cvs-serv17505

Modified Files:
	rcparser.py 
Log Message:
Add test code when run as a script, and handle "MOVEABLE PURE" in the
bitmap definition.


Index: rcparser.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/resources/rcparser.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** rcparser.py	19 Aug 2003 02:19:05 -0000	1.6
--- rcparser.py	19 Aug 2003 12:17:07 -0000	1.7
***************
*** 184,187 ****
--- 184,190 ----
              if "BITMAP" == self.token:
                  self.getToken()
+                 if self.token=="MOVEABLE":
+                     self.getToken() # PURE
+                     self.getToken() # bmpname
                  bmf = self.token[1:-1] # quotes
                  self.bitmaps[possibleBitmap] = bmf
***************
*** 354,355 ****
--- 357,367 ----
  
      return rcp
+ 
+ if __name__=='__main__':
+     rc_file = os.path.join(os.path.dirname(__file__), "dialogs.rc")
+     d = ParseDialogs(rc_file)
+     import pprint
+     for id, ddef in d.dialogs.items():
+         print "Dialog %s (%d controls)" % (id, len(ddef))
+         pprint.pprint(ddef)
+         print





More information about the Spambayes-checkins mailing list