Hi Brent,
the maintainer of the Squeak port of SmallWiki 1 is Chris Burkert,
please ask him for problems related to the Squeak port.
[ :context | context createChildFromClass: each
titled: aLinkInternal reference
creator: action structure ]
[...]
I believe the problem is that the default Compiler in Squeak 3.7 does
not capture the full closure.
Looks like I know this particular problem in Squeak ;-)
Try sending #fixTemps to the block you mentioned above. If this solves
your problem you might want to add #fixTemp to the references of aBlock
in the following two methods:
HtmlWriteStream>>registerAnchorCallback:to:
HtmlWriteStream>>registerFormCallback:
Cheers,
Lukas
On Dec 31, 2004, at 06:26, Brent Pinkney wrote:
Hi Lukas,
I am trying to install a wiki at work and am hoping to use
Smallwiki/Squeak to try introduce Smalltalk via the back door.
I have had some problems with SmallWiki on Squeak 3.7 final.
Significantly I when I edit a page to contain a link to aonother Swiki
page (ie. *A New Page*)
I get back HTML with links to create the new page:
A New Page (Folder, Page, Resource)
Each link in the parenthesis has the following URL:
Folder:
http://localhost:8080/anewpage/??action=SWPageView&callback=6
Page:
http://localhost:8080/anewpage/??action=SWPageView&callback=7
Page:
http://localhost:8080/anewpage/??action=SWPageView&callback=8
Each callback is a block of code created by
SWVisitorRendererHtml>>emitCreateTargetFor:
The call back is the block:
[ :context | context createChildFromClass: each
titled: aLinkInternal reference
creator: action structure ]
The parameter each the formal argument over the array #(SWFolder
SWPAge SWResource) created by the call to #creatableStructures.
When a user clicks on one of the links, Smallwiki find the callback
and executes the block. ie. It executes:
SWAction>>createChildFromClass: aClass titled: aString creator:
aStructure
The formal agrument aClass should be the each variable when the block
was captured, ie. ONE of SWFolder, SWPage or SWResource.
The problem is it is always SWResource.
The symptom of this problem is that only a resource can be created.
I believe the problem is that the default Compiler in Squeak 3.7 does
not capture the full closure.
Please can someone assist me.
I am having a few other problems with Smallwiki - can you advise if
this release is begin used.
Many thanks
Brent
--
Lukas Renggli
http://www.lukas-renggli.ch