def main(q, i, params, tags): from osis.model.serializers import ThriftSerializer import base64 application = q.drp.application.get(params['rootobjectguid']) params['result'] = base64.encodestring(ThriftSerializer.serialize(application))
def main(q, i, params, tags): from osis.model.serializers import ThriftSerializer import base64 cloudspace = q.drp.cloudspace.get(params['rootobjectguid']) params['result'] = base64.encodestring(ThriftSerializer.serialize(cloudspace))
def main(q, i, params, tags): from osis.model.serializers import ThriftSerializer import base64 networkzone = q.drp.networkzone.get(params['rootobjectguid']) params['result'] = base64.encodestring(ThriftSerializer.serialize(networkzone))
def main(q, i, params, tags): from osis.model.serializers import ThriftSerializer import base64 resourcegroup = q.drp.resourcegroup.get(params['rootobjectguid']) params['result'] = base64.encodestring( ThriftSerializer.serialize(resourcegroup))
def serialize(cls, object_): result = ThriftSerializer.serialize(object_) return base64.encodestring(str(result))
def main(q, i, params, tags): from osis.model.serializers import ThriftSerializer import base64 drpdb = q.drp.drpdb.get(params['rootobjectguid']) params['result'] = base64.encodestring(ThriftSerializer.serialize(drpdb))
def main(q, i, params, tags): from osis.model.serializers import ThriftSerializer import base64 application = q.drp.application.get(params['rootobjectguid']) params['result'] = base64.encodestring( ThriftSerializer.serialize(application))
def main(q, i, params, tags): from osis.model.serializers import ThriftSerializer import base64 resourcegroup = q.drp.resourcegroup.get(params['rootobjectguid']) params['result'] = base64.encodestring(ThriftSerializer.serialize(resourcegroup))