Subversion Repositories SmartDukaan

Rev

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

Rev 18926 Rev 18928
Line 1598... Line 1598...
1598
            index += 1
1598
            index += 1
1599
            text = pq(ele).text().strip()
1599
            text = pq(ele).text().strip()
1600
            if not text:
1600
            if not text:
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
            address = params['counter_address']
-
 
1604
            m = re.match(".*?(\d{6}).*?", address)
-
 
1605
            if m:
-
 
1606
                params['pin'] = m.group(1)
-
 
1607
                params['pinRequired'] = False
-
 
1608
            else:
-
 
1609
                params['pinRequired'] = True
-
 
1610
                
1603
        print index, "index"
1611
        print index, "index"
1604
        if index != 8:
1612
        if index != 8:
1605
            raise
1613
            raise
1606
        print "TinNumber: Successfully fetched details", tin
1614
        print "TinNumber: Successfully fetched details", tin
1607
    except:
1615
    except: