Re: [Maypole] The Future of Maypole

From: Sebastian Riedel (sri at oook.de)
Date: Tue Nov 02 2004 - 00:10:03 GMT


Yet another update.

This time the logic stuff mutated into a plain old dispatch table.

actions:
  cart:
    add:
      - cart: add
      - cart: content
      - cdbi_item: resolve
      - cdbi_product: resolve
    update:
      - cart: update
      - cart: content
      - cdbi_item: resolve
      - cdbi_product: resolve
    view:
      - cart: content
      - cdbi_item: resolve
      - cdbi_product: resolve

Yes, it's a bit verbose, but very very simple to understand and modify.

  cart:
    add:
      - cart: add
      - cart: content
      - cdbi_item: resolve
      - cdbi_product: resolve

This would be translated to something like:

PetStore::Controller::Cart::add()
PetStore::Model::Cart::add()
PetStore::Model::Cart::content()
PetStore::Model::CDBI::Item::resolve()
PetStore::Model::CDBI::Product::resolve()

Such a dispatch table exists for the requests lifetime and is modifyable via $r->table.

And again, don't take this too serious, i'm just loud thinking... ;)

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