projects
/
findit
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fixing get_ui in input.py
[findit]
/
src
/
file.py
1
#!/usr/bin/env python
2
# -*-coding: utf-8 -*-
3
# vim: sw=4 ts=4 expandtab ai
4
# pylint: disable-msg=C0301
5
6
class File(object):
7
def add(self, fpath, fsize):
8
self.fl_path = fpath
9
self.fl_size = fsize
10
11
def show(self):
12
self.cur_ui.show(self.fl_path, self.fl_size)
13
14
def __init__(self, ui):
15
if ui is 'console':
16
from consprint import ConsPrint
17
self.cur_ui = ConsPrint()
18
self.fl_path = None
19
self.fl_size = None