def main():
   
    logging.basicConfig(filename='/home/jleto/AmazonMeetupConnector/log/novalabs-data-import.log', level=logging.INFO)
    projectProperties = properties.get('data-import.properties')
    meetupProperties = properties.get('meetup.properties')
    amazonProperties = properties.get('amazon.properties')
    squareupProperties = properties.get('squareup.properties')

    try:
       log.writeInfo(' [GENERAL] Generating batches.')
       result = jobProcessor.generate()
    except Exception, e:
       log.writeError(e)
示例#2
0
def connString():
    dir = os.path.dirname(__file__)
    filename = os.path.join(dir, 'db.properties')
    propertyDict = properties.get(filename)
    return "host='"+propertyDict['conn_host']+"' dbname='"+propertyDict['conn_dbname']+"' user='******'conn_user']+"'"