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

Side by Side Diff: sitescripts/extensions/utils.py

Issue 10669003: Link to remote downloads server rather than a local downloads directory (Closed)
Patch Set: Created May 22, 2013, 2:33 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sitescripts/extensions/bin/updateDownloadLinks.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # coding: utf-8 1 # coding: utf-8
2 2
3 # This file is part of the Adblock Plus web scripts, 3 # This file is part of the Adblock Plus web scripts,
4 # Copyright (C) 2006-2013 Eyeo GmbH 4 # Copyright (C) 2006-2013 Eyeo GmbH
5 # 5 #
6 # Adblock Plus is free software: you can redistribute it and/or modify 6 # Adblock Plus is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License version 3 as 7 # it under the terms of the GNU General Public License version 3 as
8 # published by the Free Software Foundation. 8 # published by the Free Software Foundation.
9 # 9 #
10 # Adblock Plus is distributed in the hope that it will be useful, 10 # Adblock Plus is distributed in the hope that it will be useful,
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 lambda self, value: self.nightlyConfig.set(self.repositoryNa me, key, value)) 118 lambda self, value: self.nightlyConfig.set(self.repositoryNa me, key, value))
119 119
120 config = None 120 config = None
121 nightlyConfig = None 121 nightlyConfig = None
122 repositoryName = None 122 repositoryName = None
123 repository = None 123 repository = None
124 124
125 buildRepository = _defineGlobalProperty('buildRepository') 125 buildRepository = _defineGlobalProperty('buildRepository')
126 nightliesDirectory = _defineGlobalProperty('nightliesDirectory') 126 nightliesDirectory = _defineGlobalProperty('nightliesDirectory')
127 nightliesURL = _defineGlobalProperty('nightliesURL') 127 nightliesURL = _defineGlobalProperty('nightliesURL')
128 downloadsDirectory = _defineGlobalProperty('downloadsDirectory') 128 downloadsRepo = _defineGlobalProperty('downloadsRepo')
129 downloadsURL = _defineGlobalProperty('downloadsURL') 129 downloadsURL = _defineGlobalProperty('downloadsURL')
130 docsDirectory = _defineGlobalProperty('docsDirectory') 130 docsDirectory = _defineGlobalProperty('docsDirectory')
131 signtool = _defineGlobalProperty('signtool') 131 signtool = _defineGlobalProperty('signtool')
132 certname = _defineGlobalProperty('signtool_certname') 132 certname = _defineGlobalProperty('signtool_certname')
133 dbdir = _defineGlobalProperty('signtool_dbdir') 133 dbdir = _defineGlobalProperty('signtool_dbdir')
134 dbpass = _defineGlobalProperty('signtool_dbpass') 134 dbpass = _defineGlobalProperty('signtool_dbpass')
135 135
136 keyFile = _defineLocalProperty('key', '') 136 keyFile = _defineLocalProperty('key', '')
137 name = _defineLocalProperty('name') 137 name = _defineLocalProperty('name')
138 galleryID = _defineLocalProperty('galleryID', '') 138 galleryID = _defineLocalProperty('galleryID', '')
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 in the configuration file. 186 in the configuration file.
187 This static method will enumerate Configuration 187 This static method will enumerate Configuration
188 objects representing the settings for each repository. 188 objects representing the settings for each repository.
189 """ 189 """
190 config = get_config() 190 config = get_config()
191 for key, value in config.items("extensions"): 191 for key, value in config.items("extensions"):
192 if key.endswith("_repository"): 192 if key.endswith("_repository"):
193 repositoryName = re.sub(r'_repository$', '', key) 193 repositoryName = re.sub(r'_repository$', '', key)
194 if repositoryName: 194 if repositoryName:
195 yield Configuration(config, nightlyConfig, repositoryName, value) 195 yield Configuration(config, nightlyConfig, repositoryName, value)
OLDNEW
« no previous file with comments | « sitescripts/extensions/bin/updateDownloadLinks.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld