[Zapp-cvs-commit] ZApp/skins/zapp_xml getInstantXMLConfig.py,1.1,1.2
Brought to you by:
sspickle
|
From: Steve S. <ssp...@us...> - 2004-11-11 11:12:38
|
Update of /cvsroot/zapp/ZApp/skins/zapp_xml In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8415/skins/zapp_xml Modified Files: getInstantXMLConfig.py Log Message: use session/request for sender_id, and channel. Index: getInstantXMLConfig.py =================================================================== RCS file: /cvsroot/zapp/ZApp/skins/zapp_xml/getInstantXMLConfig.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** getInstantXMLConfig.py 25 Jun 2003 11:45:53 -0000 1.1 --- getInstantXMLConfig.py 11 Nov 2004 11:12:29 -0000 1.2 *************** *** 1,11 **** ! ## Script (Python) "getInstantXMLConfig.py" ##parameters= ! ##title=Get info to connect to Instant XML Server.. ## - request = context.REQUEST xmlhost = request.HTTP_HOST.split(':')[0] ! xmlport = getattr(context, 'IXML_PORT', 8518) ! sender_id = getattr(context, 'sender_id', 'c1:flash') ! return {'xmlhost':xmlhost, 'xmlport':xmlport, 'sender_id':sender_id} --- 1,16 ---- ! ## Script (Python) "getInstantXMLConfig" ! ##bind container=container ! ##bind context=context ! ##bind namespace= ! ##bind script=script ! ##bind subpath=traverse_subpath ##parameters= ! ##title=Get info to connect to Instant XML Server.. ## request = context.REQUEST xmlhost = request.HTTP_HOST.split(':')[0] ! xmlport = context.getSessionValue('IXML_PORT', 8518) ! channel = context.getSessionValue('channel', context.REQUEST.get('channel', 'c1')) ! sender_id = context.getSessionValue('sender_id',context.REQUEST.get('sender_id','flash')) ! return {'xmlhost':xmlhost, 'xmlport':xmlport, 'sender_id': channel + ':' + sender_id} |