labpack/storage/aws/s3.py
def exists(self, record_key):
        
        ''' 
            a method to determine if a record exists in collection

        :param record_key: string with key of record
        :return: boolean reporting status
        '''
        
        title = '%s.exists' % self.__class__.__name__
    
    # validate inputs
        input_fields = {
            'record_key': record_key
        }
        for key, value in input_fields.items():
            object_title = '%s(%s=%s)' % (title, key, str(value))
            self.fields.validate(value, '.%s' % key, object_title)
    
    # read record headers
        record_status = self.s3.read_headers(self.bucket_name, record_key)
        if record_status:
            return True
        return False
 
            a method to determine if a record exists in collection

        :param record_key: string with key of record
        :return: boolean reporting status
        
a method to determine if a record exists in collection
a method to determine if a record exists in collection
def exists(self, record_key):
        title = '%s.exists' % self.__class__.__name__
        input_fields = {
            'record_key': record_key
        }
        for key, value in input_fields.items():
            object_title = '%s(%s=%s)' % (title, key, str(value))
            self.fields.validate(value, '.%s' % key, object_title)
        record_status = self.s3.read_headers(self.bucket_name, record_key)
        if record_status:
            return True
        return False
def exists ( self , record_key ) : title = '%s.exists' % self . __class__ . __name__ input_fields = { 'record_key' : record_key } for key , value in input_fields . items ( ) : object_title = '%s(%s=%s)' % ( title , key , str ( value ) ) self . fields . validate ( value , '.%s' % key , object_title ) record_status = self . s3 . read_headers ( self . bucket_name , record_key ) if record_status : return True return False
a method to determine if a record exists in collection
a method to determine if a record exists in collection
''' 
            a method to determine if a record exists in collection

        :param record_key: string with key of record
        :return: boolean reporting status
        ''' # validate inputs # read record headers
boolean reporting status
boolean reporting status
self
record_key
string with key of record
string with key of record