Exemple #1
0
 def do_unzlib(self,line):
     try:
         l = line.split(" ")
         if (l[0] == ""):
             self.help_unzlib()
         else:
             if l[0].lower() == "all":
                 CTCore.unzlib_all()
             else:
                 id = int(l[0])
                 if in_range(id):
                     obj_num, name = CTCore.unzlib(id)
                     if obj_num != -1:
                         print " ZLIB Decompression of object {} ({}) successful!".format(str(id), name)
                         print " New object created: {}".format(obj_num) + newLine
                     else:
                         CTCore.show_errors()
     except Exception,e:
         print str(e)
Exemple #2
0
 def do_unzlib(self, line):
     try:
         l = line.split(" ")
         if (l[0] == ""):
             self.help_unzlib()
         else:
             if l[0].lower() == "all":
                 CTCore.unzlib_all()
             else:
                 id = int(l[0])
                 if in_range(id):
                     obj_num, name = CTCore.unzlib(id)
                     if obj_num != -1:
                         print " ZLIB Decompression of object {} ({}) successful!".format(
                             str(id), name)
                         print " New object created: {}".format(
                             obj_num) + newLine
                     else:
                         CTCore.show_errors()
     except Exception, e:
         print str(e)