Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 865730 Details for
Bug 1057375
goodweather desklet fails with error to load weather
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to fix goodweather plugin to handle "<hi/>" XML tag for the current day.
goodweather.patch (text/plain), 1.01 KB, created by
Corinna Vinschen
on 2014-02-20 22:20:23 UTC
(
hide
)
Description:
Patch to fix goodweather plugin to handle "<hi/>" XML tag for the current day.
Filename:
MIME Type:
Creator:
Corinna Vinschen
Created:
2014-02-20 22:20:23 UTC
Size:
1.01 KB
patch
obsolete
>--- __init__.py.ORIG 2014-02-20 17:13:30.601960986 +0100 >+++ __init__.py 2014-02-20 23:16:57.786354382 +0100 >@@ -416,11 +416,11 @@ def parseGoodWeatherData(data): > > p_today = r'''(?isx) # Ignore case, Dot matches all, Verbose > <day\sd=\"0\".*dt=\"(?P<date>.*?)\"> # Date >- \s*?<hi>(?P<high>([+-]?\d*?|N/A))</hi> # High temperature >+ \s*?<hi[/>]?(?P<high>([+-]?\d*?|N/A))(</hi)?> # High temperature > \s*?<low>(?P<low>([+-]?\d*?|N/A))</low> # Low temperature >- .*?<icon>(?P<icon>\d*?)</icon> # Icon >+ .*<icon>(?P<icon>\d*?)</icon> # Icon > \s*?<t>(?P<sky>.*?)</t> # Sky >- .*?<ppcp>(?P<rain>\d+)</ppcp> # Chance of rain >+ .*<ppcp>(?P<rain>\d+)</ppcp> # Chance of rain > ''' > > today = weather.Forecast(now.weekday()) >@@ -434,7 +434,7 @@ def parseGoodWeatherData(data): > > high = match.group('high') > low = match.group('low') >- if high == 'N/A': >+ if (high == 'N/A' or high == ''): > high = -100 > if low == 'N/A': > low = -100
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1057375
: 865730