def __init__(self, **kwargs): """ Initialize a stream accessed file object. """ if _debug: LocalStreamAccessFileObject._debug("__init__ %r", kwargs) FileObject.__init__(self, fileAccessMethod="streamAccess", **kwargs) self._file_data = "".join(random.choice(string.ascii_letters) for i in range(random.randint(100, 200))) if _debug: LocalRecordAccessFileObject._debug(" - %d octets", len(self._file_data))
def __init__(self, **kwargs): """ Initialize a record accessed file object. """ if _debug: LocalRecordAccessFileObject._debug("__init__ %r", kwargs) FileObject.__init__(self, fileAccessMethod="recordAccess", **kwargs) self._record_data = [ "".join(random.choice(string.ascii_letters) for i in range(random.randint(10, 20))) for j in range(random.randint(10, 20)) ] if _debug: LocalRecordAccessFileObject._debug(" - %d records", len(self._record_data))
def __init__(self, **kwargs): """ Initialize a stream accessed file object. """ if _debug: LocalStreamAccessFileObject._debug("__init__ %r", kwargs, ) FileObject.__init__(self, fileAccessMethod='streamAccess', **kwargs ) self._file_data = ''.join(random.choice(string.ascii_letters) for i in range(random.randint(100, 200))) if _debug: LocalRecordAccessFileObject._debug(" - %d octets", len(self._file_data), )
def __init__(self, **kwargs): """ Initialize a record accessed file object. """ if _debug: LocalRecordAccessFileObject._debug("__init__ %r", kwargs, ) FileObject.__init__(self, fileAccessMethod='recordAccess', **kwargs ) self._record_data = [ ''.join(random.choice(string.ascii_letters) for i in range(random.randint(10, 20))) for j in range(random.randint(10, 20)) ] if _debug: LocalRecordAccessFileObject._debug(" - %d records", len(self._record_data), )