- Timestamp:
- Apr 25, 2018, 10:01:30 AM (3 years ago)
- Location:
- lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/plugins/zmdManager.py
r7080 r7169 17 17 self.dbg=False 18 18 self.zmd_folder='/usr/share/zero-center/zmds' 19 self.disabled= False19 self.disabled=None 20 20 if hasattr(sys,'last_value') or not (os.path.exists(self.zmd_folder)): 21 21 #If there's an error at this point it only could be an importError caused by xmlrpc -
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/storeManager.py
r7143 r7169 17 17 class StoreManager(): 18 18 def __init__(self,*args,**kwargs): 19 self.dbg= False19 self.dbg=True 20 20 if 'dbg' in kwargs.keys(): 21 21 self.dbg=kwargs['dbg'] … … 78 78 self._debug("Disabling plugin %s"%plugin_name) 79 79 continue 80 if target_class.disabled==None: 81 self._debug("Plugin %s will manage its state"%plugin_name) 80 82 #Time to check if plugin is disabled or enabled by parm 81 83 #Values for the plugins_registered dict must be the same as the parm name that enables the plugin 82 for key,value in class_actions.items(): 83 val=value 84 break 85 if val in kwargs.keys(): 86 if kwargs[val]==True: 87 if target_class.disabled: 84 else: 85 for key,value in class_actions.items(): 86 val=value 87 break 88 if val in kwargs.keys(): 89 if kwargs[val]==True: 90 if target_class.disabled: 91 self._debug("Disabling plugin %s"%plugin_name) 92 continue 93 else: 88 94 self._debug("Disabling plugin %s"%plugin_name) 89 95 continue … … 91 97 self._debug("Disabling plugin %s"%plugin_name) 92 98 continue 93 else:94 self._debug("Disabling plugin %s"%plugin_name)95 continue96 99 if 'cli_mode' in target_class.__dict__.keys(): 97 100 if 'cli' in kwargs.keys():
Note: See TracChangeset
for help on using the changeset viewer.