On Tuesday, 21 May 2013 10:05:47 UTC-5, greaneym wrote:
>
> hello,
> I am trying to learn about rss feeds.
>
> using the feed_parser.py I can have a view with 
> <a 
> href="/{{=request.application}}/default/rss_aggregator">rss_aggregator</a></p>
>  
>
> that will correctly display this feed,
> http://w1.weather.gov/xml/current_obs/KDPA.xml
>
>
This appears to be an XML file, not and RSS feed. The header says:
<?xml-stylesheet href="latest_ob.xsl" type="text/xsl"?>
<current_observation version="1.0"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema";
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        
 
xsi:noNamespaceSchemaLocation="http://www.weather.gov/view/current_observation.xsd";>

 

> Also if, instead of that view I use,
> {{=LOAD('default','rss_aggregator')}}
>
> It still partially works with no errors, but does not load any image files.
>
> How can I make this view show the associated image files from the noaa 
> site?
>
> Additionally I tried the pluginwiki wp2 file from the application cookbook 
> and wow, is that nice, but trying the rss feed in that
> I get an error about 
> d.channel.title, and more errors about that dict. I use this view,
>
> {{ =plugin_wiki.widget('aggregator',max_entries=4, feed='
> http://w1.weather.gov/xml/current_obs/KDPA.xml') }}
>
> but this xml feed does work,
> {{ =plugin_wiki.widget('aggregator',max_entries=4, feed='feed://
> www.rss.noaa.gov/noaa-gov.xml') }}
>
> so I'm learning that xml feeds work differently.
>
> How can I get http://w1.weather.gov/xml/current_obs/KDPA.xml to work 
> either with the LOAD command and it will find the image files, too,
> or with the plugin-wiki?
>

Please do not use plugin_wiki. It is deprecates as almost all of its 
features are not in web2py core.


 

>
>
> Thanks for any suggestions,
>
> Margaret
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to