Hello,
I'm trying to make use of the new-in-1.1 "accept" view predicate to
register several views with the same name for the same context object to
render a response in the content-type requested by the user but the
result is not quite what I expect. The zcml looks like this:
Everythi
2009/11/25 Alberto Valverde :
> Everything works fine when I request the application/json and
> application/json+xconfig mimetypes with a xhr since I can control the
> "Accept" header, however, when a browser makes a "normal" request the result
> is unpredictable (in practice) since '*/* is sent in
Alberto Valverde wrote:
> Hello,
>
> I'm trying to make use of the new-in-1.1 "accept" view predicate to
> register several views with the same name for the same context object to
> render a response in the content-type requested by the user but the
> result is not quite what I expect. The zcml
Tim Hoffman wrote:
> Hi Chris
>
> I am trying to register some views directly through python and not
> using the view decorator,
> I have tried using code very similiar to repoze.bfg.testing.
>
> However after doing so, whilst I can look the view up by doing
> a zope.component.queryMultiAdapter((
Chris McDonough wrote:
> Alberto Valverde wrote:
>> Hello,
>>
>> I'm trying to make use of the new-in-1.1 "accept" view predicate to
>> register several views with the same name for the same context object
>> to render a response in the content-type requested by the user but
>> the result is not
Hi Chris
Yeah I figured I as getting the wrong registry, and in fact I was if I
try and register stuff too early it all went in to the wrong bucket.
I am still having some problems looking stuff up. I can manually look
stuff up with
zope.component.queryMultiAdapter((context,request),IView,name=
Alberto Valverde wrote:
> Chris McDonough wrote:
>> Alberto Valverde wrote:
>>> Hello,
>>>
>>> I'm trying to make use of the new-in-1.1 "accept" view predicate to
>>> register several views with the same name for the same context object
>>> to render a response in the content-type requested by th
Alberto Valverde wrote:
> Hello,
>
> I'm trying to make use of the new-in-1.1 "accept" view predicate to
> register several views with the same name for the same context object to
> render a response in the content-type requested by the user but the
> result is not quite what I expect. The zcml