Re: [Catalyst] Where is the form field lost?

2010-01-25 Thread Octavian Râşniţă
From: Charlie Garrison garri...@zeta.org.au Can you tell about those problems? I hope I won't create them in the inflator I want to create. I don't recall exactly, but IC::File had problems with multiple 'file' columns. I remember, the delete part was completely broken if all files were not in

Re: [Catalyst] Where is the form field lost?

2010-01-24 Thread Octavian Râşniţă
From: Charlie Garrison garri...@zeta.org.au On 24/01/10 at 10:47 PM +0200, Octavian Rasnita orasn...@gmail.com wrote: I made a InflateColumn::FileUpload inflator similar to InflateColumn::File, which also works with HTML::FormFu and it has an additional feature. I had some problems with

[Catalyst] Getting the file upload fields

2009-12-30 Thread Octavian Râşniţă
Hi, I have seen that after a form that contains a file upload field is submitted, I can't access the name of that field if it was sent empty (no file was submitted). I have tried to override more Catalyst methods like prepare_body_parameters, prepare_uploads, finalize_uploads, and even

Re: [Catalyst] Building complex layouts

2009-12-30 Thread Octavian Râşniţă
From: Pavel O. Karoukin pa...@yepcorp.com Hello, I wonder what is a best practice to build complex layouts (sidebars, forms in 'em, list of latest news in sidebar, etc)? Right now I see it in chaining several actions and each one adding content into stash. Is there any other dry approaches?

Re: [Catalyst] Limit Catalyst::Helper::Model::DBIC::Schema to a singletable ...

2009-12-25 Thread Octavian Râşniţă
From: Kiffin Gish kiffin.g...@planet.nl Normally myapp_create.pl is run with the whole database given on the command line, e.g. script/myapp_create.pl model DB DBIC::Schema MyApp::Schema \ create=static dbi:SQLite:myapp.db Can I restrict this to a single table or tables only? For example, I

[Catalyst] Accessing $self in a plugin?

2009-12-23 Thread Octavian Râşniţă
Hi, I use Catalyst::Controller::HTML::FormFu but in some actions I don't want to use the FormConfig attribute because it would automaticly generate and process a form, which takes much time. I want to do that only if the already generated template and data was not found in the cache. But

[Catalyst] Bug in latest Catalyst::Runtime?

2009-12-18 Thread Octavian Râşniţă
Hi, I found that in Catalyst::Runtime 5.80016 the following error still appears when there is a bug in the current application: [error] Caught exception in engine Can't use string (8e6ef33a63f84c0132bf6e605898b7cc) as a HASH ref while strict refs in use at

Re: [Catalyst] [ANNOUNCE] Catalyst-Runtime 5.80016

2009-12-15 Thread Octavian Râşniţă
From: Felix Antonius Wilhelm Ostmann ostm...@websuche.de Oleg Kostyuk schrieb: 2009/12/14 Alexander Hartmaier alexander.hartma...@t-systems.at: All app errors result in this cat error with the new version for me: [error] Caught exception in engine Can't use string

Re: [Catalyst] How to get the name of the subroutine accessed?

2009-12-08 Thread Octavian Râşniţă
2009/12/8 Octavian Râşniţă orasn...@gmail.com: Is there a similar method for $c-action that can be used for getting the name of the subroutine which is accessed? [...] If the information from my post from long ago [1] still holds true, you should be able to use $c-stack-[ -1 ] to get the most

[Catalyst] Conflict between C::TraitFor::Model::DBIC::Schema::Caching and C::P::I18N::DBI

2009-12-02 Thread Octavian Râşniţă
Hello, I've installed Catalyst::TraitFor::Model::DBIC::Schema::Caching and it seems to work fine, but it conflicts with Catalyst::Plugin::I18N::DBI. I made the following settings in order to be able to use C::TraitFor::... 'Model::DB' = { traits = ['Caching'], schema_class = 'BRK::Schema',

[Catalyst] local helper?

2009-11-25 Thread Octavian Râşniţă
Hi, I've created in MyApp/lib the module MyApp/lib/Catalyst/Helper/Model/MyHelper.pm But I can't run it using perl script/myapp_create.pl model MyModel MyHelper because myapp_create.pl doesn't add the local lib to @INC so it can't find it. Is there any reason the local lib is not added to

Re: [Catalyst] Organize tests in sub-directories

2009-11-25 Thread Octavian Râşniţă
From: Tomas Doran bobtf...@bobtfish.net On 24 Nov 2009, at 20:31, Octavian Râşniţă wrote: I would like to structure the t directory as lib/MyApp is structured. Is it possible to be able to configure the app somehow so `make test` checks all the test files even if they are in sub- directories

Re: [Catalyst] Organize tests in sub-directories

2009-11-25 Thread Octavian Râşniţă
From: Wallace Reis wall...@reis.org.br On 25/11/2009, at 09:36, Octavian Râşniţă wrote: This is good news. But unfortunately it executes only the tests from the t directory, not those from its subdirectories. I have tried to put this line of code in more places in Makefile.PL

[Catalyst] Organize tests in sub-directories

2009-11-24 Thread Octavian Râşniţă
Hello, I would like to structure the t directory as lib/MyApp is structured. Is it possible to be able to configure the app somehow so `make test` checks all the test files even if they are in sub-directories? `prove -r -l t` can do this, but it works well only under Linux or if I also add

[Catalyst] attrs for DBIx::Class::Row

2009-11-15 Thread Octavian Râşniţă
Hi, After I constructed a resultset object, I can get the hash of attributes used for generating it using: my $attrs = $rs-{attrs} But if I get a row object from that resultset, I can't get the attributes anymore using: my $row = $rs-first; my $attrs = $row-{attrs}; Is there a way of

Re: [Catalyst] Debian recommendation

2009-10-17 Thread Octavian Râşniţă
From: J. Shirley jshir...@gmail.com cpan look ModuleName $ perl Makefile.PL $ make $ make test $make install I can install the modules without problem (usually). However, I need to manually install each dependency. I've seen this strange thing under 2 Debian systems so I think it is not a

[Catalyst] Debian recommendation

2009-10-16 Thread Octavian Râşniţă
Hi, I've seen a recommendation on this list for Debian for running perl apps, and recently I started to use this distro. I've seen that I can install perl modules very hard under Debian if I use the CPAN shell. For example if I run $ cpan cpan install Class::MOP it gives an Unknown error

Re: [Catalyst] Debian recommendation

2009-10-16 Thread Octavian Râşniţă
From: J. Shirley jshir...@gmail.com Hi, I've seen a recommendation on this list for Debian for running perl apps, and recently I started to use this distro. I've seen that I can install perl modules very hard under Debian if I use the CPAN shell. For example if I run $ cpan cpan install

Re: [Catalyst] Deployment in practice

2009-10-11 Thread Octavian Râşniţă
From: Bill Moseley mose...@hank.org 2009/10/9 Octavian Râşniţă orasn...@gmail.com Hi, I've recently started to use Mercurial for revision control and the pages regarding the deployment of a Catalyst app from the Catalyst wiki also help me very much, but I still don't know what would

[Catalyst] Deployment in practice

2009-10-09 Thread Octavian Râşniţă
Hi, I've recently started to use Mercurial for revision control and the pages regarding the deployment of a Catalyst app from the Catalyst wiki also help me very much, but I still don't know what would be the best method for uploading the files to the server. How do you do it? Archive the

Re: [Catalyst] Deployment in practice

2009-10-09 Thread Octavian Râşniţă
From: J. Shirley jshir...@gmail.com On Fri, Oct 9, 2009 at 7:55 AM, Tobias Kremer tobias.kre...@gmail.comwrote: 2009/10/9 Octavian Râşniţă orasn...@gmail.com: I've recently started to use Mercurial for revision control and the pages regarding the deployment of a Catalyst app from

[Catalyst] use base vs use parent

2009-08-25 Thread Octavian Râşniţă
Hi, I've seen some Catalyst sample modules that use use base and some others that use use parent. I know that the recommendation could be to use Moose and extends..., but if Moose is not needed, what's the difference between use parent and use base? When should be use parent be used and

[Catalyst] add_columns()

2009-07-19 Thread Octavian Râşniţă
Hi, In DBIx::Class::ResultSource.pm's POD documentation I read: add_columns ... Adds columns to the result source. If supplied key = hashref pairs, uses the hashref as the column_info for that column. Repeated calls of this method will add more columns, not replace them. But in

[Catalyst] Catalyst tutorial

2009-07-19 Thread Octavian Râşniţă
In Catalyst::Manual::Tutorial::04_BasicCRUD.pod I read that we need to specify the ResultSet classes we want to use with: __PACKAGE__-resultset_class('MyApp::Schema::ResultSet::Book'); I've seen that it works even without it. Is this line really needed? Octavian

[Catalyst] Can't validate the user on dev.catalystframework.org

2009-06-20 Thread Octavian Râşniţă
Hi, I've tried for more times to create an user on dev.catalystframework.org but without success. It tells me that: We've sent you an email with an activation link. Please click on it to activate your account! The email was sent to orasn...@gmail.com. But I never received that email, not

Re: [Catalyst] Can't validate the user on dev.catalystframework.org

2009-06-20 Thread Octavian Râşniţă
From: Tomas Doran bobtf...@bobtfish.net On 20 Jun 2009, at 07:28, Octavian Râşniţă wrote: But I never received that email, not even in the SPAM folder. So I gave another email address, but I didn't receive any message at that email address either. Is there something wrong with the site

Re: [Catalyst] how do you distribute a catalyst app

2009-06-11 Thread Octavian Râşniţă
From: Hans Dieter Pearcey hdp.perl.catalyst.us...@weftsoar.netOn Wed, Jun 10, 2009 at 10:33:26PM +0300, Octavian Râşniţă wrote: When using this syntax, where can I specify the local path where I want to install the Some::Module? You never do that with local::lib. It sets up the env

Re: [Catalyst] how do you distribute a catalyst app

2009-06-11 Thread Octavian Râşniţă
From: Tomas Doran bobtf...@bobtfish.net Octavian Râşniţă wrote: When using this syntax for installing modules in the directory 'my_lwp' I don't know how I can specify the force parameter of the cpan shell. perl -MCPAN -Mlocal::lib=my_lwp -e 'CPAN::force(qw/install LWP/)' Cheers t0m Thank you

Re: [Catalyst] how do you distribute a catalyst app

2009-06-11 Thread Octavian Râşniţă
From: Hans Dieter Pearcey hdp.perl.catalyst.us...@weftsoar.net Failed 185/213 test programs. 20/536 subtests failed. (This error is given when I try to install Moose using the standard cpan command line also.) This isn't an error, this is a summary. No one can help you fix the problem if

Re: [Catalyst] how do you distribute a catalyst app

2009-06-10 Thread Octavian Râşniţă
From: Tomas Doran bobtf...@bobtfish.net Patricio A. Bruna wrote: Maybe i explain wrong. I did not mean load balance, i meant deployment. i develop my app on my box, and then i need to deploy it on the production server, with the same operating system. downloading all the modules from cpan is

Re: [Catalyst] how do you distribute a catalyst app

2009-06-10 Thread Octavian Râşniţă
From: Stuart Watt Why would you do that? If the module you're installing fails its tests, you should file a bug report. What kind of error? IME you shouldn't ever want to or need to force install a module. This should be a *colossal* red flag to you. ... /joel It is very possible

[Catalyst] Why it is better to use an ORM like DBIx::Class

2009-05-27 Thread Octavian Râşniţă
Hi, I corrected (re-written) that message in which I tried to show why it is better to use DBIC, because it doesn't affect the efficiency. Here it is. I hope it could be helpful. Please tell me if you think it needs improvements: Why it is better to use an ORM like DBIx::Class There are

Re: [Catalyst] Run the test server on a different port than 3000

2009-05-23 Thread Octavian Râşniţă
From: Tomas Doran bobtf...@bobtfish.net Tomas Doran wrote: and a new Catalyst-Devel will be released shortly.. This has now happened, please upgrade so that you don't have this problem again. Thanks t0m Thank you t0m! Now it works fine. Octavian

[Catalyst] Run the test server on a different port than 3000

2009-05-21 Thread Octavian Râşniţă
Hi, I tried: e:\web\ catalyst Testing e:\web\ cd Testing e:\web\Testing\ perl script/testing_server.pl -p 80 But it gave the message that the app can be accessed on the port 3000. I have also tried to start it on the port 82, but it started on the port 3000. I use perl 5.10.0 and Catalyst

Re: [Catalyst] Run the test server on a different port than 3000

2009-05-21 Thread Octavian Râşniţă
I have Catalyst::Devel 1.15 and I have also force installed it again, but it gives the same error. It works if I use the parameter -port, but it doesn't work with -p. Octavian - Original Message - From: Tomas Doran bobtf...@bobtfish.net To: The elegant MVC web framework

Re: [Catalyst] Run the test server on a different port than 3000

2009-05-21 Thread Octavian Râşniţă
From: Hans Dieter Pearcey hdp.perl.catalyst.us...@weftsoar.net On Thu, May 21, 2009 at 09:23:12PM +0300, Octavian Râşniţă wrote: I have Catalyst::Devel 1.15 and I have also force installed it again, but it gives the same error. You forgot to read the whole message: Update Catalyst::Devel

[Catalyst] unknown resource

2009-05-02 Thread Octavian Râşniţă
Hi, I've started to use fastcgi with Apache and after a little fight with it, I made it work, but I can't access /server-status anymore. I've checked and mod_status.so is loaded in httpd.conf: LoadModule status_module modules/mod_status.so and it is also configured to show the server

Re: [Catalyst] unknown resource

2009-05-02 Thread Octavian Râşniţă
From: Ash Berlin ash_c...@firemirror.com On 2 May 2009, at 09:25, Octavian Râşniţă wrote: Hi, I've started to use fastcgi with Apache and after a little fight with it, I made it work, but I can't access /server-status anymore. I've checked and mod_status.so is loaded in httpd.conf

Re: [Catalyst] Bad gateway error

2009-05-02 Thread Octavian Râşniţă
From: J. Shirley Then the Cookbook is wrong. I've never seen anything but a 500 error from any web server I've used. If you have a proxy in front, and the backend is down, you get a 502 error. -J If mod_perl is used, it is clear that there could be a reverse proxy or a load

[Catalyst] Unknown error

2009-05-01 Thread Octavian Râşniţă
Hi, I've tried to install Catalyst::Devel with ActivePerl 5.10.0 under Fedora, but I received the warning below. I read that bug ticket and I've seen that this bug was patched in perl 5.10.1. Does this mean that if I will compile Perl 5.10.0 from the tarball, it will give the same error?

[Catalyst] Avoid adding InflateColumn::DateTime when using the DBIC::Schema Catalyst helper?

2009-04-26 Thread Octavian Râşniţă
Hi, Is there a way of avoiding to add the InflateColumn::DateTime component to a DBIC class when using the DBIC::Schema catalyst helper? Or if the component is added, can I add something after do not modify anything above to disable it entirely? I want to do this because I have some

Re: [Catalyst] nmake catalyst_par

2009-04-20 Thread Octavian Râşniţă
From: Tomas Doran bobtf...@bobtfish.netOn 19 Apr 2009, at 17:27, Octavian Râşniţă wrote: With Catalyst 5.8 I've tried: E:\web\T2 perl Makefile.PL ... E:\web\T2 nmake ... E:\web\T2 nmake catalyst_par ... snip Could be an error of PAR, or something else? I guess you're using perl 5.8 rather

[Catalyst] nmake catalyst_par

2009-04-19 Thread Octavian Râşniţă
Hi, With Catalyst 5.8 I've tried: E:\web\T2 perl Makefile.PL ... E:\web\T2 nmake ... E:\web\T2 nmake catalyst_par ... Writing PAR t2.par # Until here is good, because with the previous version it gave an error and didn't want to create the par archive. E:\web\T2 parl t2.par

[Catalyst] ModPerl::Registry

2009-04-08 Thread Octavian Râşniţă
Hi, I know that if possible the mod_perl handlers are recommended and not ModPerl::PerlRun and neither ModPerl::Registry, but these options could be used to run Catalyst applications in less privileged servers because the server doesn't need to be restarted in order to start the application.

[Catalyst] Building a PAR file

2009-02-26 Thread Octavian Râşniţă
Hello, I've tried to create a PAR archive from a Catalyst app and I've done: 1. Put catalyst_par(); in Makefile.PL. 2. Run perl Makefile.PL 3. Run nmake catalyst_par But it gave the following error: Writing PAR acces.par NMAKE : fatal error U1077: 'E:\perl510\bin\perl.exe' : return code

Re: [Catalyst] Re: decoding in core

2009-02-23 Thread Octavian Râşniţă
From: Peter Karman pe...@peknet.com Neo [GC] wrote on 02/23/2009 09:41 AM: Does anyone know a _safe_ method to convert _any_ string-scalar to utf8? Something like anything_to_utf8($s) , regardless if $s contains ascii, latin1, utf8, tasty hodgepodge or hot fn0rd, utf8-flag is set or not and is

[Catalyst] Requirements for Catalyst

2009-02-21 Thread Octavian Râşniţă
Hello, It is very clear that a Catalyst app can't run on a shared host, but it requires either a dedicated server or a VPS. I am searching for web space providers that offer VPS and I've seen that they use to set their tariff plans mainly on the guaranteed memory, but I don't know which would

Re: [Catalyst] RFC: The paradox of choice in web development

2009-02-15 Thread Octavian Râşniţă
From: Dan Dascalescu ddascalescu+catal...@gmail.com I've just discovered Data::Dump but it appears to beat the crap out of Data::Dumper. Yet does it say anywhere Hey, if you're getting started with Perl and need to dump variables, use Data::Dump, and don't waste your time investigating other