- Timestamp:
- Apr 20, 2017, 8:57:07 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/plugins/zmdManager.py
r4347 r4348 5 5 import locale 6 6 import tempfile 7 import xmlrpc.client as n4d 7 try: 8 import xmlrpc.client as n4d 9 except ImportError: 10 raise ImportError('xmlrpc not available. Disabling ZmdManager') 8 11 import ssl 9 12 import time … … 14 17 self.dbg=1 15 18 self.zmdPath='/usr/share/zero-center/zmds' 16 self.pluginInfo={'install':'zmd','pkginfo':'zmd','remove':'zmd'} 19 if hasattr(sys,'last_value'): 20 #If there's an error at this point it only could be an importError caused by xmlrpc 21 self.pluginInfo={} 22 else: 23 self.pluginInfo={'install':'zmd','pkginfo':'zmd','remove':'zmd'} 17 24 self.progress=0 18 25 self.n4dclient='' … … 150 157 except Exception as e: 151 158 err=6 152 self._debug( (str(e))159 self._debug(str(e)) 153 160 self._debug("Error: "+str(zmdError)) 154 161 self._debug("Result: "+str(zmdResult))
Note: See TracChangeset
for help on using the changeset viewer.