dataMgr:importer: adjust arguments for partReimportTo()

Adjust argument 'tTo' for partReimportTo to use 'None' as default.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
dataMgr:whImporter: rename wenhuaNewImport()

Rename wenhuaNewImport() as newImport(), so to keep consistency
with Import super class.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
strategy:turtle: add turtle framework

Turtle framework provides a set of basic methods, e.g, tr, atr and
attributes which might be used by child strategies. This framework
aims to save time and code to rewrite a modified turtle strategy
(child strategy), so any child strategy also should inherit this
class and redefine some keys methods to drive this framework to run.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
dataMgr:importer/whImporter: reorganize the code structure

1) Remove 'dataFile' and 'dataTable' arguments from __init__(s) and
   change to specify them in class methods instead to extend reusibility.
2) Remove useless setAttrs() because of 1).
3) Change 'partReimportTo()' to 'partReimport()'.
4) Add getRecordField() to return a specified field from a record.
5) Add importFromDir() method to import data records from a directory.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
dataMgr:whImporter: add processRawRecords method

1) Add processRawRecords() which processes raw records before
   calling importFromDir().
2) Correct and remove commentary.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
test: add test to import data records from directory

it works.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
strategy:turtle: enhance checkings for profit and positions

1) Change self.profit to statistic the current business's profit
   and use self.totalProfit to statistic the whole test.
2) Replace all 'len(self.pList)' with current position to benefit
   reading and sustaining.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
Merge branch 'winf-dev' into zhengwang-dev

Conflicts:
	dataMgr/importer.py

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
Merge branch 'winf-dev' into zhengwang-dev
strategy:turt1: fix a mistake calling Turtle's __init__

Fix a bad assignment while calling Turtle's __init__, which causes
always using 'futures' as database.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>