|
From: creedon <icr...@us...> - 2006-01-17 23:24:11
|
Update of /cvsroot/frontierkernel/odbs/mainResponderRoot/mainResponder/discuss In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11256 Modified Files: postMessage Log Message: added testing bundle Index: postMessage =================================================================== RCS file: /cvsroot/frontierkernel/odbs/mainResponderRoot/mainResponder/discuss/postMessage,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** postMessage 26 Mar 2005 21:45:37 -0000 1.1.1.1 --- postMessage 17 Jan 2006 23:24:01 -0000 1.2 *************** *** 1,3 **** FrontierVcsFile:1:scpt:mainResponder.discuss.postMessage ! on postMessage (flAcceptFileUploads=false, postTime=clock.now ()) { ÇPost a discussion group message. ÇChanges: Ç4/8/03; 2:56:30 PM by JES ÇPass the address of a data table to mainResponder.discuss.addMessage. The data table contains the POST-ing client's IP address, which mainResponder.discuss.addMessage will save in the message table. Ç10/08/00; 4:58:57 PM by JES ÇRedirect if the postArgs contains a redirect url Ç04/02/00; 7:17:10 PM by PBS ÇAdded postTime parameter so Manila can over-ride -- Manila can support time zone preferences. Ç5/26/99; 02:01:42 GMT by AR ÇAdded groupName parameter to call to mainresponder.discuss.addmessage. Ç5/20/99; 16:28:38 GMT by AR ÇAdded optional parameter named flAcceptFileUploads and defaulting to false. If true, the script saves attached files to the enclosure folder structure. Ç5/19/99; 14:59:20 GMT by DW ÇIt now returns the msgNum of the new message so a caller can do stmemberKey with the table before returning. local (pta = html.getPageTableAddress ()); local (subject = pta^.postArgs.subject); local (memberKey = nameof (pta^.adrMemberInfo^)); local (inResponseTo = pta^.postArgs.inResponseTo); local (data); new (tableType, @data); bundle { //populate the data table data.ipAddress = pta^.client}; local (msgNum = mainresponder.discuss.addMessage (subject, memberKey, inResponseTo, string (pta^.postArgs.text), groupName:pta^.members, postTime:postTime, adrdata:@data)); if flAcceptFileUploads { if (defined (pta^.postArgs.attachFile) and (typeOf (pta^.postArgs.attachFile) == tableType)) { mainResponder.discuss.postAttachedFile (@pta^.postArgs.attachFile, msgNum, pta^.members)}}; local (redirectUrl = pta^.responderAttributes.urls^.discussMsgReader); if defined (pta^.postArgs.redirect) { redirectUrl = pta^.postArgs.redirect}; mainResponder.redirect (redirectUrl + msgNum); return (msgNum)} \ No newline at end of file --- 1,3 ---- FrontierVcsFile:1:scpt:mainResponder.discuss.postMessage ! on postMessage (flAcceptFileUploads=false, postTime=clock.now ()) { ÇChanges Ç1/15/06; 12:09:22 PM by TAC Çadded testing bundle Ç4/8/03; 2:56:30 PM by JES ÇPass the address of a data table to mainResponder.discuss.addMessage. The data table contains the POST-ing client's IP address, which mainResponder.discuss.addMessage will save in the message table. Ç10/08/00; 4:58:57 PM by JES ÇRedirect if the postArgs contains a redirect url Ç04/02/00; 7:17:10 PM by PBS ÇAdded postTime parameter so Manila can over-ride -- Manila can support time zone preferences. Ç1999 Ç5/26/99; 02:01:42 GMT by AR ÇAdded groupName parameter to call to mainresponder.discuss.addmessage. Ç5/20/99; 16:28:38 GMT by AR ÇAdded optional parameter named flAcceptFileUploads and defaulting to false. If true, the script saves attached files to the enclosure folder structure. Ç5/19/99; 14:59:20 GMT by DW ÇIt now returns the msgNum of the new message so a caller can do stmemberKey with the table before returning. ÇPost a discussion group message. local (pta = html.getPageTableAddress ()); Çscratchpad.pt = pta^ // testing local (subject = pta^.postArgs.subject); local (memberKey = nameof (pta^.adrMemberInfo^)); local (inResponseTo = pta^.postArgs.inResponseTo); local (data); new (tableType, @data); bundle { //populate the data table data.ipAddress = pta^.client}; local (msgNum = mainresponder.discuss.addMessage (subject, memberKey, inResponseTo, string (pta^.postArgs.text), groupName:pta^.members, postTime:postTime, adrdata:@data)); if flAcceptFileUploads { if (defined (pta^.postArgs.attachFile) and (typeOf (pta^.postArgs.attachFile) == tableType)) { mainResponder.discuss.postAttachedFile (@pta^.postArgs.attachFile, msgNum, pta^.members)}}; local (redirectUrl = pta^.responderAttributes.urls^.discussMsgReader); if defined (pta^.postArgs.redirect) { redirectUrl = pta^.postArgs.redirect}; mainResponder.redirect (redirectUrl + msgNum); return (msgNum)}; Çbundle // testing Çhtml.setPageTableAddress (@scratchpad.pt) Ç ÇpostMessage (true) Ç Çhtml.deletePageTableAddress () \ No newline at end of file |