Lines Matching refs:data

24          'Will stop the registering if the meta-data are not fully compliant')
104 2. send the data as a Basic auth'ed POST.
190 data = {':action': 'user'}
191 data['name'] = data['password'] = data['email'] = ''
192 data['confirm'] = None
193 while not data['name']:
194 data['name'] = input('Username: ')
195 while data['password'] != data['confirm']:
196 while not data['password']:
197 data['password'] = getpass.getpass('Password: ')
198 while not data['confirm']:
199 data['confirm'] = getpass.getpass(' Confirm: ')
200 if data['password'] != data['confirm']:
201 data['password'] = ''
202 data['confirm'] = None
204 while not data['email']:
205 data['email'] = input(' EMail: ')
206 code, result = self.post_to_server(data)
214 data = {':action': 'password_reset'}
215 data['email'] = ''
216 while not data['email']:
217 data['email'] = input('Your email address: ')
218 code, result = self.post_to_server(data)
222 # figure the data to send - the metadata plus some additional
225 data = {
245 if data['provides'] or data['requires'] or data['obsoletes']:
246 data['metadata_version'] = '1.1'
247 return data
249 def post_to_server(self, data, auth=None):
252 if 'name' in data:
253 self.announce('Registering %s to %s' % (data['name'],
256 # Build up the MIME payload for the urllib2 POST data
261 for key, value in data.items():
268 body.write('\nContent-Disposition: form-data; name="%s"'%key)
279 'Content-type': 'multipart/form-data; boundary=%s; charset=utf-8'%boundary,
288 data = ''
293 data = e.fp.read()
299 data = self._read_pypi_response(result)
302 msg = '\n'.join(('-' * 75, data, '-' * 75))