Subversion Repositories SmartDukaan

Rev

Rev 18996 | Rev 19290 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18996 Rev 19000
Line 1606... Line 1606...
1606
                text = pq(ele)('div').text().strip()
1606
                text = pq(ele)('div').text().strip()
1607
            tinInfo[params[index]] = text
1607
            tinInfo[params[index]] = text
1608
        print index, "index"
1608
        print index, "index"
1609
        if index != 8:
1609
        if index != 8:
1610
            raise
1610
            raise
1611
        if not get_mongo_connection_dtr_data().User.tin.find({"tin":tinInfo['tin']}):
1611
        if not get_mongo_connection().Dtr.tin.find({"tin":tinInfo['tin']}):
1612
            get_mongo_connection_dtr_data().User.tin.insert(tinInfo)
1612
            get_mongo_connection().Dtr.tin.insert(tinInfo)
1613
        address = tinInfo['counter_address']
1613
        address = tinInfo['counter_address']
1614
        m = re.match(".*?(\d{6}).*?", address)
1614
        m = re.match(".*?(\d{6}).*?", address)
1615
        if m:
1615
        if m:
1616
            tinInfo['pin'] = m.group(1)
1616
            tinInfo['pin'] = m.group(1)
1617
            tinInfo['pin_required'] = False
1617
            tinInfo['pin_required'] = False