> I have tried to upload a binary file (such as a .pdf file), but I
> could not manage to download it afterward (by clicking on the
> reference of the resource).
So I assume that your browser doesn't send the mime-type when
uploading. That is :-( and therefor you have to set the mime-type
manually.
> I have put the mime type applica/x-zip-comp but it doesn't effect
> anything...
The mime-type you give is not a valid one. Use the following one for a
pdf-files and it should work:
application/pdf
For further reference see:
http://www.asahi-net.or.jp/en/guide/cgi/mimetype.html
Cheers
Lukas
--
Lukas Renggli
http://renggli.freezope.org
> But anyway, just having a method such as:
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> =-=
> privateSnapshotImage
> defaultFullName := self defaultFilename, '.im'.
> s := Filename defaultDirectory filenamesMatching: defaultFullName.
> s isEmpty not ifTrue: [ s first renameTo: (defaultFullName, '.old')].
>
> ObjectMemory
> snapshotAs: self filename
> thenQuit: false
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> =-=
>
> What do you think? Should I update Smallwiki with this modification?
Sure, just go on! I have to do some c-pointer-arithmetic-exercises
right now, so there will be no conflict with SmallWiki StORE ;-)
>>> 2--How could we manage to upgrade Smallwiki by keeping all the pages
>>> ?
>>> A simple solution would be to use a SIXX storage, upgrading the
>>> stuff,
>>> and reloading the SIXX XML file.
>>
>> Just load the new release from StORE while Smallwiki is running!
>> Everything should update and run just fine.
>
> Wow, store is really great :-)
This is a feature of Smalltalk ;-)
Lukas
--
Lukas Renggli
http://renggli.freezope.org
>> The problem with StORE is the following:
>>
>> - I want to move the message Server>>defaultPort to Server
>> class>>defaultPort. It works fine in the image, but when I publish
>> and reload everything into a new image, the message is again in
>> Server>>defaultPort. I already tried about 100 times, but it does not
>> get it. Roel could you help?
>
> Roel is on holiday. for another week now. The problem you are
> describing is really strange. I do not know how to help you. Are you
> sure that you publish and reload from the same store?
Indeed, that is a good question: But I checked my connection strings
twice and this is definitely not the problem.
It just looks like I discovered a bug in StORE. The following process
finally did it:
1. delete Server>>defaultPort
2. publish
3. add Server class>>defaultPort
4. publish
I will publish the new versions on ST-StORE, as soon as it is known to
be working well.
Lukas
--
Lukas Renggli
http://renggli.freezope.org
Hi everybody
I did several changes to SmallWiki today:
- When you create a new wiki there are now a few pages added and there
will be the nice renderer selected. The pages are not very useful yet,
but that will change in the future.
- There is now also a default administrator initialized when creating a
new wiki with the username 'admin' and password 'smallwiki'. For system
running in public this should be changed.
- I have created a registration mechanism for actions and permission on
the Structure class, that is now much cleaner than the first approach.
Implementing that, I experienced something really nasty about StORE/VW:
It does not call the initialize message on classes that do not
implement initialize, but it should as its superclass does understand
initialize. :-(
- There is now also a special permission for the Smalltallk client side
code. This permission is checked in the wiki-parser: everybody is able
to see the result of such code evaluation, but only admins might modify
and save such a page.
- I also cleaned the code slightly, extended some tests and made them
run successful again.
The problem with StORE is the following:
- I want to move the message Server>>defaultPort to Server
class>>defaultPort. It works fine in the image, but when I publish and
reload everything into a new image, the message is again in
Server>>defaultPort. I already tried about 100 times, but it does not
get it. Roel could you help?
Cheers
Lukas
--
Lukas Renggli
http://renggli.freezope.org
Hello Hannes!
You can download and try smallwiki by fetching this very big files (about 30Mo):
www.iam.unibe.ch/~bergel/smallwiki.tgz
I made a small script which run only under linux and solaris, but you can easily make it running on other OS.
In short:
under linux/solaris just type: run 8080
under windows: visual -nologo image/headlessSmallwiki.im -smallwiki port8080 save
it will start smallwiki on the port 8080
there is a saving mechanism, but my script doesn't handle it yet.
the complete image is saved each hour under snapshot_smallwiki.im (I do not remember exactly the name)
But do not forget this is only for testing...
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.iam.unibe.ch/~bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Hi
I discovered that I have to use the full path to reference a page.
For example *How To/Add an Action* because How to is a folder.
Let us that we should be really careful can be really disruptive as my
experience showed it.
Now what is the semantics of remove?
if I point to a page A from page B
then A got removed from a folder C
do I still see the page B I hope.
I think that remove is not a good name (is it remove the link or delete
the page).
Then what is the password to remove page?
Finally we see quickly that we will need move page from there to there
because I wanted to reorganise the
page alex did and I put the mess.
Prof. Dr. Stéphane DUCASSE
http://www.iam.unibe.ch/~ducasse/
"if you knew today was your last day on earth, what would you do
different? ... especially if,
by doing something different, today might not be your last day on
earth" Calvin&Hobbes
"The best way to predict the future is to invent it..." Alan Kay.
Open Source Smalltalks: http://www.squeak.org,
http://www.gnu.org/software/smalltalk/smalltalk.html
Free books for Universities at
http://www.esug.org/sponsoring/promotionProgram.html
Free Online Book at
http://www.iam.unibe.ch/~ducasse/WebPages/FreeBooks.html
... and running, still on: kilana:9090
Everything is saved
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.iam.unibe.ch/~bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.