No subject


Wed May 23 23:23:08 CEST 2007


| doc  |
    doc _ XMLDOMParser parseDocumentFrom: (FileDirectory  default fileNamed:
'Discovery:Users:admin:SqueakDevelop:ComSwiki:swiki:prueba:pages:22.xml').
doc inspect

Question:

How I could this XMLDocument becomes a Aida/Swiki page ?

In exchange I give this to all:
For old images and new images not having Installer, here how to load bare
functional  Aida/Scribo.

CodeLoader  was into Squeak from 1999, and could do nice tricks !
I'm not sure, but seems old Squeaks could have Aida/Scribo too...



!CodeLoader methodsFor: 'installing' stamp: 'edc 6/5/2008 09:51' prior:
73651835!
installSourceFiles
    "Install the previously loaded source files"
    sourceFiles == nil ifTrue:[^self].

        .
    sourceFiles do:[:req|     (req url endsWith: '.mcz') ifTrue:
[MczInstaller installStream: req contentStream] ifFalse: [self
installSourceFile: req contentStream]].
    sourceFiles _ nil.! !
    
    | loader |
    loader _ CodeLoader new.
    loader baseURL:'http://www.squeaksource.com/SPort/'.
    
    loader loadSourceFiles: #('Sport-2.031.mcz' ).
    
    loader installSourceFiles.
    
    | loader |
    loader _ CodeLoader new.
    loader baseURL:'http://mc.bioskop.fr/Aida/'.
    
    loader loadSourceFiles: #('Aida5.6-np.49.mcz' ).
    
    loader installSourceFiles.!
    
    | loader |
    loader _ CodeLoader new.
    loader baseURL:'http://scribo.bioskop.fr/repository/'.
    
    loader loadSourceFiles: #('scribo-np.89.mcz' ).
    
    loader installSourceFiles.!
   
Also I found troulbles with two methods, I add my bad solution here.
Without this, I can't run Aida/Scribo

!SpTimestamp methodsFor: 'private' stamp: 'edc 6/5/2008 10:26' prior:
73697887!
underlyingTimestamp
    ^underlyingTimestamp asDate!

!SpTimestamp methodsFor: 'converting' stamp: 'edc 6/5/2008 11:00' prior:
38169516!
asRFC1123StringOn: targetStream
    "^self
    Code taken from Swazoo Timestamp extenton with the following comment:
FIXME: Assumes 
    server's clock is GMT. Should convert server's clock to GMT if it is
not. Besides that, 
    this whole method is really ugly."
    targetStream nextPutAll: (self underlyingTimestamp asDate weekday
copyFrom: 1 to: 3);
        nextPutAll: ', '.
    self underlyingTimestamp day < 10 ifTrue: [targetStream nextPut: $0].
    self underlyingTimestamp asDate printOn: targetStream format: #(1 2 3 $
2 1).    
    targetStream space.
    DateAndTime current printHMSOn: targetStream.
    targetStream nextPutAll: ' GMT'! !




More information about the Aida mailing list