UnixFileDirectory - moved image, need to move dir access

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

UnixFileDirectory - moved image, need to move dir access

Brad Fuller
I created a pier image and then moved it to a different server. Thus, I
get a walkback when Pier tries to display an graphic.

It appears that MAExternalFileModel uses a dictionary to maintain the
directory location

classPool: a Dictionary(#BaseDirectory->UnixFileDirectory on
'/my/path/to/files' #BaseUrl->nil)

my questions are does anyone know if there are other gotchas about
moving the image? How should I change this? Is there a global way of
changing the location for access? I have a feeling that there will be
more walkbacks because I moved the pier image from one server to another.

thanks,
brad

--
brad fuller
  http://www.Sonaural.com/
  +1 (408) 799-6124


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: UnixFileDirectory - moved image, need to move dir access

Lukas Renggli
> It appears that MAExternalFileModel uses a dictionary to maintain the
> directory location
>
> classPool: a Dictionary(#BaseDirectory->UnixFileDirectory on
> '/my/path/to/files' #BaseUrl->nil)

This is part of the file-model of Magritte. Some time ago I changed
this model to allow storing files externally as opposed to enforce the
use of a ByteArray within the image. The class MAExternalFileModel has
a two class variables (this is not really a dictionary) that allow to
configure these external files further. There are accessors on the
class-side that you can use to configure these settings:

MAExternalFileModel class>>baseDirectory: aStringOrDirectory
        "Defines the base-directory where the files are stored. This defaults
to a subdirectory of the current image-location."

MAExternalFileModel class>>baseUrl: aString
        "Defines the base-URL where the files are served from, when using an
external web server. This setting is left to nil by default, causing
the files to be served trough the image."

> my questions are does anyone know if there are other gotchas about
> moving the image? How should I change this? Is there a global way of
> changing the location for access? I have a feeling that there will be
> more walkbacks because I moved the pier image from one server to another.

No, I don't think so. Copy the base-directory to your new server and
update the setting if necessary.

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: UnixFileDirectory - moved image, need to move dir access

Brad Fuller
Lukas Renggli wrote:

>> It appears that MAExternalFileModel uses a dictionary to maintain the
>> directory location
>>
>> classPool: a Dictionary(#BaseDirectory->UnixFileDirectory on
>> '/my/path/to/files' #BaseUrl->nil)
>
> This is part of the file-model of Magritte. Some time ago I changed
> this model to allow storing files externally as opposed to enforce the
> use of a ByteArray within the image. The class MAExternalFileModel has
> a two class variables (this is not really a dictionary) that allow to
> configure these external files further. There are accessors on the
> class-side that you can use to configure these settings:
>
> MAExternalFileModel class>>baseDirectory: aStringOrDirectory
>     "Defines the base-directory where the files are stored. This defaults
> to a subdirectory of the current image-location."
>
> MAExternalFileModel class>>baseUrl: aString
>     "Defines the base-URL where the files are served from, when using an
> external web server. This setting is left to nil by default, causing
> the files to be served trough the image."
>
>> my questions are does anyone know if there are other gotchas about
>> moving the image? How should I change this? Is there a global way of
>> changing the location for access? I have a feeling that there will be
>> more walkbacks because I moved the pier image from one server to another.
>
> No, I don't think so. Copy the base-directory to your new server and
> update the setting if necessary.

I did have to update the setting. Seems to work fine, so far.

Thanks,
brad

--
brad fuller
  http://www.Sonaural.com/
  +1 (408) 799-6124


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside