saveActions and fastStoreHudCache added to import element.
This commit is contained in:
		
							parent
							
								
									9fca5a75b2
								
							
						
					
					
						commit
						6f927e6b7b
					
				|  | @ -205,9 +205,18 @@ class Import: | ||||||
|         self.interval      = node.getAttribute("interval") |         self.interval      = node.getAttribute("interval") | ||||||
|         self.callFpdbHud   = node.getAttribute("callFpdbHud") |         self.callFpdbHud   = node.getAttribute("callFpdbHud") | ||||||
|         self.hhArchiveBase = node.getAttribute("hhArchiveBase") |         self.hhArchiveBase = node.getAttribute("hhArchiveBase") | ||||||
|  |         if node.hasAttribute("saveActions"): | ||||||
|  |             self.saveActions = node.getAttribute("saveActions") | ||||||
|  |         else: | ||||||
|  |             self.saveActions = False | ||||||
|  |         if node.hasAttribute("fastStoreHudCache"): | ||||||
|  |             self.fastStoreHudCache = node.getAttribute("fastStoreHudCache") | ||||||
|  |         else: | ||||||
|  |             self.saveActions = False | ||||||
| 
 | 
 | ||||||
|     def __str__(self): |     def __str__(self): | ||||||
|         return "    interval = %s\n    callFpdbHud = %s\n    hhArchiveBase = %s" % (self.interval, self.callFpdbHud, self.hhArchiveBase) |         return "    interval = %s\n    callFpdbHud = %s\n    hhArchiveBase = %s\n    saveActions = %s\n    fastStoreHudCache = %s\n" \ | ||||||
|  |              % (self.interval, self.callFpdbHud, self.hhArchiveBase, self.saveActions, self.saveActions) | ||||||
| 
 | 
 | ||||||
| class Tv: | class Tv: | ||||||
|     def __init__(self, node): |     def __init__(self, node): | ||||||
|  | @ -488,13 +497,17 @@ class Config: | ||||||
|     def get_import_parameters(self): |     def get_import_parameters(self): | ||||||
|         imp = {} |         imp = {} | ||||||
|         try: |         try: | ||||||
|             imp['callFpdbHud']   = self.imp.callFpdbHud |             imp['callFpdbHud']       = self.imp.callFpdbHud | ||||||
|             imp['interval']      = self.imp.interval |             imp['interval']          = self.imp.interval | ||||||
|             imp['hhArchiveBase'] = self.imp.hhArchiveBase |             imp['hhArchiveBase']     = self.imp.hhArchiveBase | ||||||
|  |             imp['saveActions']       = self.imp.saveActions | ||||||
|  |             imp['fastStoreHudCache'] = self.imp.fastStoreHudCache | ||||||
|         except: # Default params |         except: # Default params | ||||||
|             imp['callFpdbHud']   = True |             imp['callFpdbHud']   = True | ||||||
|             imp['interval']      = 10 |             imp['interval']      = 10 | ||||||
|             imp['hhArchiveBase'] = "~/.fpdb/HandHistories/" |             imp['hhArchiveBase'] = "~/.fpdb/HandHistories/" | ||||||
|  |             imp['saveActions']       = False | ||||||
|  |             imp['fastStoreHudCache'] = False | ||||||
|         return imp |         return imp | ||||||
| 
 | 
 | ||||||
|     def get_default_paths(self, site = "PokerStars"): |     def get_default_paths(self, site = "PokerStars"): | ||||||
|  | @ -700,9 +713,9 @@ if __name__== "__main__": | ||||||
|         print c.get_aux_parameters(mw) |         print c.get_aux_parameters(mw) | ||||||
| 
 | 
 | ||||||
|     print "mucked locations =", c.get_aux_locations('mucked', 9) |     print "mucked locations =", c.get_aux_locations('mucked', 9) | ||||||
|     c.edit_aux_layout('mucked', 9, locations = [(487, 113), (555, 469), (572, 276), (522, 345),  | #    c.edit_aux_layout('mucked', 9, locations = [(487, 113), (555, 469), (572, 276), (522, 345),  | ||||||
|                                                 (333, 354), (217, 341), (150, 273), (150, 169), (230, 115)]) | #                                                (333, 354), (217, 341), (150, 273), (150, 169), (230, 115)]) | ||||||
|     print "mucked locations =", c.get_aux_locations('mucked', 9) | #    print "mucked locations =", c.get_aux_locations('mucked', 9) | ||||||
| 
 | 
 | ||||||
|     for site in c.supported_sites.keys(): |     for site in c.supported_sites.keys(): | ||||||
|         print "site = ", site, |         print "site = ", site, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user