Subversion Repositories SmartDukaan

Rev

Rev 3896 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3893 chandransh 1
'''
2
Created on 25-Oct-2011
3
 
4
@author: Chandranshu
5
'''
6
import logging
7
logging.basicConfig(level=logging.DEBUG)
8
 
9
class ContentHandler:
10
    '''
11
    classdocs
12
    '''
13
 
14
    def __init__(self):
15
        pass
16
 
17
    def pushContentToProduction(self, entityId):
18
        """
19
        Parameters:
20
         - entityId
21
        """
22
        pass
23
 
24
    def close_session(self):
25
        pass
26
 
27
    def isAlive(self, ):
28
        """
29
        For checking weather service is active alive or not. It also checks connectivity with database
30
        """
31
        try:
32
            return True
33
        except:
34
            return False
35
        finally:
36
            self.close_session()