Subversion Repositories SmartDukaan

Rev

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

Rev 1970 Rev 2101
Line 9... Line 9...
9
 
9
 
10
class CategoryManager(object):
10
class CategoryManager(object):
11
    _instance = None
11
    _instance = None
12
    categories = dict()
12
    categories = dict()
13
    def __init__(self,):
13
    def __init__(self,):
14
        print self.categories
14
        print "Returning category list"
15
        
15
        
16
    def __new__(cls, *args, **kwargs):
16
    def __new__(cls, *args, **kwargs):
17
        if not cls._instance:
17
        if not cls._instance:
18
            cls._instance = super(CategoryManager, cls).__new__(cls, *args, **kwargs)
18
            cls._instance = super(CategoryManager, cls).__new__(cls, *args, **kwargs)
19
            client = InventoryClient().get_client()
19
            client = InventoryClient().get_client()