Need help explaining -- Primitive 82 and [] in UndefinedObject>>DoIt << The problem is the email, and the url enclosed in alert.page

TECHIN.A.KANG at mail.sprint.com TECHIN.A.KANG at mail.sprint.com
Sun May 6 06:01:03 UTC 2001


Sorry on me. It is not bug. It is how the email interprete it.

After I removed the single quote enclosing the url in file
refs/alerts.page, outlook and Yahoo's email correctly bring up the web
browser.

Regards,
Alex Kang

-----Original Message-----
From: TECHIN.A.KANG [mailto:TECHIN.A.KANG at mail.sprint.com]
Sent: Saturday, May 05, 2001 10:28 PM
To: squeak
Cc: TECHIN.A.KANG
Subject: RE: Need help explaining -- Primitive 82 and [] in
UndefinedObject>>DoIt << Comanche Swiki bug


Hi,

I think there is a tiny bug in the Comanche 4.7.

The method constructs the url, list as following, assuming an URL to be
processed comes witht theAddress.

HttpSwikiRequest>>referenceShelf:book:page:address:
      ^'/', theBook name, '/', (thePage id asString), '.', theAddress

In the alert sending mechanism, theAddress is '' which is correct,
because it is a web page in url address.

Here is my new code:

      (theAddress = '')
            ifTrue: [^'/', theBook name, '/', (thePage id asString)]
            ifFalse: [^'/', theBook name, '/', (thePage id asString),
'.', theAddress].
                  
However, I am still not understaning what '[] in UndefinedObject>>DoIt'
is all about.
Anyone can point me the resource for more information is greate
appreciated.

Thanks,
Alex Kang

-----Original Message-----
From: TECHIN.A.KANG [mailto:TECHIN.A.KANG at mail.sprint.com]
Sent: Friday, May 04, 2001 11:00 PM
To: squeak
Cc: TECHIN.A.KANG
Subject: Need help explaining -- Primitive 82 and [] in
UndefinedObject>>DoIt


Help please!

I am trying to find out why the email alert mechanism by Swiki
posting the url ending with ".", without the extension. In my
case, the correct url should be a number not ending with ".", or
".html", or other extensions.

End of the message is a modified of SwikiBook>>formatPageAction:with.

In this method, I will halt the program when the actionName is url.
WHAT PUZZLE me is that the doer is "[] in UndefinedObject>>DoIt"
NOTE: I cannot find method DoIt under UnderfinedObject (correct
statement?)

messages copy, fixTemps, valueWithArguments: send to doer which is nil.
However the result is an url string. For example: 
'http://172.25.54.21:9999/3.'

Thing got more complex, when I trace the valueWithArguments: to
BlockContent>>valueWithArguments which call <primitive 82>.

My question now is if primitive 82 returns
'http://172.25.54.21:9999/3.',
not 'http://172.25.54.21:9999//3', how am I going to fix this problem?
Or, this is not the root of the problem?

My other question is that if doer is an UndefinedObject, why the program
keeps execution, but not goes into debug mode, or quit the exeuction?
It did return something, but when I was in debug mode, I cannot step
into
the correct place to inspect how the program work.

SwikiBook>>formatPageAction:with:
--------------------------------------------------------------
formatPageAction: actionName with: args
      |doer result  aBookResult |
(actionName = 'url') ifTrue: [self halt.].
      result _ nil.
      aBookResult _ nil.
      doer _ pageActions at: actionName ifAbsent: [
                  aBookResult _ self formatBookAction: actionName with:
(args copyFrom: 1 to: 4).
                  ^aBookResult.
            ]. 
      result _ doer copy fixTemps valueWithArguments: args.
      ^result. "if doer is nil, the result does hold some values??"
      

THANKS,
Techin Alex Kang





More information about the Squeak-dev mailing list