示例#1
0
    def get_version(self, objectType, guid, version, serializer):
        '''Retrieve a specific version of an object from the OSIS object store

        @param object_type: Object type name
        @type object_type: string
        @param guid: GUID of the object to retrieve
        @type guid: string
        @param version: Version GUID of the object to retrieve
        @type version: string
        @param serializer: Name of the serializer to use
        @type serializer: string

        @return: Base64 encoded string of the serialized object
        @rtype: string
        '''
        data = BaseServer.get_version(self, objectType, guid, version,
                                      serializer)
        # Encode serialized object using Base64
        return base64.encodestring(data)
示例#2
0
 def get_version(self, type_, guid, version, serializer):
     data = BaseServer.get_version(self, type_, guid, version, serializer)
     return base64.encodestring(data)