Commit ec73e302 authored by Cédric Bonhomme's avatar Cédric Bonhomme

added runserver and models for EPCIS data.

#! /usr/bin/env python
# -*- coding: utf-8 -*-
from mongoengine import *
from datetime import datetime
from werkzeug import generate_password_hash, check_password_hash
from flask.ext.login import UserMixin
import bson.objectid
class EPCISEvent(Document):
Defines the model for an EPCIS event.
data = DictField()
insetion_date = DateTimeField(required=True)
def __str__(self):
return 'ECISEvent: %s' %
\ No newline at end of file
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
from refuge import app
port = int(os.environ.get('PORT', 5000))'', port=port)
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment