|
From: Geetha M. <ge...@in...> - 2002-07-01 08:09:56
|
> 1. change a gif in a web page to another gif reqmod for that gif - change the request url > 2. change some text in a web page to some others Yes youcan, you are already doing it in baner insertion. ma...@so... wrote: > > Hi, Geetha! > > I have successfully insert a gif at the head > of a web page. I enjoy it! What a nice work! > What a nice software! :-) > > I still have a question. Can I use the software to > do the following things, > > 1. change a gif in a web page to another gif > 2. change some text in a web page to some others > > Cheers, > George Erik > > ----- Original Message ----- > From: Geetha Manjunath > To: ma...@so... > Subject: Re: [icap-server] Syntax error when running "./start_icap.py". > Sent: Mon Jul 01 14:42:25 CST 2002 > > > Name the new class also as 'test'. So line 25 of file test.py should > > read as > > > > class test(HTTPProxylet): > > > > regards > > Geetha > > > > > > ma...@so... wrote: > > > > > > Hi, Geetha! > > > > > > I using the following procedures to > > > insert a gif when user browsing www.yahoo.com. > > > > > > 1. write a file named test.py > > > (I have send the file as the attchment of the mail) > > > > > > 2. modify irml.xml > > > (I have send the file as the attchment of the mail) > > > > > > 3. run command "make install" in irml directory > > > > > > 4. run ". ./setup" in the icap_server directory > > > > > > 5, run "./start_icap.py" in the icap_server directory > > > > > > When running "./start_icap.py", I got the following errors, > > > > > > -------- > > > [root@demo icap_server]# ./start_icap.py > > > /usr/lib/python2.2/FCNTL.py:7: DeprecationWarning: the FCNTL module is deprecated; please use fcntl > > > DeprecationWarning) > > > Traceback (most recent call last): > > > File "./start_icap.py", line 12, in ? > > > import icap_handler > > > File "./icap_handler.py", line 34, in ? > > > import icap_services, reqmod , respmod > > > File "./icap_services.py", line 19, in ? > > > from reqmod import process_reqmod > > > File "./reqmod.py", line 31, in ? > > > from ruleProcessor import getReqModifier > > > File "/root/icap_server/proxylet/ruleProcessor.py", line 47, in ? > > > from test import test > > > ImportError: cannot import name test > > > -------- > > > > > > Are there anything wrong? How to resolve the > > > trouble? > > > > > > Cheers, > > > George Erik > > > > > > ----- Original Message ----- > > > From: Geetha Manjunath > > > To: ma...@so... > > > Cc: ica...@li... ;ica...@li... > > > Subject: Re: [icap-server] Syntax error when running "./start_icap.py". > > > Sent: Mon Jul 01 13:19:06 CST 2002 > > > > > > > I guess my response to your mail on documentation for rule authoring > > > > wold have cleared your doubt here. > > > > Please see redirectPl.py in proxylet directory. This proxylet currently > > > > redirects to a different port based on acccessed url. Please change it > > > > to do the needful > > > > regards > > > > Geetha > > > > > > > > ma...@so... wrote: > > > > > > > > > > Hi, pals! > > > > > > > > > > When running ./start_icap.py, I got such errors, > > > > > > > > > > -------- > > > > > [root@demo icap_server]# ./start_icap.py > > > > > /usr/lib/python2.2/FCNTL.py:7: DeprecationWarning: the FCNTL module is deprecated; please use fcntl > > > > > DeprecationWarning) > > > > > Traceback (most recent call last): > > > > > File "./start_icap.py", line 12, in ? > > > > > import icap_handler > > > > > File "./icap_handler.py", line 34, in ? > > > > > import icap_services, reqmod , respmod > > > > > File "./icap_services.py", line 19, in ? > > > > > from reqmod import process_reqmod > > > > > File "./reqmod.py", line 31, in ? > > > > > from ruleProcessor import getReqModifier > > > > > File "/root/icap_server/proxylet/ruleProcessor.py", line 47 > > > > > from www.hp.com import www.hp.com > > > > > ^ > > > > > SyntaxError: invalid syntax > > > > > -------- > > > > > > > > > > My purpose is as the following, when users visit > > > > > "www.yahoo.com", I will display the page "www.hp.com" > > > > > at the same time. > > > > > > > > > > Such is the content of rules.xml, > > > > > -------- > > > > > <?xml version="1.0"?> > > > > > <rulemodule> > ...... |