[aida] Fixes for beta version of Scribo

Jaroslav Havlín jaroslav.havlin at gmail.com
Wed Jun 24 20:09:05 CEST 2009


Hello,

I have experienced some problems when trying to run Scribo 1.0 beta 1.
(The files used for installing Scribo and Aida are these:
Sport-2.031.mcz , Swazoo-2.2beta2.mcz, Aida6.0-beta.1.mcz,
Scribo1.0-beta.1.mcz.)

1) There is a missing method acceptInputs in WebApplication class.

acceptInputs
  self acceptInputsFrom: self session lastRequest.

2) The second problem occurs after uploading a new image to an
untitled blog post. The URL path does not match the filesystem path.

One way to fix this is to change one line in method documentDirectory
in class Document:

dir := dir, '/', self preferedUrlName , '-v', self versionNumber.

should be changed to

dir := dir, '/', ((self preferedUrlName) copyReplaceAll: ' ' with: '-'
) , '-v', self versionNumber.

The complete code of the method after the change is this:

documentDirectory
    "repository-root-dir/year of creation/month-day/prefered url
without .html - version nr/
    example: repository-biart/2005/05-16/SOP-12-10-1/ "
    | dir |
    ^self otherAt: #documentDirectory ifAbsent:
        [dir := self repository rootDirectory, '/', self
dateForStoring year printString.
        (SpFilename named: dir) asAbsoluteFilename exists ifFalse:
[(SpFilename named: dir) asAbsoluteFilename makeDirectory].
        dir := dir, '/',  self dateForStoring monthAndDayString.
        (SpFilename named: dir) asAbsoluteFilename exists ifFalse:
[(SpFilename named: dir) asAbsoluteFilename makeDirectory].
        dir := dir, '/', ((self preferedUrlName) copyReplaceAll: ' '
with: '-' ) , '-v', self versionNumber.
        (SpFilename named: dir) asAbsoluteFilename exists ifFalse:
[(SpFilename named: dir) asAbsoluteFilename makeDirectory] ifTrue:
[dir := self correctDir: dir].
        self documentDirectory: dir.
        dir].


Is there a recommended way to report bugs, or is it OK to use the
mailing list for it?

Kind regards,
 Jarda


More information about the Aida mailing list