API Reference for Enthought Tool Suite 3.2.0
A feature-enabled file sieve tool.
How many files need to be processed before adding to files list:
BatchSize = 100
Mapping from date units to seconds:
DateMap = { Const('s') : Const(1), Const('M') : Const(60), Const('h') : Mul((Const(60), Const(60))), Const('d') : Mul((Mul((Const(60), Const(60))), Const(24))), Const('w') : Mul((Mul((Mul((Const(60), Const(60))), Const(24))), Const(7))), Const('m') : Mul((Mul((Mul((Const(60), Const(60))), Const(24))), Const(30))), Const('y') : Mul((Mul((Mul((Const(60), Const(60))), Const(24))), Const(365))) }
files_table_editor = TableEditor(columns = [ ObjectColumn(name = 'root', label = 'File Root', width = 0.20000000000000001, editable = False), ObjectColumn(name = 'ext', label = 'Ext.', width = 0.070000000000000007, editable = False), PathColumn(name = 'dir', label = 'Directory', width = 0.48999999999999999, editable = False), ObjectColumn(name = 'size', width = 0.080000000000000002, editable = False, format_func = commatize, horizontal_alignment = 'right'), DateColumn(name = 'date', label = 'Date/Time', format = '%m/%d/%y %I:%M %p', width = 0.14000000000000001, editable = False, horizontal_alignment = 'center') ], other_columns = [ ObjectColumn(name = 'name', label = 'File Name', width = 0.20000000000000001, editable = False), PathColumn(name = 'path', width = 0.40000000000000002, editable = False), DateColumn(name = 'date', label = 'Date', format = '%m/%d/%y', width = 0.10000000000000001, editable = False, horizontal_alignment = 'center'), DateColumn(name = 'date', label = 'Time', format = '%I:%M %p', width = 0.10000000000000001, editable = False, horizontal_alignment = 'center') ], editable = False, auto_size = False, selection_bg_color = 16503697, selection_color = 'black', selection_mode = 'rows', selected = 'selected', filter_name = 'filter', filtered_indices = 'filtered_indices')
Mapping from standard Python-like relation to legal method name version:
RelationMap = { Const('>=') : Const('ge'), Const('>') : Const('gt'), Const('<=') : Const('le'), Const('<') : Const('lt'), Const('=') : Const('eq'), Const('==') : Const('eq'), Const('!=') : Const('ne') }
How long to sleep (in seconds) before rebuilding the file list:
SleepInterval = 600
© Copyright 2002-2009 Enthought, Inc.