Ok, another update. :)
Now i've implemented pre and post actions so you can chain small code
snippets from multiple classes to a pipeline.
Communicating throug $r->objects() and $r->trunk() works quite well.
Yes, all this goes far beyond Struts. =)
Example:
--- #YAML:1.0
name: Maypole PetStore
root: '/home/sri/PetStore/templates'
base: http://localhost/petstore
models:
- name: Cart
- name: CDBI
base: CDBI
dsn: dbi:Pg:dbname=petstore
user: postgres
pass: 0
opts:
AutoCommit: 1
views:
- name: TT
base: TT
controllers:
- name: Categories
- name: Cart
- name: Items
- name: Products
logic:
- controller: cart
action: view
pre:
- model: cart
action: content
post:
- model: cdbi_item
action: resolve_cart
- controller: categories
action: list
pre:
- model: cdbi_category
- controller: items
action: list
pre:
- model: cdbi_item
- controller: products
action: list
pre:
- model: cdbi_product
auth:
user_class: MyApp::Customer
user_field: email
session_class: Apache::Session::Postgres
session_args:
DataSource: dbi:Pg:dbname=petstore
TableName: session
UserName: postgres
Password: 0
Commit: 1
sebastian
_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole
This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT