[Catalyst] Directory with Catalyst::Model::File

2006-12-20 Thread Xavier Robin
Hello, I want to save uploaded files in a directory specific for the user (using the user_id). For example, the files of user 326 would be saved in directory /root/files/3/2/6/. I use Catalyst::Model::File to do this. It's really great! I configured it to store files in /root/files/ by default

[Catalyst] 404 Not Found

2006-12-20 Thread Octavian Rasnita
Hi, I have made the following controller: package TranzactiiBursiere::Controller::Bunatati; use strict; use warnings; use base 'Catalyst::Controller'; sub bunatati : General { my ( $self, $c ) = @_; $c-res-body(okokok); } 1; I have tried to access: http://www.domain-name.ro/bunatati But

Re: [Catalyst] 404 Not Found

2006-12-20 Thread Adam Jacob
On Wed, Dec 20, 2006 at 08:05:36PM -0800, Octavian Rasnita wrote: package TranzactiiBursiere::Controller::Bunatati; use strict; use warnings; use base 'Catalyst::Controller'; sub bunatati : General { my ( $self, $c ) = @_; $c-res-body(okokok); } 1; Try: sub buntati :Path

Re: [Catalyst] templates

2006-12-20 Thread John Napiorkowski
--- Octavian Rasnita [EMAIL PROTECTED] wrote: Hi, Could you please tell me why the templates should be put under the /root directory? Well, the only good reason I can think of is that since it's the default all other Catalyst developers will look for them there first. Otherwise I know

Re: [Catalyst] 404 Not Found

2006-12-20 Thread John Napiorkowski
--- Octavian Rasnita [EMAIL PROTECTED] wrote: Hi, I have made the following controller: package TranzactiiBursiere::Controller::Bunatati; use strict; use warnings; use base 'Catalyst::Controller'; sub bunatati : General { my ( $self, $c ) = @_; $c-res-body(okokok); } 1;

Re: [Catalyst] templates

2006-12-20 Thread Jonathan Rockway
Octavian Rasnita wrote: Hi, Could you please tell me why the templates should be put under the /root directory? Wouldn't be more appropriate to have a templates directory on the same directory where /root is? C::View::TTSite does this (although they spell templates as src, but for

Re: [Catalyst] templates

2006-12-20 Thread Daniel McBrearty
I have my templates at the same level as root as you mention, I've not come across any problems. On 12/20/06, John Napiorkowski [EMAIL PROTECTED] wrote: --- Octavian Rasnita [EMAIL PROTECTED] wrote: Hi, Could you please tell me why the templates should be put under the /root directory?

Re: [Catalyst] templates

2006-12-20 Thread Bill Moseley
On Wed, Dec 20, 2006 at 08:44:07PM -0800, Octavian Rasnita wrote: Hi, Could you please tell me why the templates should be put under the /root directory? I have all my content under root/ -- which includes templates, static, js, and css -- all as separate directories. There's no content in

Re: [Catalyst] 404 Not Found

2006-12-20 Thread Octavian Rasnita
Hi, You might find it easier to get started with Catalyst by running the development server instead of trying to run under apache right from the start. It's actually pretty robust, I have three applications running in house for light load duty. Add in Sqlite and PAR and you got some easy to

Re: [Catalyst] 404 Not Found

2006-12-20 Thread Octavian Rasnita
From: Adam Jacob [EMAIL PROTECTED] Try: sub buntati :Path :Args(0) { } Yes this way works. or sub buntati :Index { } Which does the same thing, basically. Unfortunately that way it doesn't work, but it executes the default action from Root.pm instead. Anyway, I have seen that the

[Catalyst] VMware Image

2006-12-20 Thread Rhett Creighton
Is anyone working on a vmware image for Catalyst like the docs say? I'm starting to make one for myself, maybe with damn small linux. Though, I've never done this before. Let me know if anyone has suggestion, or wants to help, or already did this. Rhett

Re: [Catalyst] VMware Image

2006-12-20 Thread Brian
If that is so you can download the image and have a working development system, I'd love it. I want to look into Catalyst (currently use PHP / Smarty), but don't have a lot of spare time right now to research it. A ready to run image would make it way easier to get started, especially if it

Re: [Catalyst] VMware Image

2006-12-20 Thread Daniel McBrearty
does anyone have workable hosting for such a thing? I do my dev on an Ubuntu VM running on an XP host. It wouldn't be *that* much hassle for me to clone what I have, clean up a bit, and put a basic cat install on there. might have to wait a few weeks though, all the spare time I have goes into

Re: [Catalyst] VMware Image

2006-12-20 Thread Rhett Creighton
I'm glad to hear it might be helpful. I'm probably not the best person for this job because I've never done this before, but I'll give it a shot. I'm going to try to do it for VMware because a VMware player is free (as in beer). However, Parallels has MacOS support, and overall seems to run

Re: [Catalyst] VMware Image

2006-12-20 Thread Brian
Do you know what the approximate filesize would be (zipped or RAR'd)? Ubuntu would be great. Thanks, Brian Daniel McBrearty wrote: does anyone have workable hosting for such a thing? I do my dev on an Ubuntu VM running on an XP host. It wouldn't be *that* much hassle for me to clone what I

Re: [Catalyst] VMware Image

2006-12-20 Thread Joe Landman
Rhett Creighton wrote: Is anyone working on a vmware image for Catalyst like the docs say? I'm Yes. Linux based, OpenSuSE specifically. Running into issues with their Perl. starting to make one for myself, maybe with damn small linux. Though, I've never done this before. Let me know

Re: [Catalyst] VMware Image

2006-12-20 Thread Rhett Creighton
It is definately possible to make a pretty useable package on the order of 100 MB. Maybe a minimal ubuntu install would be closer to 200 MB I think. Rhett On Wed, 20 Dec 2006, Brian wrote: Do you know what the approximate filesize would be (zipped or RAR'd)? Ubuntu would be great.

Re: [Catalyst] VMware Image

2006-12-20 Thread Daniel McBrearty
Not sure. I've never tried before. I'm just cloning my m/c now. All I have to do then would be to remove all my working source and so on from my home, and change the password. That should leave you with a working cat install plus all the DBIx, TT, as well as apache, postgres and mysql. It might

Re: [Catalyst] 404 Not Found

2006-12-20 Thread Jonathan Rockway
On Thursday 21 December 2006 01:15, Octavian Rasnita wrote: I have tried it, and of course it works, but it doesn't work with Apache right. Apache sees a file named bunatati.tt in /root and I cannot access http://localhost/bunatati because of that. Why even allow apache to know that root/