Sans objet


Wed May 23 23:23:08 CEST 2007


<br>
| doc &nbsp;|<br>
 &nbsp; &nbsp;doc _ XMLDOMParser parseDocumentFrom: (FileDirectory &nbsp;default fileNamed:<br>
&#39;Discovery:Users:admin:SqueakDevelop:ComSwiki:swiki:prueba:pages:22.xml&#39;).<br>
doc inspect<br>
<br>
Question:<br>
<br>
How I could this XMLDocument becomes a Aida/Swiki page ?<br>
<br>
In exchange I give this to all:<br>
For old images and new images not having Installer, here how to load bare<br>
functional &nbsp;Aida/Scribo.<br>
<br>
CodeLoader &nbsp;was into Squeak from 1999, and could do nice tricks !<br>
I&#39;m not sure, but seems old Squeaks could have Aida/Scribo too...<br>
<br>
<br>
<br>
!CodeLoader methodsFor: &#39;installing&#39; stamp: &#39;edc 6/5/2008 09:51&#39; prior:<br>
73651835!<br>
installSourceFiles<br>
 &nbsp; &nbsp;&quot;Install the previously loaded source files&quot;<br>
 &nbsp; &nbsp;sourceFiles == nil ifTrue:[^self].<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;.<br>
 &nbsp; &nbsp;sourceFiles do:[:req| &nbsp; &nbsp; (req url endsWith: &#39;.mcz&#39;) ifTrue:<br>
[MczInstaller installStream: req contentStream] ifFalse: [self<br>
installSourceFile: req contentStream]].<br>
 &nbsp; &nbsp;sourceFiles _ nil.! !<br>
<br>
 &nbsp; &nbsp;| loader |<br>
 &nbsp; &nbsp;loader _ CodeLoader new.<br>
 &nbsp; &nbsp;loader baseURL:&#39;<a href="http://www.squeaksource.com/SPort/" target="_blank">http://www.squeaksource.com/SPort/</a>&#39;.<br>
<br>
 &nbsp; &nbsp;loader loadSourceFiles: #(&#39;Sport-2.031.mcz&#39; ).<br>
<br>
 &nbsp; &nbsp;loader installSourceFiles.<br>
<br>
 &nbsp; &nbsp;| loader |<br>
 &nbsp; &nbsp;loader _ CodeLoader new.<br>
 &nbsp; &nbsp;loader baseURL:&#39;<a href="http://mc.bioskop.fr/Aida/" target="_blank">http://mc.bioskop.fr/Aida/</a>&#39;.<br>
<br>
 &nbsp; &nbsp;loader loadSourceFiles: #(&#39;Aida5.6-np.49.mcz&#39; ).<br>
<br>
 &nbsp; &nbsp;loader installSourceFiles.!<br>
<br>
 &nbsp; &nbsp;| loader |<br>
 &nbsp; &nbsp;loader _ CodeLoader new.<br>
 &nbsp; &nbsp;loader baseURL:&#39;<a href="http://scribo.bioskop.fr/repository/" target="_blank">http://scribo.bioskop.fr/repository/</a>&#39;.<br>
<br>
 &nbsp; &nbsp;loader loadSourceFiles: #(&#39;scribo-np.89.mcz&#39; ).<br>
<br>
 &nbsp; &nbsp;loader installSourceFiles.!<br>
<br>
Also I found troulbles with two methods, I add my bad solution here.<br>
Without this, I can&#39;t run Aida/Scribo<br>
<br>
!SpTimestamp methodsFor: &#39;private&#39; stamp: &#39;edc 6/5/2008 10:26&#39; prior:<br>
73697887!<br>
underlyingTimestamp<br>
 &nbsp; &nbsp;^underlyingTimestamp asDate!<br>
<br>
!SpTimestamp methodsFor: &#39;converting&#39; stamp: &#39;edc 6/5/2008 11:00&#39; prior:<br>
38169516!<br>
asRFC1123StringOn: targetStream<br>
 &nbsp; &nbsp;&quot;^self<br>
 &nbsp; &nbsp;Code taken from Swazoo Timestamp extenton with the following comment:<br>
FIXME: Assumes<br>
 &nbsp; &nbsp;server&#39;s clock is GMT. Should convert server&#39;s clock to GMT if it is<br>
not. Besides that,<br>
 &nbsp; &nbsp;this whole method is really ugly.&quot;<br>
 &nbsp; &nbsp;targetStream nextPutAll: (self underlyingTimestamp asDate weekday<br>
copyFrom: 1 to: 3);<br>
 &nbsp; &nbsp; &nbsp; &nbsp;nextPutAll: &#39;, &#39;.<br>
 &nbsp; &nbsp;self underlyingTimestamp day &lt; 10 ifTrue: [targetStream nextPut: $0].<br>
 &nbsp; &nbsp;self underlyingTimestamp asDate printOn: targetStream format: #(1 2 3 $<br>
2 1).<br>
 &nbsp; &nbsp;targetStream space.<br>
 &nbsp; &nbsp;DateAndTime current printHMSOn: targetStream.<br>
 &nbsp; &nbsp;targetStream nextPutAll: &#39; GMT&#39;! !<br>
<br>
<br>
_______________________________________________<br>
Aida mailing list<br>
<a href="mailto:Aida at aidaweb.si">Aida at aidaweb.si</a><br>
<a href="http://lists.aidaweb.si/mailman/listinfo/aida" target="_blank">http://lists.aidaweb.si/mailman/listinfo/aida</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Nicolas Petton<br><br><a href="http://nico.bioskop.fr">http://nico.bioskop.fr</a>

------=_Part_7604_18746670.1212756652079--


More information about the Aida mailing list