# Path: mod/_config.py

# 
# Path: mod/_config.py

# 
# Path: mod/models/curriculum_cookie.py
# class Curriculum_CookieCache(Base):
#     __tablename__ = 'curriculum_cookie'
#     cid = Column(Integer, primary_key=True)
#     cookie = Column(String(10240), nullable=False)
#     date = Column(Integer, nullable=False)
#     last = Column(Integer, nullable=False)
#     time = Column(Integer, nullable=False)


from .._config import start_date
from .._config import term as default_term
from BeautifulSoup import BeautifulSoup
from config import CURR_URL, TIME_OUT,TERM_URL,JWC_URL
from tornado.httpclient import HTTPRequest, AsyncHTTPClient
from collections import OrderedDict
from ..models.curriculum_cookie import Curriculum_CookieCache
from sqlalchemy.orm.exc import NoResultFound
from time import time
import tornado.web
import tornado.gen
import urllib
import json
import re,sys,traceback
# -*- coding: utf-8 -*-
# @Date    : 2014-06-26 13:57:44
#Author  : xindervella@gamil.com yml_bright@163.com


class CurriculumHandler(tornado.web.RequestHandler):

    def get(self):
        self.write('Herald Web Service')
    @property
    def db(self):
        return self.application.db
    def on_finish(self):
        self.db.close()


# Path: mod/_config.py

# 
# Path: mod/_config.py

# 
# Path: mod/models/curriculum_cookie.py
# class Curriculum_CookieCache(Base):
#     __tablename__ = 'curriculum_cookie'
#     cid = Column(Integer, primary_key=True)
#     cookie = Column(String(10240), nullable=False)
#     date = Column(Integer, nullable=False)
#     last = Column(Integer, nullable=False)
#     time = Column(Integer, nullable=False)


# Path: mod/curriculum/curriculum_handler.py
from .._config import start_date
from .._config import term as default_term
from BeautifulSoup import BeautifulSoup
from config import CURR_URL, TIME_OUT,TERM_URL,JWC_URL
from tornado.httpclient import HTTPRequest, AsyncHTTPClient
from collections import OrderedDict
from ..models.curriculum_cookie import Curriculum_CookieCache
from sqlalchemy.orm.exc import NoResultFound
from time import time
import tornado.web
import tornado.gen
import urllib
import json
import re,sys,traceback

# -*- coding: utf-8 -*-
# @Date    : 2014-06-26 13:57:44
#Author  : xindervella@gamil.com yml_bright@163.com


class CurriculumHandler(tornado.web.RequestHandler):

    def get(self):
        self.write('Herald Web Service')
    @property
    def db(self):
        return self.application.db
    def on_finish(self):
        self.db.close()


    @tornado.web.asynchronous