Пример #1
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
    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))
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))
Пример #5
0
 def deserialize(cls, type_, data):
     data = base64.decodestring(data)
     return ThriftSerializer.deserialize(type_, data)
Пример #6
0
 def serialize(cls, object_):
     result = ThriftSerializer.serialize(object_)
     return base64.encodestring(str(result))
Пример #7
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))