projects
/
findit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62268e0
)
adding file with Input object
author
Alexandr Popov
<popov2al@gmail.com>
Mon, 9 Mar 2009 11:15:10 +0000
(14:15 +0300)
committer
Alexandr Popov
<popov2al@gmail.com>
Mon, 9 Mar 2009 11:15:10 +0000
(14:15 +0300)
src/input.py
[new file with mode: 0644]
patch
|
blob
diff --git a/src/input.py
b/src/input.py
new file mode 100644
(file)
index 0000000..
0287768
--- /dev/null
+++ b/
src/input.py
@@ -0,0
+1,14
@@
+#!/usr/bin/env python
+# -*-coding: utf-8 -*-
+# vim: sw=4 ts=4 expandtab ai
+# pylint: disable-msg=C0301
+
+class Input(object):
+ def get_st_par(self, ui):
+ self.st_dir, self.st_cnt = ui.get()
+ return self.st_dir, self.st_cnt
+
+ def __init__(self, cur_ui):
+ if cur_ui is 'console':
+ from optpaser import OptParser
+ self.get_st_par(OptParser)