PRFile, MAFileModel and friends
renggli at gmail.com
Mon Feb 1 20:59:31 MET 2010
> "directory" refers to a directory on the server's file system.
> The list of files presented by Pier is taken from the list of files in
> that directory. Files will appear and disappear, as well as changing
Ok, I see.
> So the problem is that if I create a Pier page that is correct at one
> time, it won't necessarily be correct, in the sense of matching the
> contents of the directory on disk, later.
Yes, such a use case is not out-of-the-box supported. You'll need to
do some programming here. Depending on how close you want to integrate
it, you can create your own PRStructure subclass that handles this for
you; or, as others already suggested, have a Seaside component that
does something meaningful with the file directory.
More information about the smallwiki