cleaning. adding query_factory

This commit is contained in:
Gael Pasgrimaud
2011-05-03 03:09:42 +02:00
parent 261f722ccd
commit 4b61c4824b
5 changed files with 97 additions and 107 deletions
+12 -5
View File
@@ -7,6 +7,13 @@
Welcome to pyramid_formalchemy's documentation!
===============================================
About
=====
``pyramid_formalchemy`` provide a CRUD interface for ``pyramid`` based on ``FormAlchemy``
It also allow to use ``FormAlchemy`` to render forms in your application.
Installation
============
@@ -46,11 +53,11 @@ load ``package.models`` ``package.models.DBSession`` and ``package.forms`` but
you can override this. In this case you don't need to specify a package::
pyramid_formalchemy.configure(config,
models='formalchemy_project.mymodels',
session_factory='formalchemy_project.session.Session',
forms='formalchemy_project',
use_jquery=True)
config.formalchemy_admin(config,
models='formalchemy_project.mymodels',
session_factory='formalchemy_project.session.Session',
forms='formalchemy_project',
use_jquery=True)
You can also change the path ``prefix`` used. pyramid_formalchemy will use
``/admin/`` by default. See :func:`~pyramid_formalchemy.configure`.