Pyramid Concepts¶
Request Response Cycle¶
Traversal
|
----------------------- ----------------------- | -----------------------
| (HTTP) Request |---->| (Pyramid) Request |---->| (Pyramid) Ressource |
----------------------- ----------------------- -----------------------
|
|--- View Lookup
v
----------------------- ----------------------- =======================
| (HTTP) Response |<----| (Pyramid) Response |<----# (Pyramid) View #
----------------------- ----------------------- =======================
Forms¶
Application Data Structure Data (De-)Serialization Rendering
--------------------------- --------------------------- --------------------------- ---------------------------
=========================== ---------------------------
# (Pyramid) View #---------------------------------------------------------------------| (Chameleon) Template |
=========================== ---------------------------
|
------------^--------------
| (Portal) FormController |
---------------------------
|
--------------------------- --------------------------- --------------------------- ---------------------------
| (Deform) Form |-----| (Colander) Schema |-----| (Deform) Widget |-----| (Chameleon) Template |
--------------------------- --------------------------- --------------------------- ---------------------------
|
--------------------------- -------------^------------- --------------------------- ---------------------------
| (Deform) Field |-----| (Colander) Schema |-----| (Deform) Widget |-----| (Chameleon) Template |
--------------------------- --------------------------- --------------------------- ---------------------------
|
--------------------------- -------------^------------- --------------------------- ---------------------------
| (Deform) Field |-----| (Colander) SchemaNode |-----| (Deform) Widget |-----| (Chameleon) Template |
--------------------------- --------------------------- --------------------------- ---------------------------
/ \
/ \
/ \
Serialization Application Deserialization
--------------- --------------- ---------------
............... ............... ...............
: cstruct :<--: appstruct :<--: cstruct : (Colander)
´´´´´´´´´´´´´´´ ´´´´´´´´´´´´´´´ ´´´´´´´^´´´´´´´
| .......|.......
| : pstruct : (Peppercorn)
v ´´´´´´´^´´´´´´
............... .......|.......
: HTML : : HTML :
´´´´´´´´´´´´´´´ ´´´´´´´´´´´´´´´
API¶
Application Data Structure
--------------------------- ---------------------------
=========================== ---------------------------
# (Cornice) Service #-----| (Colander) Schema |
=========================== ---------------------------
|
------------^--------------
| (Colander) Schema |
---------------------------
|
------------^--------------
| (Colander) SchemaNode |
---------------------------