Exemplo n.º 1
0
 def __getPackageTypeAndJsonConfigFile(self):
     try:
         packageType = self.vc("formData").get("packageType", "default")
         if packageType == "":
             packageType = "default"
         types = JsonSimpleConfig().getJsonSimpleMap(["portal", "packageTypes"])
         pt = None
         if types is not None and not types.isEmpty():
             pt = types.get(packageType)
         if pt is None:
             configFile = "packaging-config.json"
         else:
             configFile = pt.getString("packaging-config.json", ["jsonconfig"])
     except Exception, e:
         configFile = "packaging-config.json"