-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
53 additions
and
7 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 |
---|---|---|
|
@@ -10,3 +10,6 @@ | |
[submodule "fa.extjs"] | ||
path = fa.extjs | ||
url = [email protected]:FormAlchemy/fa.extjs.git | ||
[submodule "fa.bootstrap"] | ||
path = fa.bootstrap | ||
url = [email protected]:FormAlchemy/fa.bootstrap.git |
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
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
Submodule fa.bootstrap
added at
1919fd
Submodule fa.jquery
updated
12 files
Submodule formalchemy
updated
22 files
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
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,25 @@ | ||
from pyramid.config import Configurator | ||
from sqlalchemy import engine_from_config | ||
|
||
from formalchemy_project import models | ||
|
||
def main(global_config, **settings): | ||
""" This function returns a Pyramid WSGI application. | ||
""" | ||
engine = engine_from_config(settings, 'sqlalchemy.') | ||
models.initialize_sql(engine) | ||
config = Configurator(settings=settings) | ||
config.include('pyramid_tm') | ||
config.add_translation_dirs('formalchemy_project:locale/') | ||
|
||
# pyramid_formalchemy's configuration | ||
config.include('pyramid_formalchemy') | ||
config.include('fa.bootstrap') | ||
config.include('fa.extjs') | ||
|
||
# Admin UI (Used for the demo. Not really useful here...) | ||
config.formalchemy_admin('/admin', package='formalchemy_project', view='fa.bootstrap.views.ModelView') | ||
|
||
return config.make_wsgi_app() | ||
|
||
|
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
Submodule pyramid_formalchemy
updated
20 files
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