[Catalyst] utf8 in mysql
Hi all. I have problem when fetch data from mysql. All data is in utf8 and in my phpmyadmin i can see all chars correctly. I dont know how to tell to my model to fetch data in utf8. With standart DBI module i can do it with : $dbh->do("set character set utf8"); $dbh->do("set names utf8"); Can u help me with idea please. Thanks in advance. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] utf8 in mysql
Thank you very much! It works, but whitout "mysql_enable_utf8 => 1, " ([error] Caught exception in engine "Wide character in syswrite at /usr/local/share/perl/5.8.8/Catalyst/Engine.pm line 626.") Tobias Kremer wrote: Quoting Angel Kolev <[EMAIL PROTECTED]>: Hi all. I have problem when fetch data from mysql. All data is in utf8 and in my phpmyadmin i can see all chars correctly. I dont know how to tell to my model to fetch data in utf8. With standart DBI module i can do it with : $dbh->do("set character set utf8"); $dbh->do("set names utf8"); Try this: __PACKAGE__->config( schema_class => 'MyApp::FooSchema', connect_info => [ 'your_dsn', 'username', 'password', { mysql_enable_utf8 => 1, on_connect_do => [ "SET NAMES 'utf8'", "SET CHARACTER SET 'utf8'", ], } ], ); HTH, --Tobias ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] utf8 in mysql
When i use "mysql_enable_utf8 => 1" the page in my browser is blank. It works for me only without this option. Thank you for the link. Jonathan Rockway wrote: Actually, this error message means that mysql is correctly giving you utf8. You *need* to have mysql_enable_utf8 => 1! You also need to load Catalyst::Plugin::Unicode to encode the characters that your application generates to octets that can be transferred over the network. Once you do that, your app will be correct. Please read: http://catalyst.perl.org/calendar/2006/21 Regards, Jonathan Rockway ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] utf8 in mysql
Jonathan Rockway wrote: It wasn't actually working, it just appeared to. The OP is getting a blank screen because he hasn't loaded Catalyst::Plugin::Unicode into his app yet. Regards, Jonathan Rockway Thank you very much. The page isnt blank now with: use Catalyst qw/-Debug ConfigLoader Static::Simple StackTrace Unicode #<== /; Because all my temlates, scripts and DB`s are in UTF8, probably i have to rewrite my project to be unicode compatible or only DB flow+body text? ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] utf8 in mysql
Hi, again. I have problem with my utf8 again. When i send request to my catalyst app from PC with encoding cp1251, i must use: require Encode; $string = Encode::decode('cp1251,$string'); to make it utf8 and put in mysql. How i can know what encoding the user will use? Is there any universal solution? ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] utf8 in mysql
Hi again :) I found a sollution i think. With Encode::Detect i can do: use Encode; require Encode::Detect; my $utf8 = decode("Detect", $data); And for now it works! More: use Encode::Detect::Detector; my $charset = detect($octets); It prints sended charset (eg windows-1251,UTF-8,KOI8-R) I have to try more test to be sure it works. If some one use that pls let me know what you think. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] DBIx relationships
Thank you very much, Peter. Yeah i use $c->stash->{books} = [$c->model('MyAppDB::Book')->all] in my template and it works. I just want to make too many changes in the result of it before send them to my TT. Now ill try what you wrote here. Thank you again. Angel 2007/12/8, Peter Edwards <[EMAIL PROTECTED]>: > > Angel, > > > > I'd recommend working through the tutorial, it explains many things > > > http://search.cpan.org/~jrockway/Catalyst-Manual-5.701003/lib/Catalyst/Manual/Tutorial.pod<http://search.cpan.org/%7Ejrockway/Catalyst-Manual-5.701003/lib/Catalyst/Manual/Tutorial.pod> > > > > Looking at your code, on each iteration with $line in $rs->next you are > setting the entire body, overwriting whatever you put in the previous time. > So you end up only showing the last row found. Something like this would > show all the lines > > > > $c->response->body( $c->response->body . $line->first_name . "\n" ); > > > > In practice you put DBIC objects like $rs in the stash and call DBIC > methods on them from inside your TT templates. > > > > In the tutorial in the controller: > http://search.cpan.org/~jrockway/Catalyst-Manual-5.701003/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod#CREATE_A_CATALYST_CONTROLLER<http://search.cpan.org/%7Ejrockway/Catalyst-Manual-5.701003/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod#CREATE_A_CATALYST_CONTROLLER> > > > > $c->stash->{books} = [$c->model('MyAppDB::Book')->all]; > > > > And then further down the tutorial inside the template: > http://search.cpan.org/~jrockway/Catalyst-Manual-5.701003/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod#Create_a_TT_Template_Page<http://search.cpan.org/%7Ejrockway/Catalyst-Manual-5.701003/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod#Create_a_TT_Template_Page> > > > > [% FOREACH book IN books -%] > > > > [% book.title %] > > [% book.rating %] > > ... > > > > [% END -%] > > > > > > Subscribe to the DBIx::Class user and developer list at > http://lists.scsys.co.uk/mailman/listinfo/dbix-class > > > > DBIC documentation map at > > > http://search.cpan.org/~blblack/DBIx-Class-0.07006/lib/DBIx/Class/Manual/DocMap.pod<http://search.cpan.org/%7Eblblack/DBIx-Class-0.07006/lib/DBIx/Class/Manual/DocMap.pod> > > > > > > Regards, Peter > > http://perl.dragonstaff.co.uk > > > > > > From: Angel Kolev [mailto:[EMAIL PROTECTED] > > > > Sorry but im just badly stucked at this :( > > I want to iterate using the model > > > > my $rs = $c->model('AppModelDB::ClientMale')->search(); > > while (my $line = $rs->next) { > > $c->response->body($line->first_name); > > } > > > > The result is always one name. I need all fields them to put them in TT > template. > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: > http://www.mail-archive.com/[EMAIL PROTECTED]/ > Dev site: http://dev.catalyst.perl.org/ > > ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] DBIx relationships
2007/12/8, J. Shirley <[EMAIL PROTECTED]>: > > > First, two things: > #1. This is not the DBIC mailing list > #2. It is called "DBIx::Class" or "DBIC". DBIx is an entire namespace > hosting many projects. DBIx::Class is just one of those projects. > > Thanks, > -Jay > Sorry but im just badly stucked at this :( I want to iterate using the model my $rs = $c->model('AppModelDB::ClientMale')->search(); while (my $line = $rs->next) { $c->response->body($line->first_name); } The result is always one name. I need all fields them to put them in TT template. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] DBIx relationships
Guys, i cant understand relationships yet (has_many and many_to_many too). I have 3 tables in my datebase: "males" (id,first_name,family_name) etc "females" (id,first_name,family_name) etc and "family" (id,family,city,address) etc All "id"s are equal. I have classes for all of them (MyApp::Males,::Females,::Family). Every male and female with same ID belongs to same ID in the "family" table. So i want to fetch one "line" through MyApp::Family at once. Something like: $c->model('AppModelDB::Family')->family #id,city,first_name(female),first_name(male) Thank you ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] error handling
Hi,all. Can anyone eplain me a bit about error handling. Where i can catch it and when? I use this: MyApp::C::MyController sub auto : Private { my ($self, $c) = @_; if ($c->error) { $c->stash->{error} = " Critical ERROR!! "; $c->forward('/error'); $c->error(0); return 0; } } This works but then all my subs in this controller are redirected to /error. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] error handling
sub auto : Private { my ($self, $c) = @_; if (@{$c->error}) { $c->stash->{error} = " Critical ERROR!! Probably missing data in database."; $c->forward('/error'); $c->error(0); return 0; } } This dont work. @{$c->error} or scalar @{$c->error} always print 0 in my debug screen. Felix Antonius Wilhelm Ostmann wrote: $c->error is a arrayref or not? So you must do this: if( @{$c->error} ) { ... } Angel Kolev schrieb: Hi,all. Can anyone eplain me a bit about error handling. Where i can catch it and when? I use this: MyApp::C::MyController sub auto : Private { my ($self, $c) = @_; if ($c->error) { $c->stash->{error} = " Critical ERROR!! "; $c->forward('/error'); $c->error(0); return 0; } } This works but then all my subs in this controller are redirected to /error. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] error handling
Im not sure, cuz if searching in my model Model fails this print whole page with debug/error instead of my /error page :) Felix Antonius Wilhelm Ostmann wrote: So you dont have any error :) you should be happy ;) Angel Kolev schrieb: sub auto : Private { my ($self, $c) = @_; if (@{$c->error}) { $c->stash->{error} = " Critical ERROR!! Probably missing data in database."; $c->forward('/error'); $c->error(0); return 0; } } This dont work. @{$c->error} or scalar @{$c->error} always print 0 in my debug screen. Felix Antonius Wilhelm Ostmann wrote: $c->error is a arrayref or not? So you must do this: if( @{$c->error} ) { ... } Angel Kolev schrieb: Hi,all. Can anyone eplain me a bit about error handling. Where i can catch it and when? I use this: MyApp::C::MyController sub auto : Private { my ($self, $c) = @_; if ($c->error) { $c->stash->{error} = " Critical ERROR!! "; $c->forward('/error'); $c->error(0); return 0; } } This works but then all my subs in this controller are redirected to /error. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] View plugin for excell/OO
Is there any catalyst 'View' plugin for excel/open office sheets? ___ 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/
Re: [Catalyst] View plugin for excell/OO
Jens Gassmann wrote: Hi Angel, > Is there any catalyst 'View' plugin for excel/open office sheets? http://search.cpan.org/~stevan/Catalyst-View-Excel-Template-Plus-0.01/lib/Catalyst/View/Excel/Template/Plus.pm jens I want to export SQL with DBIx::Class to excel sheet, but Catalyst-View-Excel-Template-Plus is not enough documented. Can anyone show me examples pls. Thanks. ___ 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/
Re: [Catalyst] View plugin for excell/OO
Peter Karman wrote: Angel Kolev wrote on 1/14/08 6:50 AM: Jens Gassmann wrote: Hi Angel, > Is there any catalyst 'View' plugin for excel/open office sheets? http://search.cpan.org/~stevan/Catalyst-View-Excel-Template-Plus-0.01/lib/Catalyst/View/Excel/Template/Plus.pm jens I want to export SQL with DBIx::Class to excel sheet, but Catalyst-View-Excel-Template-Plus is not enough documented. Can anyone show me examples pls. Thanks. Look at CatalystX::CRUD::View::Excel. http://search.cpan.org/~karman/CatalystX-CRUD-View-Excel-0.03/ It blows empty file. I cant found where is my fault: package MyApp::View::Excel; use strict; use base 'CatalystX::CRUD::View::Excel'; __PACKAGE__->config( TEMPLATE_EXTENSION => 'tt', etp_config => { INCLUDE => [ 'root/src/sheets' ], } ); 1; In MyApp::Archives: sub export : Local { my ($self, $c) = @_; $c->stash->{worksheet_name} = 'My Archive'; $c->stash->{template}='archive_export'; $c->stash->{current_view} = 'Excel'; } the file archive_report.tt is in MyApp/root/src/sheets xls that i receive is named myapp_archives_export.xls Help pls ___ 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/
[Catalyst] Help with Cwd Error
after some upgrades of my perl modules: [EMAIL PROTECTED]:~/progs/MyApp$script/myapp_server.pl /usr/bin/perl: symbol lookup error: /usr/local/lib/perl/5.8.8/auto/Cwd/Cwd.so: undefined symbol: strlcpy Can you help me please ___ 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/
Re: [Catalyst] Help with Cwd Error
Thanks, Dave. This helps PathTools-3.26_01<http://search.cpan.org/%7Ekwilliams/PathTools-3.26_01/> 2008/1/16, Dave Rolsky <[EMAIL PROTECTED]>: > > On Wed, 16 Jan 2008, Jonathan Rockway wrote: > > > > > On Wed, 2008-01-16 at 20:41 +0200, Angel Kolev wrote: > >> after some upgrades of my perl modules: > >> [EMAIL PROTECTED]:~/progs/MyApp$script/myapp_server.pl > >> /usr/bin/perl: symbol lookup > >> error: /usr/local/lib/perl/5.8.8/auto/Cwd/Cwd.so: undefined symbol: > >> strlcpy > > > > This bug bit Andreas' smoker also. I don't know of the fix yet, but > > I'll reply to this message if I find anything. (The dist in question is > > PathTools; try downgrading that.) > > There's a fixed version of PathTools on CPAN (3.26_01 IIRC). > > > -dave > > /*=== > VegGuide.Orgwww.BookIRead.com > Your guide to all that's veg. My book blog > ===*/ > > ___ > 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/ > ___ 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/
[Catalyst] Current Auth method
Hi, i read many posts about Authentication/ACL in catalyst last time. I make my app reading Catalyst manual in CPAN. Is that the right way now or i have to use different one? Sorry if same post is posted alredy but im confused to make a decision what to read :) Thanks! ___ 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/
Re: [Catalyst] contollers being cached.
Sometimes if you have error in your code server is not restarted even with '-r' and without error message. If you observe 'caching' just restart the server and you will see the error. Tyler Bird wrote: Hi, I just installed catalyst and I change parameter in my controller file say to retrieve a different ranking of books $context->stash->{books} = [ $context->model('MyAppDB::Book')->search( { rating => 5 } ) ]; to $context->stash->{books} = [ $context->model('MyAppDB::Book')->search( { rating => 4} ) ]; but when I visit the generated page it will not show the 4 rankings UNTIL I restart the catalyst test server. How can I make it so that all changes to controllers are automatically recognized and not cached until you restart the webserver? Thanks so much Tyler ___ 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/ ___ 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/
[Catalyst] Catalyst and PayPal
Hi fellas. I plan to include PayPal payment possibility in my cat website. Is there any plugin/tool that works with the paypal developers toolkit https://www.paypal.com/cgi-bin/webscr?cmd=p/pdn/software_dev_kit_php-outside Can anyone give me a direction. Thanks. ___ 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/
Re: [Catalyst] Catalyst and PayPal
Zbigniew Lukasiak wrote: On Mon, Apr 21, 2008 at 1:43 PM, Kieren Diment <[EMAIL PROTECTED]> wrote: On 21 Apr 2008, at 21:22, Angel Kolev wrote: Hi fellas. I plan to include PayPal payment possibility in my cat website. Is there any plugin/tool that works with the paypal developers toolkit https://www.paypal.com/cgi-bin/webscr?cmd=p/pdn/software_dev_kit_php-outside Can anyone give me a direction http://search.cpan.org/~mock/Business-PayPal/ # simplest http://search.cpan.org/~scottw/Business-PayPal-API # newest and probably most complete http://search.cpan.org/~sherzodr/Business-PayPal-IPN # most reviewed on cpanratings. Whichever one you go with a base controller (e.g. Catalyst::Controller::Business::Paypal) onto cpan would be appreciated. I am not so sure if the, often repeated here, advice to build everything as a base controller is a good one. Let's say you would like to use the PayPal thing and FormFu - and bang you are dealing with the tricky area of Multiple Inheritance. 'Composition over Inheritance' is popular in other circles. I dont need FormFu, because i will use Template toolkit only. May be Catalyst::Controller::Business::Paypal is good enough solution. Im not familiar with paypal, but can i test some payments without "real" money transactions? ___ 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/
[Catalyst] flash and Template::Stash::ForceUTF8
Hello, group. I use 'flash' to share some params across the sessions and then redirect. sub edit : Local { my ( $self, $c) = @_; my $edit = $c->request->params->{section}|| $c->flash->{section}|| ""; $c->flash->{section} ='Pricing'; $c->res->redirect($c->uri_for('/clients/edit')); # redirect to the same place but with different params } I use Template::Stash::ForceUTF8 and get following error when i try to fetch $edit: undef error - flash takes a hash or hashref at /usr/local/share/perl/5.8.8/Template/Stash/ForceUTF8.pm line 12 Here is the line of Template::Stash::ForceUTF8: sub get { my $self = shift; my $result = $self->SUPER::get(@_); ### Line 12 return $result if ref $result; Encode::_utf8_on($result) unless Encode::is_utf8($result); return $result; } Is this a bug or the problem is in my code? Thanks ___ 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/
[Catalyst] Debug with FCGI
Hi all. I run my cat app as standalone FCGI server+apache2: script/myapp_fastcgi.pl -l /tmp/myapp.socket -n 5 How can i run it in debug mode same as catalyst development server? ___ 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/
Re: [Catalyst] Debug with FCGI
Chris Dolan wrote: On Aug 1, 2008, at 6:28 AM, Moritz Onken wrote: Try CATALYST_DEBUG=1 script/myapp_fastcgi.pl -l /tmp/myapp.socket -n 5 Prefixing "env CATALYST_DEBUG=1" will work in more shells than just "CATALYST_DEBUG=1". Chris ___ 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/ Doesn`t work too. All debug output goes to apache log. I tryed with -e option - same result. ___ 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/
[Catalyst] new catalyst features
Hi all. I wrote last my cat app 5 months ago and i dont know if catalyst is changed. Where i can check for all new features/sites/etc about Cat? Is there any major changes or anythink i have to know to continue writing catapps? Best regards! ___ 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/
[Catalyst] REST and text/html not supported
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all i have controller Myapp::Controller::Offers with "use parent 'Catalyst::Controller::REST'" where all RESTed requests works fine, but then i have Myapp::Controller::Offers::Create where i dont want C::C::REST to work, because when i send common form with content type 'application/x-www-form-urlencoded' to /offers/create/done i recieve 415 "Content-Type text/html is not supported". The "done" method is: sub done: Local: ActionClass('RenderView') I dont want this controller to be RESTish or atleast how i can enable text/html content types here? -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpJJekACgkQlAw25U6UlpCgsQCfWamzBWlE/tU2eMHbnb9HHv6s KRQAnRMAnF6Sjf2RO6gGH9gaEJpzSTqa =wwA/ -END PGP SIGNATURE- ___ 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/
Re: [Catalyst] REST and text/html not supported
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks! Now it works. Alejandro Imass wrote: > You can override the default serializers: > > __PACKAGE__->config( > 'default' => 'application/json', > 'stash_key' => 'rest', > 'map' => { > 'text/html' => [ 'View', 'TT', ], > 'text/xml' => [ 'View', 'TT', ], > }, > ); > > > On Tue, Jun 30, 2009 at 4:07 PM, Angel Kolev wrote: > Hi all > i have controller Myapp::Controller::Offers with "use parent > 'Catalyst::Controller::REST'" where all RESTed requests works fine, but > then i have Myapp::Controller::Offers::Create where i dont want > C::C::REST to work, because when i send common form with content type > 'application/x-www-form-urlencoded' to /offers/create/done i recieve 415 > "Content-Type text/html is not supported". The "done" method is: > sub done: Local: ActionClass('RenderView') > I dont want this controller to be RESTish or atleast how i can enable > text/html content types here? >> ___ 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/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpJKvsACgkQlAw25U6UlpDefACgpRwH5cuOQAKFSNLM4Ha8HKT3 2xAAn3x+1IoEXq8NW009kf9ABk0xpFsU =DxEk -END PGP SIGNATURE- ___ 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/