Subversion Repositories SmartDukaan

Rev

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

Rev 6171 Rev 6183
Line 21... Line 21...
21
        try:
21
        try:
22
            client = CatalogClient().get_client()
22
            client = CatalogClient().get_client()
23
            self.brands = client.getAllBrandsByCategory(10001)
23
            self.brands = client.getAllBrandsByCategory(10001)
24
        except Exception:
24
        except Exception:
25
            self.brands = ['Micromax', 'BlackBerry', 'Blackberry', 'Motorola', 'Alcatel', 'Sony Ericsson', 'Apple', \
25
            self.brands = ['Micromax', 'BlackBerry', 'Blackberry', 'Motorola', 'Alcatel', 'Sony Ericsson', 'Apple', \
26
                      'Spice', 'Nokia', 'HTC', 'Samsung', 'LG', 'Dell', 'Karbonn', 'Lava']
26
                      'Spice', 'Nokia', 'HTC', 'Samsung', 'LG', 'Dell', 'Karbonn', 'Lava', 'Canon', 'Nikon', 'Sony']
27
        
27
        
28
        self.brands.append('Blackberry') #To resolve issue of 'BlackBerry' and 'Blackberry'
28
        self.brands.append('Blackberry') #To resolve issue of 'BlackBerry' and 'Blackberry'
29
    
29
    
30
    def extract(self, full_name):
30
    def extract(self, full_name):
31
        full_name = full_name.strip()
31
        full_name = full_name.strip()