I have been using a decorator lately
is called.
@only('json')
@only('xml')
@only('rss')
Basically, the decorator just sets the request.extension, and
response.headers, regardless of how the function was called.
-Thadeus
On Thu, Apr 8, 2010 at 11:15 AM, Francisco Costa
<[email protected]> wrote:
> I've notice that, but I want to control the content of the feed.
> Thanks for your answer
>
> On Apr 8, 4:56 pm, mdipierro <[email protected]> wrote:
>> This should be done automatically if you call you action with .rss
>>
>> On Apr 8, 10:45 am, Thadeus Burgess <[email protected]> wrote:
>>
>> > response.headers['Content-Type'] = 'applications/rss+xml'
>>
>> > -Thadeus
>>
>> > On Thu, Apr 8, 2010 at 10:31 AM, Francisco Costa
>>
>> > <[email protected]> wrote:
>> > > Hello,
>> > > When validating my feed i get this recomendation:
>> > > Feeds should not be served with the "text/html" media type:
>> > >http://beta.feedvalidator.org/docs/warning/UnexpectedContentType.html
>>
>> > > How can I change the MIME type for application/rss+xml ?
>>
>> > > --
>> > > You received this message because you are subscribed to the Google
>> > > Groups "web2py-users" group.
>> > > To post to this group, send email to [email protected].
>> > > To unsubscribe from this group, send email to
>> > > [email protected].
>> > > For more options, visit this group
>> > > athttp://groups.google.com/group/web2py?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.