Hi,
I forgot to mention this when I did this script. You should do this too:
PRDocumentParser initialize.
It's useful to rebuild this line/textMatcher else you still got the
obsolete class association ('--'->PRStriketroughFormat) in the
PRWikiWriter.
As I added my own PRFormat subclasses, I did this too:
PRDocumentItem allSubclassesDo: [:item | item initialize].
using the method:
MyPersonalFormat class>>initialize
PRDocumentParser textMatcher at: self markup put: self
as it's explained in the Lukas' blog about the PRFormat extension:
Thanks, Lukas and Martial! That did the trick!
For what it's worth, here's the script without the typos, so that others can just
copy, paste, and do-it:
| a f index |
#(#PRStriketroughFormat #PRStrikethroughFormat )
pairsDo: [:badGroup :newGroup | PRDocumentGroup
allSubInstancesDo: [:e |
f := e children.
index := 0.
[(index := index + 1) <= f size]
whileTrue: [a := f at: index.
a class isObsolete
ifTrue:
[('*' , badGroup asString match: a class asString)
ifTrue:
[f at: index
put: ((Smalltalk at: newGroup
ifAbsent: [PRParagraph]) new setChildren: a children copy)]]]]]
-Bill
----- Original Message ----
From: Lukas Renggli <renggli(a)iam.unibe.ch>
To: "Magritte, Pier and Related Tools ..." <smallwiki(a)iam.unibe.ch>
Cc: Bill Sun <billksun(a)yahoo.com>
Sent: Thursday, June 21, 2007 2:08:33 PM
Subject: Re: How does one use PRAjaxSearchWidget?
Bill sent me a private mail with the URL so I could have a look at
the site myself:
1. I removed WAStandardScripts and WAStandardStyles from the
configuration, they are deprecated (Philippe, we should mark that
accordingly in Seaside) and replaced by WAStandardFiles.
2. The actual cause of the problem is an obsolete class in your
model. Some time ago I renamed a class to fix a typo and what you see
in the web browser is a part of the resulting stack-trace. A few
weeks ago Martial Boniou kindly provided this script to fix the
issue. Have a look at the mailing list archive if you want to know
more about it.
| a f index |
#(#PRStriketroughFormat #PRStrikethroughFormat )
pairsDo: [:badGroup :newGroup | PRDocumentGroup
allSubInstancesDo: [:e |
f := e children.
index := 0.
[(index := index + 1) <= f size]
whileTrue: [a := f at: index.
a class isOsbolete
ifTrue:
[('*' , badGroup asString match: a class asString)
ifTrue:
[f at: index
put; ((Smalltalk at: newGroup
ifAbsent: [PRParagraph]) new setChildren: a children copy)]]]]]
Evaluate this code within your image and I guess the AJAX search
should work again. Btw, you could also try the non-AJAX search to get
a more readable message.
HTH,
Lukas
____________________________________________________________________________________
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/
_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki