On 29 Feb 2008, at 12:13, Peter Sørensen wrote:
I'm using catalyst and TT to develop a system, where
it is possible to search in system logfiles based
on predefined regex.
I need a way to BROWSE on the server filesystem.
I can use the directory plugin in TT but before
trying this I would ask if any other solutions
are around.
In the Catalyst book written by Jonathan Rockway, an example
implements a new Filesystem Model to read and write blog posts as
files on disk. This is IMO similar in concept to the thing you are
trying to do. Jonathan takes the example further with the Angerwhale
module available from CPAN.
Since you need to "search" in files, another angle would be to treat
the log files as tables using some kind of package based on
DBD::File. Once that's in place, the rest will follow as a normal
Catalyst application with a DBI-based Model.
--
Alessio Bragadini [EMAIL PROTECTED]
"One of these mornings / You're going to rise up singing
Then you'll spread your wings / And you'll take to the sky"
-- George & Ira Gershwin, "Summertime"
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/