コード例 #1
0
 def splitFileMessages(self, filePath, messages, maxRange=15):
     gVeParas = GveConf.geneGveParas()
     uConfig = UserConfig('/home/wxw/data/ToolDatas/15895903730.10.222',
                          '15895903730')
     messageSplitSums = self.splitMessages(uConfig, gVeParas, messages,
                                           maxRange)
     return messageSplitSums
コード例 #2
0
ファイル: IcsReverLogic.py プロジェクト: WXW322/backend
 def getIcsTree(self):
     messages = self.dataTuning.readDatasByType('icsPro')
     uConfig = UserConfig('/home/wxw/data/ToolDatas/15895903730.10.222',
                          '15895903730')
     gVeParas = GveConf.geneGveParas()
     formatGene = FormatGeneLogic(messages)
     return formatGene.GTJsonTree(uConfig, gVeParas)
コード例 #3
0
ファイル: GveVoterTest.py プロジェクト: WXW322/backend
def testForGVotes():
    uConfig = UserConfig('/home/wxw/data/ToolDatas/15895903730.10.222',
                         '15895903730')
    messages = read_datas('/home/wxw/data/ToolDatas/15895903730.10.222',
                          'single')
    messages = get_puredatas(messages)
    gVoterLogic = GvoterLogic()
    print(gVoterLogic.getGVotes(uConfig, messages))
コード例 #4
0
ファイル: GveVoterTest.py プロジェクト: WXW322/backend
def testForSplitMsgs():
    uConfig = UserConfig('/home/wxw/data/ToolDatas/15895903730.10.222',
                         '15895903730')
    messages = read_datas('/home/wxw/data/ToolDatas/15895903730.10.222',
                          'single')
    messages = get_puredatas(messages)
    gVeParas = GveConf.geneGveParas()
    gVoterLogic = GvoterLogic()
    print(gVoterLogic.splitMessages(uConfig, gVeParas, messages))
コード例 #5
0
ファイル: IcsViewLogic.py プロジェクト: WXW322/backend
 def getSplitMsgs(self, msgs, maxRange=15):
     gVeParas = GveConf.geneGveParas()
     uConfig = UserConfig('/home/wxw/data/ToolDatas/15895903730.10.222', '15895903730')
     gVoterLogic = GvoterLogic()
     return gVoterLogic.splitMessages(uConfig, gVeParas, msgs, maxRange)
コード例 #6
0
def EntryTest():
    uConfig = UserConfig('/home/wxw/data/ToolDatas/15895903730.10.222', '15895903730')
    messages = read_datas('/home/wxw/data/ToolDatas/15895903730.10.222', 'single')
    messages = get_puredatas(messages)
    vSpliter = splitter()
    print(vSpliter.getEntryVotes(uConfig, messages))
コード例 #7
0
def TestWords():
    UserConfig.userId = '15895903730'
    UserConfig.path = '/home/wxw/data/ToolDatas/15895903730.10.222'
    Voter = voters()
    print(Voter.getQueryWords(UserConfig.getUserPath()))
コード例 #8
0
ファイル: Funcs.py プロジェクト: WXW322/backend
from Config.UserConfig import UserConfig

if __name__ == '__main__':
    UserConfig.path = '/home/1111.pacp'
    UserConfig.userId = '15895903730'
    print(UserConfig.getUserPath())
コード例 #9
0
ファイル: FormatGeneLogic.py プロジェクト: WXW322/backend
 def getGF(self, uId=' '):
     # future
     uConfig = UserConfig('/home/wxw/data/ToolDatas/15895903730.10.222',
                          '15895903730')
     gVeParas = GveConf.geneGveParas()
     return self.getGJson(uConfig, gVeParas)
コード例 #10
0
ファイル: FormatGeneLogicTest.py プロジェクト: WXW322/backend
    def testFormatGene(self, configParas, gVeparas):
        print(self.formatLogic.getGFormat(configParas, gVeparas))

    def testForJson(self, configParas, gVeparas):
        print(self.formatLogic.getGJson(configParas, gVeparas))

    def testForGF(self):
        print(self.formatLogic.getGF())

    def testGtree(self, configParas, gVeparas):
        print(self.formatLogic.GTreeGenerate(configParas, gVeparas))

    def testGJsonTree(self, configParas, gVeparas):
        print(self.formatLogic.GTJsonTree(configParas, gVeparas))


if __name__ == '__main__':
    uConfig = UserConfig('/home/wxw/data/ToolDatas/15895903730.10.222',
                         '15895903730')
    messages = read_datas('/home/wxw/data/ToolDatas/15895903730.10.222',
                          'single')
    messages = get_puredatas(messages)
    gVeParas = GveConf.geneGveParas()
    formatGene = FormatGeneLogicTest(messages)
    formatGene.testGJsonTree(uConfig, gVeParas)
    #formatGene.testGtree(uConfig, gVeParas)
    #formatGene.testForGF()

    #formatGene.testForJson(uConfig, gVeParas)
    #formatGene.testFormatGene(uConfig, gVeParas)