Hello
I have to create a extension of SmallWiki to manage the user's preferences.
In this goal, I would like to put the user's stylesheet in place of the
structure's stylesheet.
I see that the template who render the stylesheet tag is the
TemplateBodyContents. The matter is that this one is not removeable from the
template list and then whe can't do the replacement. The only thing we can
do is to put another style tag in the html but I'm not sure all the browsers
will take this second stylesheet in account.
I think it's it should be a good idea to split the TemplateBodyContents in 2
templates: one for the contents and another for the stylesheet (e.g.:
TemplateHeadStylesheet) which is removeable.
Rémy Knop
PS: sorry for the faults, it's not my mother language
If you load 0.9.23 from the public repository into a new image, the tests
don't run. The various structure #initialize class methods have been
removed, so the class instance variables aren't initialized. Instead of
adding the methods back, could the code be changed so that these variables
are lazily initialized?
Also, the VisitorRendererWiki>>emitCrWithoutDuplicates assumes that #cr
method on stream emits only a Character cr. However, the ANSI standard says
that #cr emits "a sequence of character objects that constitute the
implementation-defined end-of-line sequence" so you can't assume that
Character cr will be put on the stream. Instead of getting the contents, I
would suggest adding an instance variable that says whether the last thing
put on the stream was a #cr from #emitCr.
John Brant
Hello
Many wikis implement a function which allows the user to ask for a list
of pages which link to a particular page.
Many people consider this function to be crucial for working with a wiki
(backlinks).
Is this function already implemented as an action?
Or is somebody actively working on this right now?
Any information on this subject is appreciated.
Regards
Hannes
Hello
I'd like to create internal links. Links within the same folder work
fine. However let's consider the following situation
Rootfolder Cam
folder history
folder language
page introduction (1)
folder socialanthropology
folder glossary
page verb (2)
I'd like to do a link from page (1) to page (2):
Just a simple link *verb* does not work because the page 'introduction'
is in a folder 'language' and it seems that pages outside this folder
are not considered link target candidats.
How do I have to proceed? Is there a special syntax to navigate?
Or is there a general mark to indicate 'take any page'?
Regards
Hannes
hi lukas
I noticed that I have to click twice on edit to get the page edited
with safari (after the first click I get a cannot open) then after the
second click it works....strange have you noticed the same.
David will work on some management tools, and with roles SW will start
to be much cooler (we modelled already an advance admin-user) scenario
and your role/model works well.
Excellent!
stef
hi luaks
- at paris noury asked me the following: some of his upload are iso cd
files which are around 600 mb.
I imagine that we cannot upload that in the image. :)
I saw the roles management interface of david and this starts to be
usable and good.
David will work one extra day and publish a version to be incorporated
in SW and he will sit with alex to upgrade our server.
- would it be possible to have a one click load bundle? because this
was frsutrating to me to not been able
to load SW for doing the demo at paris. Luckily I had an old image
somewhere.
- Next week we will sit with alex and finish the SwikiSucker :)
Stef
Hi
I would like to disallow the unser 'anonymous' to view the contents of a
certain folder X while at the same time create a general user (with a
password) which has the rights of the user 'anonymous' and is allowed
to view and edit the folder X.
What do I already know?
server user inspect
gives me a dictionary of the users (instances of SWUser)
The testcase
SWSecurityTests setup
shows how to create a couple of permissions and to assign
them to a role. Then a user is created and the role added.
What I do not know is how to do the link between a user (and his
role) and a certain folder.
I would like to know as well how to access the permissions of a certain
folder.
server root permissions
does not work.
Thank you for the answer in advance
Hannes
Hi Cees,
> The whole reason I did Gardner in the first place was that SmallWiki
> came with Yet Another Web Serving Framework, and my feeling is that
> we've got enough of that in Squeak. So I picked the good stuff (the
> parser etcetera) and forgot about the rest.
the reason that SmallWiki is not using Seaside, isn't because I don't
like Seaside (I'm having a lot of fun building professional
web-applications with Seaside), but because I wanted to be dialect
independent. E.g. the SmallWiki port of John Brant to .NET and
#Smalltalk wouldn't have been possible if I based on a framework using
continuations ...
> Also, SmallWiki, even though it is called 'Wiki', has higher
> aspirations
> - AFAIK it aims more at Zope. I have installed SmallWiki last summer
> under VW at Soops, and although we used it (mostly by default -
> WikiWorks sucks and there's nothing else) we didn't really like this
> File/Folder stuff in a Wiki.
as far as I know you are still using a very old version of SmallWiki at
Soops. At that time I just introduced the new folder concept and it had
not been integrated into the UI properly yet. With the latest version
most beginners don't even realize that they are working within folders,
as the flow of actions (e.g. to upload a resource or create a new page)
has been improved to mach more the way SWiki did. Of course the experts
still have the full power to organized their data in a tree of folders,
if they want.
Cheers,
Lukas
--
Lukas Renggli
http://renggli.freezope.org
_______________________________________________
Seaside mailing list
Seaside(a)lists.squeakfoundation.org
http://lists.squeakfoundation.org/listinfo/seaside
Hallo Michael,
> wir (die ese-staff) haben ein kleines problemchen mit dem smallwiki:
> [...]
das sieht wirklich chaotisch aus. Ich weiss auch nicht wie man das mit
einem Skript lösen könnte, schliesslich musst du ja selber wissen wo
welche Seite hineinkommt.
David Vogel arbeitet an einem Tool, um die Inhalte von Ordnern zu
kopieren und zu verschieben, das könnte hier weiterhelfen.
Grüsse,
Lukas
--
Lukas Renggli
http://renggli.freezope.org
Hi Roel,
> 2) La deuxième question est encore assez générale : Lorsque
> l'utilisateur tape dans la zone textarea, on aimerait bien implémenter
> une analyse de la syntaxe dynamique. Or il existe un attribut de
> textarea qui est onKeyPress. Et demande comme paramètre une commande
> script. Comment utiliser cela dans smalltalk? Et que doit-on mettre
> dans la commande script pour pouvoir exécuter une méthode de la classe
> même? (Par exemple, si on tape sur une touche, on appelle la méthode
> MiseAjourTextarea de la classe).
doing dynamic things like the described one is very difficult using the
web, because the HTTP protocol only supports a one-way communication:
the client has to request a page.
The OnKeyPress-Attribute is part of the JavaScript extension to HTML
and allows sometimes to go around those limitiations. One could create
a textarea using the following the shape of
<textarea OnKeyPress="submit();" ...
This would cause the textarea to be submitted every time the user hits
a key. Unfortuantely this won't be useable, because a new page is then
loaded into the browser and the current cursor position, the selection
in the text-box, etc. are lost. It could be possible to write some more
JavaScript code to handle this (and to use frames to submit only a
parts of the page), but I don't suggest to do so as this won't work on
different browsers and is probably too slow anyway.
In general, I suggest not to use JavaScript anywhere as it harms much
more than it helps ... but this is just my personal opinion.
I can only give the following solutions:
* Add a preview-button to your text-area to allow the user to see the
actual output from time-to-time.
* Have a look at XUL project (part of Mozilla) that provides some
extensions to the HTTP protocol to allow creating better UIs, in fact
the whole Mozilla GUI is built using this framework. As a drawback this
invlolves some client-side XML and JavaScript programming and will only
run on the Mozilla browser; but at least the possiblities look
promising.
Cheers,
Lukas
--
Lukas Renggli
http://renggli.freezope.org