Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade 0.1 to 0.1.1 git-svn-id: https://uliweb.googlecode.com/svn/trunk@914 14287918-b64d-0410-abb6-a92efa0c2026
- Loading branch information
limodou
committed
May 26, 2012
1 parent
463b4cb
commit 19e0816
Showing
9 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#coding=utf8 | ||
import os | ||
import uliweb | ||
|
||
def after_init_settings(sender): | ||
from uliweb import settings | ||
settings.ORM.CONNECTION = os.environ['DATABASE_URL'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from uliweb.form import * | ||
|
||
#class ManageForm(Form): | ||
# debug_log = BooleanField(label='Debug Log:', key='ORM/DEBUG_LOG') | ||
# auto_create = BooleanField(label='Auto Create Table:', key='ORM/AUTO_CREATE') | ||
# connection = StringField(label='Database Connection String:', required=True, key='ORM/CONNECTION') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[DEPENDS] | ||
REQUIRED_APPS = [ | ||
'uliweb.contrib.orm', | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[info] | ||
catalog = '' | ||
title = '' | ||
description = '' | ||
icon = '' | ||
author = '' | ||
version = '' | ||
homepage = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[ORM] | ||
CONNECTION_TYPE = 'short' | ||
|
||
[BINDS] | ||
heroku.after_init_settings = 'after_init_settings', 'uliweb.contrib.heroku.after_init_settings' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
venv | ||
*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: python app.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import sys, os | ||
|
||
path = os.path.dirname(os.path.abspath(__file__)) | ||
project_path = path | ||
sys.path.insert(0, project_path) | ||
sys.path.insert(0, os.path.join(path, 'lib')) | ||
|
||
from uliweb.manage import make_application | ||
from werkzeug.serving import run_simple | ||
application = make_application(project_dir=project_path) | ||
|
||
run_simple('0.0.0.0', int(os.environ.get('PORT', 5000)), application) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Uliweb==0.1.1 | ||
psycopg2==2.4.5 | ||
SQLAlchemy==0.7.7 |