Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/subscriptions/subscriptionParser.py

Issue 29326068: Issue 2823 - Attach parent subscription types when parsing supplemental subscriptions (Closed)
Patch Set: Created Sept. 8, 2015, 9:44 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/subscriptions/subscriptionParser.py
===================================================================
--- a/sitescripts/subscriptions/subscriptionParser.py
+++ b/sitescripts/subscriptions/subscriptionParser.py
@@ -45,6 +45,7 @@
unavailable = define_property("unavailable", readonly=True)
catchall = define_property("catchall", readonly=True)
supplements = define_property("supplements", readonly=True)
+ supplementsType = define_property("supplementsType", readonly=True)
supplemented = define_property("supplemented", readonly=True)
variants = define_property("variants", readonly=True)
homepage = define_property("homepage")
@@ -69,6 +70,7 @@
'unavailable': False,
'catchall': False,
'supplements': [],
+ 'supplementsType': set(),
'supplemented': [],
'variants': [],
'recommendation': None,
@@ -220,6 +222,7 @@
if supplements in lists:
if lists[supplements].type == filedata.type:
lists[supplements].supplemented.append(filedata)
+ filedata.supplementsType.add(lists[supplements].type)
else:
warn('Subscription %s supplements an unknown subscription %s' % (filedata.name, supplements))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld