Re: [Catalyst] Catalyst::Model::FileSystem? Anybody who's using their own wanna make one? =)
Catalyst::Model::File: http://search.cpan.org/~ash/Catalyst-Model-File-0.02/lib/Catalyst/Model/File.pm Based on Path::Class, so its platform independent. Any features missing from that that you think you'd want? Ash Dylan Vanderhoof wrote: I've noticed a few people posting about fielsystem models under their Catalyst applications lately, which makes a good deal of sense for many applications. However, when I look at code, each one has the filesystem calls fairly integrated with the model portion of the application. I'll admit I'm being lazy, since I'd like to write a fs-based catalyst application relativly soon, but has anybody considered using their groundwork here to write a Catalyst::Model::FileSystem module for CPAN? Obviously, it would need to be more generic and more full-featured than what's being used in the fs-based applications I've seen so far, but it needn't start with everything available. Any interest? I'd be happy to help out, since I'd like to use it, but I figure I'd see if somebody who's been doing this would be willing to lay some of the groundwork. -Dylan Vanderhoof ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Catalyst::Model::FileSystem? Anybody who's using their own wanna make one? =)
Any features missing from that that you think you'd want? A quick glance doesn't reveal how slurp is implemented, but hopefully you're using sysread. As for features, my app needs (and has implemented) atomic writes, extended filesystem attributes, ctime, mtime, etc. When I get a chance, I'll see what enhancements I can make, send you a patch, and then I'll use your model as a superclass for time. Reusability is good At some point I'm also going to write an SQL frontend to the filesystem, just for fun... (Unfortunately I have about 8 other things pending, so this is going to have to wait a week or two.) Also, it seems to me that there should be some layer above this that Catalyst just happens to use. No need to limit the Filesystem model to catalyst users only. Regards, Jonathan Rockway signature.asc Description: OpenPGP digital signature ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Catalyst::Model::FileSystem? Anybody who's using their own wanna make one? =)
That looks like it pretty well covers my need. Only other thing I'd find at all useful is a File::Type method, but I can easily call that as part of my wrapper model. It doesn't seem as useful in the generic one. Thanks again, Dylan -Original Message- From: Ash Berlin [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 1:08 PM To: The elegant MVC web framework Subject: Re: [Catalyst] Catalyst::Model::FileSystem? Anybody who's using their own wanna make one? =) Catalyst::Model::File: http://search.cpan.org/~ash/Catalyst-Model-File-0.02/lib/Catal yst/Model/File.pm Based on Path::Class, so its platform independent. Any features missing from that that you think you'd want? Ash Dylan Vanderhoof wrote: I've noticed a few people posting about fielsystem models under their Catalyst applications lately, which makes a good deal of sense for many applications. However, when I look at code, each one has the filesystem calls fairly integrated with the model portion of the application. I'll admit I'm being lazy, since I'd like to write a fs-based catalyst application relativly soon, but has anybody considered using their groundwork here to write a Catalyst::Model::FileSystem module for CPAN? Obviously, it would need to be more generic and more full-featured than what's being used in the fs-based applications I've seen so far, but it needn't start with everything available. Any interest? I'd be happy to help out, since I'd like to use it, but I figure I'd see if somebody who's been doing this would be willing to lay some of the groundwork. -Dylan Vanderhoof ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Catalyst::Model::FileSystem? Anybody who's using their own wanna make one? =)
At first glance, C::M::File seems to cover it. It exposes the Class::Path::File object, which includes a stat method, which was one of the big ones. I'll dig around with that in my copious freetime (haha) and see if I can come up with an addition feature list and/or some patches. -D -Original Message- From: Jonathan Rockway [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 1:19 PM To: The elegant MVC web framework Subject: Re: [Catalyst] Catalyst::Model::FileSystem? Anybody who's using their own wanna make one? =) What other features do you desire? Obviously, it would need to be more generic and more full-featured than what's being used in the fs-based applications I've seen so far, but it needn't start with everything available. ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/