|
From: creecode <icr...@us...> - 2006-03-07 05:38:36
|
Update of /cvsroot/frontierkernel/odbs/frontierRoot/system/verbs/apps/Manila/homepage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6356 Modified Files: addToHomePage Log Message: replace calls to verbs at extensions.latinToMac with string.(latin/mac)To(Latin/Mac) verbs Index: addToHomePage =================================================================== RCS file: /cvsroot/frontierkernel/odbs/frontierRoot/system/verbs/apps/Manila/homepage/addToHomePage,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** addToHomePage 26 Mar 2005 19:42:18 -0000 1.1.1.1 --- addToHomePage 7 Mar 2006 05:38:33 -0000 1.2 *************** *** 1,3 **** ! FrontierVcsFile:1:scpt:system.verbs.apps.Manila.homepage.addToHomePage ! on addToHomePage (username, password, siteUrl, text) { ÇAdd text to the top of a home page. This verb is different than the others: instead of the address of a prefs table, it takes the username, password, and URL of the site directly. Ç02/19/00; 6:54:14 PM by PBS ÇChanges Ç06/22/00; 8:08:37 PM by JES ÇFixed error with manilaSiteUrl not being defined. Ç9/6/01; 8:03:04 PM by JES ÇChanged params from a list to a record of named parameters, for SOAP compatibility. ÇIf this is a mac, convert text from Mac to Latin text before sending. local (method = "manila.homePage.addToHomePage"); local (server, port = 80); local (urlParts = string.urlSplit (siteUrl)); //11/17/00 JES: siteUrl, not manilaSiteUrl server = urlParts [2]; local (ixPort = string.patternMatch (":", server)); if ixPort > 0 { server = string.mid (urlParts [2], 1, ixPort - 1); port = number (string.mid (urlParts [2], ixPort + 1, infinity))}; if system.environment.isMac { text = latinToMac.macToLatin (text)}; local (params); params = {"username":username, "password":password, "siteUrl":siteUrl, "text":text}; return (manila.callHandler (server, port, method, @params))} \ No newline at end of file --- 1,30 ---- ! FrontierVcsFile:2:scpt:system.verbs.apps.Manila.homepage.addToHomePage ! on addToHomePage (username, password, siteUrl, text) { ! «Changes ! «2/28/06; 1:00:48 PM by TAC ! «replace latinToMac.macToLatin with string.macToLatin ! «9/6/01; 8:03:04 PM by JES ! «Changed params from a list to a record of named parameters, for SOAP compatibility. ! «If this is a mac, convert text from Mac to Latin text before sending. ! «06/22/00; 8:08:37 PM by JES ! «Fixed error with manilaSiteUrl not being defined. ! «Add text to the top of a home page. This verb is different than the others: instead of the address of a prefs table, it takes the username, password, and URL of the site directly. ! «02/19/00; 6:54:14 PM by PBS ! ! local (method = "manila.homePage.addToHomePage"); ! ! local (server, port = 80); ! local (urlParts = string.urlSplit (siteUrl)); //11/17/00 JES: siteUrl, not manilaSiteUrl ! server = urlParts [2]; ! local (ixPort = string.patternMatch (":", server)); ! if ixPort > 0 { ! server = string.mid (urlParts [2], 1, ixPort - 1); ! port = number (string.mid (urlParts [2], ixPort + 1, infinity))}; ! if system.environment.isMac { ! text = string.macToLatin (text)}; ! ! local (params); ! params = {"username":username, "password":password, "siteUrl":siteUrl, "text":text}; ! ! return (manila.callHandler (server, port, method, @params))} \ No newline at end of file |