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))
예제 #3
0
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))
예제 #5
0
 def serialize(cls, object_):
     result = ThriftSerializer.serialize(object_)
     return base64.encodestring(str(result))
예제 #6
0
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))