~timkuhlman/charms/trusty/rsyslog-forwarder-ha/no-duplicate-kern

« back to all changes in this revision

Viewing changes to hooks/model.py

  • Committer: Jorge Niedbalski
  • Date: 2014-05-02 19:55:18 UTC
  • Revision ID: jorge.niedbalski@canonical.com-20140502195518-4274miknnbx2lw8h
Initial import of the charm.
        - make test ( runs functional + unit )
        - make lint ( lints the code )
        - make unit ( unit tests )
        - make functional ( unit tests )

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
__author__ = 'Jorge Niedbalski R. <jorge.niedbalski@canonical.com>'
5
5
 
6
 
from charmhelpers import fetch
7
 
 
8
 
try:
9
 
    import sqlalchemy
10
 
except ImportError:
11
 
    fetch.apt_install("python-sqlalchemy")
12
 
 
13
6
from sqlalchemy import Column, Integer, String, DateTime
14
7
from sqlalchemy.ext.declarative import declarative_base
15
8
from sqlalchemy import create_engine