Subversion Repositories SmartDukaan

Rev

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

Rev 18936 Rev 18947
Line 1601... Line 1601...
1601
                text = pq(ele)('div').text().strip()
1601
                text = pq(ele)('div').text().strip()
1602
            tinInfo[params[index]] = text
1602
            tinInfo[params[index]] = text
1603
        print index, "index"
1603
        print index, "index"
1604
        if index != 8:
1604
        if index != 8:
1605
            raise
1605
            raise
-
 
1606
        if not get_mongo_connection_dtr_data().User.tin.find({"tin":tinInfo['tin']}):
-
 
1607
            get_mongo_connection_dtr_data().User.tin.insert(tinInfo)
1606
        address = tinInfo['counter_address']
1608
        address = tinInfo['counter_address']
1607
        m = re.match(".*?(\d{6}).*?", address)
1609
        m = re.match(".*?(\d{6}).*?", address)
1608
        if m:
1610
        if m:
1609
            tinInfo['pin'] = m.group(1)
1611
            tinInfo['pin'] = m.group(1)
1610
            tinInfo['pin_required'] = False
1612
            tinInfo['pin_required'] = False