def save(self, force_insert=False, force_update=False, using=None): print "AppVersion save sucess" import node.node2appmgr as appmgr if not appmgr.addModifyVersion(self.am_appid, self.__dict__): raise Exception("Exception: post addModifyVersion error")
def addModifyVersion(**kwargs): appid = int(kwargs.pop("appid")) return HttpResponse(am.addModifyVersion(appid, **kwargs))