Re: [Catalyst] Unicode::Encoding - utf8 \xBA does not map to Unicode

2011-03-12 Thread Bernhard Graf
encoded character. What you have there is obviously the percent encoding of the ISO-8859-1 encoding of Kévyn. Therefore the correct RFC 3986 compliant URI-encoding for Kévyn would be K%C3%A9vyn. HTH Bernhard Graf ___ List: Catalyst@lists.scsys.co.uk

Re: [Catalyst] Deleting the expired session files?

2010-09-05 Thread Bernhard Graf
Octavian Rasnita wrote: I am trying to create a script that will be executed by a cron job which will delete all the expired session files, but without success. I use the Session::Store::File plugin. http://www.mail-archive.com/catalyst@lists.scsys.co.uk/msg08921.html HTH Bernhard

Re: [Catalyst] uri_for and unicode

2010-03-09 Thread Bernhard Graf
Am 09.03.2010 15:32, schrieb Octavian Rasnita: appropriate DBD::*/DBIC manpages how to do that) and don't use DBIx::Class::UTF8Columns. Is this a general recommendation? (For not using DBIx::Class::UTF8Columns) That's MY general recommendation. ;-) I tried this UTF8Columns a while ago,

Re: [Catalyst] uri_for and unicode

2010-03-09 Thread Bernhard Graf
Am 09.03.2010 11:26, schrieb Alex Povolotsky: uri_for seems to have some troubles with unicode. Use of uninitialized value within %URI::Escape::escapes in substitution iterator at /usr/local/lib/perl5/site_perl/5.10.1/Catalyst.pm line 1268. I remember, that there was quite a few progress in

Re: [Catalyst] uri_for and unicode

2010-03-09 Thread Bernhard Graf
Am 09.03.2010 14:30, schrieb Alex Povolotsky: After adding Catalyst::Plugin::Unicode::Encoding, it became MUCH worse. What was readable, became unreadable. What was unreadable, remained so. Replacing C::P::Unicode by C::P::Unicode::Encoding did not yield any difference. Then you are probably

Re: [Catalyst] Use CatalystX::SimpleLogin Globally

2010-02-06 Thread Bernhard Graf
John Atzger schrieb: I use CatalystX::SimpleLogin but I have to use Does('NeedsLogin') for every method. For controllers which require a login for anything, what I want is this: package Some::Controller::Stuff; use Moose; BEGIN { extend 'My::Controller::LoginRequired' } I tried

Re: [Catalyst] Use CatalystX::SimpleLogin Globally

2010-02-06 Thread Bernhard Graf
Bernhard Graf schrieb: # everything under /login needs login sub root : Chained(/) PathPart(admin) CaptureArgs(0) Does(NeedsLogin) {...} correction: # everything under /admin needs login ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] Q: CatalystX::SimpleLogin

2010-01-28 Thread Bernhard Graf
Tomas Doran schrieb: 1. Is there a simple way to change the settings for redirect_after_login_uri and redirect_after_logout_uri ? The 'redirect_after_logout_uri' is just a method, so you can write a method yourself to override it, but then you need code, not config. But that's not simple

Re: [Catalyst] Q: CatalystX::SimpleLogin

2010-01-28 Thread Bernhard Graf
Tomas Doran schrieb: If you want to override the login controller, then just don't add CX::SimpleLogin to your app at all, then make a lib/MyApp/Controller/Login.pm which subclasses CX::SimpleLogin::Controller::Login.. Ah! That makes sense. Actually I find that even cleaner than adding

[Catalyst] Q: CatalystX::SimpleLogin

2010-01-27 Thread Bernhard Graf
I have two questions about CX::SimpleLogin: 1. Is there a simple way to change the settings for redirect_after_login_uri and redirect_after_logout_uri ? 2. Why is the redirect code outsourced into a role (CX:S::TraitFor::Controller::Login::WithRedirect) when

[Catalyst] Q: Delete old session data

2010-01-25 Thread Bernhard Graf
quite useless. Bernhard Graf ___ 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] Q: Delete old session data

2010-01-25 Thread Bernhard Graf
| xargs rm or something similar.. (I'd probably wrap this in a script which is a bit smarter and reports / deals with failure better etc, but you get the idea).. So if C:P:S:Store::File doesn't honour any expiration information your suggestion makes sense. Bernhard Graf

Re: [Catalyst] UTF-8 and mails

2010-01-25 Thread Bernhard Graf
Jens Schwarz schrieb: first of all: I have read http://dev.catalystframework.org/wiki/tutorialsandhowtos/Using_Unicode (especially the Tips for Troubleshooting Unicode in Perl Web Applications) Nevertheless I have a strange UTF-8 problem that I need help with: Concerning UTF-8 everything

Re: [Catalyst] UTF-8 and mails

2010-01-25 Thread Bernhard Graf
helpful and comprehensive. But from your original post it didn't seem that the database was your problem, right? Bernhard Graf ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive

Re: [Catalyst] Re: Unicode trouble with Catalyst::Engine::FastCGI

2010-01-22 Thread Bernhard Graf
using the proxy-HTTP::Prefork combo for my project. Bernhard Graf ___ 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

Re: [Catalyst] Perl code attributes in Moose roles

2009-12-22 Thread Bernhard Graf
Tomas Doran schrieb: On 19 Dec 2009, at 22:47, Bernhard Graf wrote: Where can I add the ACL attributes for edit_new? Add them via config. See: http://blogs.perl.org/users/guillermo_roditi1/2009/12/reaction-and-crud-implemented-in-roles.html http://www.catalystframework.org/calendar

Re: [Catalyst] Perl code attributes in Moose roles

2009-12-22 Thread Bernhard Graf
this is beyond the things one would expect in an introduction. IMO the Cookbook is more appropriate for this. Will send you my patch as PM. Bernhard Graf ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

Re: [Catalyst] Perl code attributes in Moose roles

2009-12-21 Thread Bernhard Graf
Eden Cardim schrieb: Bernhard == Bernhard Graf cataly...@augensalat.de writes: Bernhard Now this becomes: Bernhard package MyApp::Base::User; with Bernhard 'MyApp::Role::Controller::Create'; Bernhard package MyApp::Base::Page; with Bernhard 'MyApp::Role

[Catalyst] Perl code attributes in Moose roles

2009-12-19 Thread Bernhard Graf
: http://lists.scsys.co.uk/pipermail/catalyst/2008-June/018954.html Is there a solution for this problem yet? Bernhard Graf ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] Perl code attributes in Moose roles

2009-12-19 Thread Bernhard Graf
::Controller::Create'; package MyApp::Base::Page; with 'MyApp::Role::Controller::Create'; Where can I add the ACL attributes for edit_new? Bernhard Graf ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo

Re: [Catalyst] Q: DBIC transaction around Catalyst action chain

2009-12-07 Thread Bernhard Graf
Octavian Râsnita schrieb: having all database access of a Cat action in a database transaction is easy: Wrap everything in $c-model('DB')-schema-txn_do(...) or use Catalyst::Action::DBIC::Transaction. But what to do with action chains? Read about txn_begin and txn_commit at:

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

2009-12-03 Thread Bernhard Graf
/023907.html still exists, even though it would be really easy to fix. Therefore I filed a bug report and hope to find it in 5.80016. Bernhard Graf (*) your = all contributors ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi

Re: [Catalyst] Re: Unicode trouble with Catalyst::Engine::FastCGI

2009-11-24 Thread Bernhard Graf
Tomas Doran schrieb: The FastCGI engine doesn't do anything with encoding/uft8, and nor does FCGI.pm This probably means (I'm guessing) that the xs part of FCGI doesn't correctly handle buffers which are characters rather than bytes. I wrote a test program to keep all possible side effects

[Catalyst] Unicode trouble with Catalyst::Engine::FastCGI

2009-11-23 Thread Bernhard Graf
webserver to C:E:HTTP::Prefork, which works fine, but I would prefer keeping FastCGI as an alternative. Bernhard Graf ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] Re: Unicode trouble with Catalyst::Engine::FastCGI

2009-11-23 Thread Bernhard Graf
: This module exports the functions Dump and Load. These functions are intended to work exactly like YAML.pm's corresponding functions. And that's not the case. And therefore you can't use it as a drop-in-replacement for other YAML modules. Bernhard Graf

Re: [Catalyst] Unicode in request captures

2009-10-27 Thread Bernhard Graf
Hi t0m, I filed a bug report together with patch and test about Unicode characters in request captures more than two weeks ago: https://rt.cpan.org/Public/Bug/Display.html?id=50339 *Taken* fine. I've got a branch on Catalyst currently to deal with some other encoding Captures /

[Catalyst] Question about C:P:Unicode(::Encoding)

2009-10-24 Thread Bernhard Graf
These plugins hook into prepare_parameters() to decode data. Why does it leave query_- and body_parameters untouched? -- Bernhard Graf ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

[Catalyst] Unicode in request captures

2009-10-24 Thread Bernhard Graf
While I am at encoding issues in Cat ... I filed a bug report together with patch and test about Unicode characters in request captures more than two weeks ago: https://rt.cpan.org/Public/Bug/Display.html?id=50339 It would be great if someone could care about it.

Re: [Catalyst] Re: Calling Controller Methods from inside begin or auto.

2009-09-29 Thread Bernhard Graf
Aristotle Pagaltzis schrieb: * monkey dwuep...@gmail.com [2009-09-29 14:35]: Is there another way to do the above without having to write the auth handling at the top of every method used to display pages? Chained dispatch. Do an auth check early in the chain, then the actions down the

Re: [Catalyst] best practice for a protocol mechanism?

2009-09-09 Thread Bernhard Graf
Zbigniew Lukasiak wrote: I am not entirely sure that I understand what you mean by protocol action - but how about a plain old method call: MyApp::Controller::Root-myProtocolAction( $c, some message that should be protocolled ); I think Jens is talking about logging (German:

Re: [Catalyst] Re: Upload problem

2008-12-23 Thread Bernhard Graf
very vague remembrance comes to my mind: I had a similar problem once, and AFAIR this was related to a broken Content-Length header... -- Bernhard Graf ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo

Re: [Catalyst] disable session in authentication

2008-12-11 Thread Bernhard Graf
. -- Bernhard Graf ___ 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] disable session in authentication

2008-12-10 Thread Bernhard Graf
to disable session usage for the HTTP auth realm only? -- Bernhard Graf ___ 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

Re: [Catalyst] disable session in authentication

2008-12-10 Thread Bernhard Graf
On Wed 10 Dezember 2008, Bernhard Graf wrote: I have an application that uses two different authentication methods based on C:P::Authentication: The default realm uses Catalyst::Authentication::Credential::Password with session and cookie for the usual web login with a username-password

Re: [Catalyst] Re: recommendation

2008-11-16 Thread Bernhard Graf
)]} } -- Bernhard Graf ___ 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] Sending email from a Catalyst app

2008-07-02 Thread Bernhard Graf
the config. Catalyst::View::Email is broken, see http://lists.scsys.co.uk/pipermail/catalyst/2008-January/016658.html and the replies. -- Bernhard Graf ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

Re: [Catalyst] Catalyst::View::Email broken?

2008-01-09 Thread Bernhard Graf
::Email'); -- Bernhard Graf ___ 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::View::Email broken?

2008-01-07 Thread Bernhard Graf
} is queried here, but never set. -- Bernhard Graf ___ 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

Re: [Catalyst] fastcgi, production catalyst and sigpipe

2007-12-27 Thread Bernhard Graf
://catalyst.perl.org/calendar/2006/4 -- Bernhard Graf ___ 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