Home | History | Annotate | Download | only in Lib

Lines Matching refs:resp

7 >>> resp, count, first, last, name = s.group('comp.lang.python')
10 >>> resp, subs = s.xhdr('subject', first + '-' + last)
11 >>> resp = s.quit()
14 Here 'resp' is the server response line.
19 >>> resp = s.post(f)
156 resp = self.shortcmd('authinfo user '+user)
157 if resp[:3] == '381':
159 raise NNTPReplyError(resp)
161 resp = self.shortcmd(
163 if resp[:3] != '281':
164 raise NNTPPermanentError(resp)
223 resp = self.getline()
224 if self.debugging: print '*resp*', repr(resp)
225 c = resp[:1]
227 raise NNTPTemporaryError(resp)
229 raise NNTPPermanentError(resp)
231 raise NNTPProtocolError(resp)
232 return resp
244 resp = self.getresp()
245 if resp[:3] not in LONGRESP:
246 raise NNTPReplyError(resp)
263 return resp, list
280 - resp: server response if successful
291 - resp: server response if successful
299 - resp: server response if successful
302 resp, list = self.longcmd('LIST', file)
306 return resp, list
321 resp, lines = self.descriptions(group)
331 resp, raw_lines = self.longcmd('LIST NEWSGROUPS ' + group_pattern)
332 if resp[:3] != "215":
336 resp, raw_lines = self.longcmd('XGTITLE ' + group_pattern)
342 return resp, lines
348 - resp: server response if successful
354 resp = self.shortcmd('GROUP ' + name)
355 if resp[:3] != '211':
356 raise NNTPReplyError(resp)
357 words = resp.split()
368 return resp, count, first, last, name
372 - resp: server response if successful
377 def statparse(self, resp):
379 if resp[:2] != '22':
380 raise NNTPReplyError(resp)
381 words = resp.split()
389 return resp, nr, id
393 resp = self.shortcmd(line)
394 return self.statparse(resp)
400 - resp: server response if successful
416 resp, list = self.longcmd(line, file)
417 resp, nr, id = self.statparse(resp)
418 return resp, nr, id, list
424 - resp: server response if successful
436 - resp: server response if successful
448 - resp: server response if successful
457 - resp: server response if successful"""
466 - resp: server response if successful
470 resp, lines = self.longcmd('XHDR ' + hdr + ' ' + str, file)
476 return resp, lines
483 resp: server response if successful
487 resp, lines = self.longcmd('XOVER ' + start + '-' + end, file)
502 return resp,xover_lines
508 - resp: server response if successful
512 resp, raw_lines = self.longcmd('XGTITLE ' + group, file)
518 return resp, lines
524 resp: server response if successful
527 resp = self.shortcmd("XPATH " + id)
528 if resp[:3] != '223':
529 raise NNTPReplyError(resp)
531 [resp_num, path] = resp.split()
533 raise NNTPReplyError(resp)
535 return resp, path
541 resp: server response if successful
545 resp = self.shortcmd("DATE")
546 if resp[:3] != '111':
547 raise NNTPReplyError(resp)
548 elem = resp.split()
550 raise NNTPDataError(resp)
554 raise NNTPDataError(resp)
555 return resp, date, time
562 - resp: server response if successful"""
564 resp = self.shortcmd('POST')
566 if resp[0] != '3':
567 raise NNTPReplyError(resp)
585 - resp: server response if successful
588 resp = self.shortcmd('IHAVE ' + id)
590 if resp[0] != '3':
591 raise NNTPReplyError(resp)
606 - resp: server response if successful"""
608 resp = self.shortcmd('QUIT')
612 return resp
628 resp, count, first, last, name = s.group('comp.lang.python')
629 print resp
631 resp, subs = s.xhdr('subject', first + '-' + last)
632 print resp
635 resp = s.quit()
636 print resp