Hi,

I might be missing something, but it seems that in bfg 0.8 every
routes context can only have one view associated with it.

In 0.7.1 you could have something like this

<view
  name="itemview"
  view=".views.item_view" />

<view
      name="itemview"
      view=".views.POST_item_view"
      request_type="repoze.bfg.interfaces.IPOSTRequest" />

<route path="items/:itemid"
       factory=".models.get_item_context"
       view_name="itemview" />


Note this applies also to custom request types not just POST, PUT etc.

I thought this was a very useful feature that provided a very compact
way to build custom views for different clients (REST client, mobile
devices, JSON clients etc.).

Thanks.

  -- Stephan Altmueller

_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to