[Hepserver-commits] messaging/messaging/protocols http.py,1.6,1.7
Status: Alpha
Brought to you by:
abefettig
|
From: <abe...@us...> - 2003-08-07 03:30:33
|
Update of /cvsroot/hepserver//messaging/messaging/protocols
In directory sc8-pr-cvs1:/tmp/cvs-serv15513/messaging/protocols
Modified Files:
http.py
Log Message:
use new message API with dict-like interface
for headers (still in flux).
Index: http.py
===================================================================
RCS file: /cvsroot/hepserver//messaging/messaging/protocols/http.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** http.py 9 Jul 2003 16:15:23 -0000 1.6
--- http.py 7 Aug 2003 03:30:31 -0000 1.7
***************
*** 32,37 ****
name = headers.get('title','').strip() or url.server
for message in messages:
! if not message.author:
! message.author.name = name
else:
name = ''
--- 32,37 ----
name = headers.get('title','').strip() or url.server
for message in messages:
! if not message.get('author'):
! message['author'].name = name
else:
name = ''
|