Hi! I have existing application (cms) based on Kotti which is based on Pyramid and uses traversal. I would like to make it part of another application which is based on in-house framework which is also based on Pyramid and uses url dispatch. To make it possible I think the host app should be modified and become a hybrid app. Reading http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/hybrid.html I found this remark: "At this point, a suitable view callable will be found and invoked using view lookup <http://docs.pylonsproject.org/projects/pyramid/en/latest/glossary.html#term-view-lookup> as described in View Configuration <http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/viewconfig.html#view-configuration>, but with a caveat: in order for view lookup to work, we need to define a view configuration that will match when view lookup <http://docs.pylonsproject.org/projects/pyramid/en/latest/glossary.html#term-view-lookup> is invoked after a route matches:" I take it to mean all views from inner/nested app should be registered with specific "route_name" which should in turn be registered in this app. My question is how to automatically make all views which are being registered by traversal based app to register with specific "route_name"? When asked about this on #kotti I got link to application which instead uses "dummy" root which "takes care" of prefix in path – https://github.com/Pixelblaster/kotti_eshop/blob/master/kotti_eshop/__init__.py#L43 Is this sound approach or rather kind of workaround?
Regards, Piotr Dobrogost -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/dc269c85-bca4-4465-b39f-b22a9cae6d73%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
