Re: [Catalyst] Remove Catalyst and start over?

2012-03-23 Thread Matthias Dietrich
Hi,

Am 23.03.2012 um 19:02 schrieb Robyn Jonahs:

 cpan upgrade Moose::.*

try: `upgrade Moose` inside of the CPAN shell.

Instead of using CPAN.pm I recommend using cpanm.  Install it by copypasting 
this into your terminal:

   curl -L http://cpanmin.us | perl - --sudo App::cpanminus

Then run `cpanm Moose` (prepend sudo if you need).  It's easier and much 
faster :-).

And because you're new to Perl: don't copy scripts from a module release, 
install the module instead and use the scripts afterwards (except you know what 
you're doing).

Best,
 Matthias

-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Mobil: +49  151 / 50 60 78 64
71638 Ludwigsburg|  WWW  :  http://www.rainboxx.de




___
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] Remove Catalyst and start over?

2012-03-23 Thread Matthias Dietrich
Sorry for top posting - iPhone^^.

Robyn, just something I've noticed: is there a reason that you're using an 
ActivePerl instead the system Perl (or one brewed with perlbrew)?

I think some other modules are out of date, too. You could update all your 
modules, if you don't have to rely on some specific versions (see cpanm docs, 
cannot search for the correct command atm), or try to update one by one (here: 
update Class::Load).

Just my thoughts.

Matthias

-- 
   
Sent from my iPhone so expect spelling errors and stuff.

rainboxx Matthias Dietrich
Freelance Software Engineer

rainboxx
Königsallee 43
71638 Ludwigsburg
+4915150607864

Vist: http://www.rainboxx.de

Am 23.03.2012 um 23:12 schrieb Robyn Jonahs learn.catal...@gmail.com:

 So Moose said that it was all updated yet it did not have the command line 
 file moose-outdated until I ran the cpanm Moose command (sudo if required) 
 Also, following the Moose intro in the Definitive Guide to Catalyst I did 
 not have module-starter until I ran cpanm Module::Starter. But I still get 
 the same error
 
 CrashCOurse-Point$ perl -Ilib t/00-load.t 
 not ok 1 - use CrashCOurse::Point;
 #   Failed test 'use CrashCOurse::Point;'
 #   at t/00-load.t line 6.
 # Tried to use 'CrashCOurse::Point'.
 # Error:  load_first_existing_class is not exported by the Class::Load 
 module
 # Can't continue after import errors at 
 /usr/local/ActivePerl-5.12/site/lib/Moose/Util.pm line 12
 # BEGIN failed--compilation aborted at 
 /usr/local/ActivePerl-5.12/site/lib/Moose/Util.pm line 12.
 # Compilation failed in require at 
 /usr/local/ActivePerl-5.12/site/lib/Moose/Meta/Class.pm line 28.
 # BEGIN failed--compilation aborted at 
 /usr/local/ActivePerl-5.12/site/lib/Moose/Meta/Class.pm line 28.
 # Compilation failed in require at 
 /usr/local/ActivePerl-5.12/site/lib/Moose.pm line 28.
 # BEGIN failed--compilation aborted at 
 /usr/local/ActivePerl-5.12/site/lib/Moose.pm line 28.
 # Compilation failed in require at lib/CrashCOurse/Point.pm line 2.
 # BEGIN failed--compilation aborted at lib/CrashCOurse/Point.pm line 2.
 # Compilation failed in require at (eval 4) line 2.
 # BEGIN failed--compilation aborted at (eval 4) line 2.
 Bail out!
 # Testing CrashCOurse::Point , Perl 5.012003, perl
 Can't locate object method new via package CrashCOurse::Point at 
 t/00-load.t line 11.
 1..1
 # Looks like you failed 1 test of 1.
 # Looks like your test exited with 255 just after 1.
 
 I am out of ideas for where to find the problem.
 
 
 On Fri, Mar 23, 2012 at 2:52 PM, Robyn Jonahs learn.catal...@gmail.com 
 wrote:
 On Fri, Mar 23, 2012 at 2:25 PM, Matthias Dietrich mdietr...@cpan.org wrote:
 Hi,
 
 Am 23.03.2012 um 19:02 schrieb Robyn Jonahs:
 
 cpan upgrade Moose::.*
 
 try: `upgrade Moose` inside of the CPAN shell.
 
 Instead of using CPAN.pm I recommend using cpanm.  Install it by copypasting 
 this into your terminal:
 
curl -L http://cpanmin.us | perl - --sudo App::cpanminus
 
 Then run `cpanm Moose` (prepend sudo if you need).  It's easier and much 
 faster :-).
 
 And because you're new to Perl: don't copy scripts from a module release, 
 install the module instead and use the scripts afterwards (except you know 
 what you're doing).
 
 Best,
  Matthias
 
 -- 
 rainboxx Software Engineering
 Matthias Dietrich
 
 rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
 Königsallee 43   |  Mobil: +49  151 / 50 60 78 64
 71638 Ludwigsburg|  WWW  :  http://www.rainboxx.de
 
 
 
 
 
 ___
 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/
 
 
 
 Thanks guys.
 
 CPAN and cpanm both say that Moose is up to date.
 
 cpanm Moose
 Moose is up to date. (2.0402)
 
 I also found the location of the catalyst.pl script and made sure that my 
 PATH saw it. This fixed the problem where I could not call catalyst.pl from 
 the command line. However I still get these errors when I try to create a new 
 Catalyst App... 
 
 test$ catalyst.pl MyApp
 
 load_first_existing_class is not exported by the Class::Load module
 Can't continue after import errors at 
 /usr/local/ActivePerl-5.12/site/lib/Moose/Util.pm line 12
 BEGIN failed--compilation aborted at 
 /usr/local/ActivePerl-5.12/site/lib/Moose/Util.pm line 12.
 Compilation failed in require at 
 /usr/local/ActivePerl-5.12/site/lib/Moose/Meta/Class.pm line 28.
 BEGIN failed--compilation aborted at 
 /usr/local/ActivePerl-5.12/site/lib/Moose/Meta/Class.pm line 28.
 Compilation failed in require at /usr/local/ActivePerl-5.12/site/lib/Moose.pm 
 line 28.
 BEGIN failed--compilation aborted at 
 /usr/local/ActivePerl-5.12/site/lib/Moose.pm line 28.
 Compilation failed in require at 
 /usr/local/ActivePerl-5.12/site/lib/Catalyst/Helper.pm line 2.
 BEGIN failed--compilation aborted at 
 /usr/local/ActivePerl

Re: [Catalyst] Catalyst 5.90010 server must be in CWD to run?

2012-02-22 Thread Matthias Dietrich
Louis,

Am 20.02.2012 um 19:52 schrieb Louis Erickson:

 I noticed a changed behavior in Catalyst, and wondered if it was deliberate.

[...]

 I noticed that with 5.9.0010, installed via perlbrew, I get load failures:
 
 wwonko@holly:~/projects/MyApp/script $ perlbrew switch perl-5.14.2
 wwonko@holly:~/projects/MyApp/script $ ./myapp_server.pl 
 Can't locate MyApp.pm in @INC (@INC contains: 
 /home/web/www.rdwarf.com/users/wwonko/TopazLib-v1.00.00/lib/site_perl/5.14.2//i686-linux
  
 /home/web/www.rdwarf.com/users/wwonko/TopazLib-v1.00.00/lib/site_perl/5.14.2/ 
 /home/wwonko/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/i686-linux 
 /home/wwonko/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2 
 /home/wwonko/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/i686-linux 
 /home/wwonko/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2 .) at 
 /home/wwonko/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Module/Runtime.pm
  line 317.
 at 
 /home/wwonko/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Catalyst/Script/Server.pm
  line 239

I stumbled over this issue some days ago and asked about it in IRC.  t0m wanted 
to add a fix for this but either he couldn't make it yet or the fix isn't yet 
on CPAN.

Matthias

-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Mobil: +49  151 / 50 60 78 64
71638 Ludwigsburg|  WWW  :  http://www.rainboxx.de




___
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] Re:Get sexual attraction right now!

2011-10-24 Thread Matthias Dietrich
Hi, I wrote David directly that his mail account is compromised but he doesn't 
answer. Can someone remove him from the list please? It sucks.

Thanks.

-- 
   
Sent from my iPhone so expect spelling errors and stuff.

rainboxx Matthias Dietrich
Freelance Software Engineer

rainboxx
Königsallee 43
71638 Ludwigsburg
+4915150607864

Vist: http://www.rainboxx.de

Am 24.10.2011 um 00:24 schrieb David oldskif...@yahoo.es:


___
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 for large-scale e-commerce: A good or bad choice?

2011-10-23 Thread Matthias Dietrich
Hi,

I'd second the answer from Kieren except:

Am 23.10.2011 um 13:23 schrieb Kieren Diment:

 Catalyst is designed to scale. Your bottleneck here will not be catalyst, or 
 hardware. It will be your access to good programmers.

I'd like to clarify that: access to good programmers that are available.

There are many programmers knowing Catalyst out there but all known to me are 
either bound to projects or employed at a company (this is a general issue with 
Perl programmers).  However, I found that good programmers can easily learn how 
to write good applications with Perl and Catalyst, thanks to many tutorials, 
documentation, mailing lists and irc channels.  There are plenty of people to 
help out!

Matthias

-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
 |  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





___
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] Session duplicate key constraints on concurrent requests

2011-10-10 Thread Matthias Dietrich
Hi,

Am 10.10.2011 um 10:42 schrieb Tobias Kremer:

 a) Try to find the session, e.g. $self-model-find({ $self-id_field = $key 
 })
 b) If found, use this session because it's still valid.
 c) If not found, create() an entirely NEW(!) session, with a new
 session-ID and insert it.

wouldn't that result in two new sessions?  Your first request would create 
session:new1 and the second session:new2, so you'll end up loosing info 
from session:new1.

Matthias

-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
 |  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





___
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] Session duplicate key constraints on concurrent requests

2011-10-10 Thread Matthias Dietrich
Am 10.10.2011 um 15:59 schrieb Denny:

 The word you both want is 'lose'.  Loose means something slightly different 
 (and slightly odd, when discussing data).

Your right ;-).


-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
 |  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





___
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] Session duplicate key constraints on concurrent requests

2011-10-10 Thread Matthias Dietrich
Am 10.10.2011 um 17:00 schrieb Tobias Kremer:

 Your right ;-).
 
 And that's almost as bad as would of been ... ;-)

*tired
$son is consuming too much time during the nights ;-).


Back on topic:

Am 10.10.2011 um 14:56 schrieb Tobias Kremer:

 Yes, but does that really matter? If you're using Store::Memcached for
 example, one session would overwrite the other's data, thus you'll
 loose data anyways. There's no perfect solution to this problem, I
 guess :)

That depends.  At least you'll lose(!) another request's data.  But then you'd 
lose the data of the second request, which may not be better.  So...  I thing 
Store::DBI's way seems good.

Matthias


-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
 |  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





___
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] Can the latest Catalyst version from CPAN be installed under Windows?

2011-09-09 Thread Matthias Dietrich
Erm...  Anyone saw the subject line of this thread?  It's about Windows ... not 
Mac OS X.

Sorry Octavian, I don't have any clue of what's going on there on Windows.

Matthias

-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
|  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html




-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
 |  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





___
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] Suggestions for sending email from cron job using 'Catalyst' templates?

2011-04-11 Thread Matthias Dietrich
Hi,

Am 11.04.2011 um 13:50 schrieb Jon Schutz:
 MyApp-handle_request(HTTP::Request-new('GET',
 'http://localhost/send/email'), \$response);

never used this module, but be careful: Catalyst looks at the URL you are 
calling the app, so all your links may point to localhost within your mail with 
this example.

Sorry, don't have a better approach than calling the app with a request, but 
I'm also interested in solutions to this!

Matthias

-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
 |  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





___
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] Typo in documentation

2011-04-08 Thread Matthias Dietrich
Hi John,

Am 08.04.2011 um 11:39 schrieb John M. Dlugosz:

 In Catalyst/Manual/Intro.pod,
 The URL (for example http://localhost.3000/foo/bar) consists of two parts
 The dot should be a colon.

it's already fixed in the repo and will be seen at the next CPAN released.

Matthias

-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
 |  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





___
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 As OAuth Service Provider

2011-03-10 Thread Matthias Dietrich
Hi,

Am 09.03.2011 um 22:29 schrieb Ron White:

 I'm looking to create a new API for our Catalyst website using OAuth 
 authentication.  In this scenario our website would be the OAuth service 
 provider, not a consumer of some other public OAuth service.
 
 I found mention of a Catalyst OAuth controller at http://oauth.net/code/, 
 however the code it links to 
 (http://dev.catalystframework.org/repos/Catalyst/trunk/Catalyst-Controller-OAuth/)
  appears incomplete.
 
 Is there another home for Catalyst::Controller::OAuth or another existing 
 implementation available?

a quick Google search brought me to 
https://github.com/norbu09/Catalyst-Plugin-OAuth/.  Maybe this can help?  
However, it's not available on CPAN.

Matthias

-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
|  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html




-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
 |  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





___
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] Best form library?

2011-03-07 Thread Matthias Dietrich
Erez,

Am 06.03.2011 um 22:43 schrieb Erez Schatz:

 As for HTML::Formhandler, I dunno whether this has been addressed, but
 when we used it (at my previous place of employment) we ran into some
 severe issues of, and I quote again, misbehaviour due to modified
 state after reset causing leaks and we ended up moving to FormFu,
 which I should say was somewhat under utilized for what it did offer
 us. Formhandler was also, to my taste, unwilling to allow any
 out-of-the-ordinary configuration and we ended up overriding a lot of
 form controls which makes the whole idea of a form generator a bit
 silly.

I'm using FormFu because it was mentioned in the Catalyst tutorial back when I 
went through it.  When I discovered HFH I didn't look into it because I already 
was using FormFu and was happy with it.  Now that I see it is based on Perl 
modules it seems interesting to me, however, I won't change current projects.  
But for new projects I might give it a try.

Can you explain what your situation were in which you had to override HFH 
things?

Best,
  Matthias


-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
 |  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





___
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] Re: DBI handle without magic when calling with dump_info=1 after updating Catalyst::Runtime

2011-03-01 Thread Matthias Dietrich
Hi Jeremy,

Am 23.11.2010 um 18:15 schrieb Jeremy Dack:

 I have multiple views in my view folder but I am not using them at present; 
 however just their presence seems to be enough to cause the resultset error. 
 
 
 I've found that adding: 
 
 $c-config-{'Action::RenderView'}-{ignore_classes} = []; 
 
 To my root sub end : ActionClass('RenderView') stops the error from 
 triggering. This seems to override it from ignoring the 
 DBIx::Class::ResultSource::Table  DBIx::Class::ResultSourceHandle as per 
 the RenderView.pm (see below). 
 
 $c-config-{'Action::RenderView'}-{ignore_classes} = 
 ( ref($c-config-{'debug'}) eq 'HASH' ? 
 $c-config-{'debug'}-{ignore_classes} : undef ) 
 || [ qw/ 
 DBIx::Class::ResultSource::Table 
 DBIx::Class::ResultSourceHandle 
 DateTime 
 / ] unless exists 
 $c-config-{'Action::RenderView'}-{ignore_classes}; 
 
 I have no idea why this fixes the issue as I have only just started playing 
 with Catalyst so I maybe talking rubbish however it has definitely solved my 
 issues.

I just found out I never got this email through the mailing list and found it 
in an archive on the web.  Thanks you for this, this solves the issue at first 
glance!

However, when using dump_info=1 I get the following lines on the console where 
the development server (the one that is shipped with Catalyst) is running:

SV = IV(0x10535fb40) at 0x10535fb48
  REFCNT = 1
  FLAGS = (ROK,READONLY)
  RV = 0x1053d6148
SV = PVHV(0x1057f55f0) at 0x1053d6148
  REFCNT = 1
  FLAGS = (OBJECT,SHAREKEYS)
  STASH = 0x102282120   DBI::db
  ARRAY = 0x0
  KEYS = 0
  FILL = 0
  MAX = 7
  RITER = -1
  EITER = 0x0
(in cleanup) dbih_getcom handle DBI::db=HASH(0x1053d6148) is not a DBI 
handle (has no magic) at 
/opt/local/lib/perl5/site_perl/5.12.2/Data/Visitor/Callback.pm line 97.

Maybe someone can help sometime.  For now it's working, thank you!

Best,
  Matthias

-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
 |  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





___
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] Re: DBI handle without magic when calling with dump_info=1 after updating Catalyst::Runtime

2011-03-01 Thread Matthias Dietrich
Hi,

Am 01.03.2011 um 19:06 schrieb Tomas Doran:

 What perl version are you using here?

I'm on v5.12.2 on a Mac OS X 10.6.6 with a custom Perl build (via macports).

Matthias



-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
 |  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





___
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] Re: DBI handle without magic when calling with dump_info=1 after updating Catalyst::Runtime

2011-03-01 Thread Matthias Dietrich
Hi,

Am 01.03.2011 um 19:32 schrieb Tomas Doran:

 What perl version are you using here?
 
 I'm on v5.12.2 on a Mac OS X 10.6.6 with a custom Perl build (via macports).
 
 Bah, no idea what's going on there then :)

oh, it's all the same... ;-)  With custom I mean it's not the Perl that is 
shipped with Mac OS X, but it is a normal build (just like plain `make  
make install`).  So nothing special in regard to configure options or build 
flags or something like that.

This issue also happens with Perl v5.8.8 and v5.10.0 on usual Ubuntu systems, 
so it's nothing special to this Mac build.

Matthias

-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
 |  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





___
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] Conversion from Subversion to Git complete!

2011-02-18 Thread Matthias Dietrich
Am 18.02.2011 um 17:30 schrieb Eden Cardim:

 Were the previous commit bits preserved?

No.  You need to send your SSH public key to the repo admins.  These are at 
least mst and t0m as well as some others I don't remember now.

Matthias

-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
 |  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





___
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] Re: DBI handle without magic when calling with dump_info=1 after updating Catalyst::Runtime

2010-11-23 Thread Matthias Dietrich
Hi Jeremy,

Am 23.11.2010 um 09:55 schrieb Jeremy Dack:

 Did you ever find a solution to the problem below as I’ve started to get the 
 exact same issue on my windows box?

I'm sorry I haven't and I'm still living with that issue.  Maybe the list could 
help?


 Re: DBI handle without magic when calling with dump_info=1 after updating 
 Catalyst::Runtime [In reply to]
 
 Hi list, 
 
 does someone knows anything about this error? As it occurs on two of my 
 systems (Linux, Mac) and at least on one unknown I heard of this seems not to 
 be an error of my local installation. 
 
 Here's my error description as of 24.08.2009: 
 
 Hi, 
 
 yesterday I've updated Catalyst::Runtime to 5.80011 and also did an update 
 to several other modules (like Moose, DBIC, DBI and some plugins). Today I 
 discovered that my DBI handle looses his magic when I call my app with 
 parameter dump_info set to 1. This is the message printed on my console 
 (current lates Mac OS X): 
 
 $ sudo ./script/myapp_server.pl -p 80 -r 
 You can connect to your server at http://rainboxx-pro.local 
 SV = RV(0x24ae020) at 0x2501e60 
 REFCNT = 1 
 FLAGS = (ROK,READONLY) 
 RV = 0x24f5f0c 
 (in cleanup) dbih_getcom handle DBI::db=HASH(0x24f5f0c) is not a DBI handle 
 (has no magic) at 
 /opt/local/lib/perl5/site_perl/5.8.9/Data/Visitor/Callback.pm line 97. 
 
 Each following request results in blank pages with exceptions in the log 
 like: 
 
 Can't call method resultset without a package or object reference at 
 /opt/local/lib/perl5/site_perl/5.8.9/DBIx/Class/Schema.pm line 548. 
 
 I need to restart the server to use it again. 
 
 The error occurs everytime I'm surfing on my app and using dump_info then. 
 If I restart the server and use dump_info with the first request, everthing 
 is fine. If I access a normal controller page and use dump_info after that, 
 the server goes down again. 
 
 Do I need to update another module? Or is this a bug and if yes, of which 
 module? Tell me how I can help to find this error. 
 
 Thanks, 
 matt 
 
 P.S.: Although this seems to be as a question that should go to the DBIC 
 list, I guess it is Catalyst related... 

Thanks

-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
 |  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





___
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] Re: DBI handle without magic when calling with dump_info=1 after updating Catalyst::Runtime

2010-11-23 Thread Matthias Dietrich
Hi Jeremy,

I cc'ed the list again so they all can see that we discuss about this :-).

Am 23.11.2010 um 14:13 schrieb Jeremy Dack:

 The problem seems to be with RenderView, do you use any custom views like
 JSON or is all your output HTML?

I use some other views than HTML in some apps, but this issue only occurs when 
HTML (here: Mason) should be printed.  AFAIK it also occurs when only a 
HTML/Mason view is available.

Matt

-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
 |  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





___
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] I18N with variables

2010-08-06 Thread Matthias Dietrich
Hi,

Am 06.08.2010 um 14:58 schrieb Ben van Staveren:

 There's also the issue that I'm dealing with now where I have a web shop that 
 I need to build that needs to be fully bilingual. Including product 
 descriptions and names - this makes things interesting because I18N is 
 absolutely useless for it, so I'm building a set of modules that attempt to 
 solve the whole problem gracefully; perhaps something to stick on CPAN at 
 some point.

I'm using short identifiers for my I18N texts, like Home.Greeting which is 
then translated to Hi there for en_us or Hallöchen for de_de.  When I added 
a small CMS to a customer's application all texts should also be translated.  
So I saved any text to I18N key CMS.NavigationPoint.PageKey.* within the right 
language file (actually I'm using C::P::I18N::DBI), * for Title or 
Content or similar.

I think it should be possible to handle product descriptions like this.  In 
your Backend save every text to Product.$ArticleNumber.Description, 
Product.$ArticleNumber.Name, Product.$ArticleNumber.Variant and so on where 
$ArticleNumber is the actual article number.  The possible languages should be 
somewhere in your Catalyst config.

Matthias

-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
 |  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





___
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] I18N with variables

2010-08-06 Thread Matthias Dietrich
Hi Bill,

Am 06.08.2010 um 16:57 schrieb Bill Moseley:

 I've been arguing with work about how to key our text.  So far we continue to 
 use the English in the loc() tags in the templates, and then the I18N team 
 uses a script to pull out this text which gets sent to translation services.
 
 The risk is text gets into the templates that for some reason does not get 
 pulled out.

yes, that's an issue with my solution, too.  You code and add texts and if you 
don't add them immediately to the database you may get lost.  Especially when 
you have code with I18N text that only gets called in some special 
circumstances that you can hardly simulate, so your text stays as a key (or 
english text) until someone stumbles upon this special case and reports.

 I've been arguing for a system where we use some kind of ID for the keys.  
 I'm not so sure the key format matters -- could be just a primary key in the 
 db, for example.  This could be a stage done by the designers so the design 
 spec just indicates a message id.  Then code development and translation can 
 happen at the same time.

Using an integer ID doesn't sound useful to me.  An ID doesn't say anything 
about what it should be replaced with, a key does (should).  My keys also have 
arguments like Home.Greeting[_1] which could be translated to Hello [_1].

A disadvantage of using english as identifier is: when you change the text, say 
you have a typo in it, you need to change all you translations so they have the 
correct identifier again.  If you have a key (or integer ID), changing the typo 
is easy because there is a additional translation and typos in your keys are 
irrelevant.

 So, I'd like to hear about your translation workflow and any tools you are 
 using.

My tools were pgAdmin3 and some AutoCRUD until now, because there has not been 
any big translation.  In a project at my former employer we wrote a small 
Excel import script because the customer translated every text with Excel.  
There's no magic here that could help you, sorry.

Thanks,
  Matthias

-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
 |  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





___
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] Repeatedly creating sessions

2010-06-24 Thread Matthias Dietrich
Nicholas,

Am 24.06.2010 um 18:54 schrieb Nicholas Wehr:

 I used charles proxy as well until I discovered how awesome the mozilla addon 
 firebug is. unbeatable json (xhdr) and network activity analyzer. handles ssl 
 too check it out!
 
 jim, is there a charles feature that stands out above firebug? I only used 
 for one project until I re-discovered firebug...

I haven't bought Charles yet but used it for a longer time.  A big plus is that 
you can display the content depending on its type (eg. JSON and AMF as 
collapsable tree, but doesn't has a display mode for every type, I guess).  And 
it's browser independent so you can test with Safari and other clients (like 
native apps!), too.  You can record transferred data, stop recording, open new 
sessions while the old ones are still present.  If FF crashes or you navigate 
to a different page, Charles is still there and showing the recorded and opened 
sessions.

Firebug is nice for single request tracking (yes, you can let the requests be 
sticky, but that's not the same and a bit ugly, even sometimes it doesn't 
show the content if there's some), CSS, Javascript and HTML, but if you need to 
debug more intensive and longer I would prefer something like Charles.

Thanks,
 Matthias

-- 
rainboxx Software Engineering
Matthias Dietrich

rainboxx Matthias Dietrich   |  Phone: +49 7141 / 2 39 14 71
Königsallee 43   |  Fax  : +49 3222 / 1 47 63 00 
71638 Ludwigsburg|  Mobil: +49  151 / 50 60 78 64
 |  WWW  :  http://www.rainboxx.de

CPAN: http://search.cpan.org/~mdietrich/
XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





___
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] Which C::View::PDF should I use?

2010-03-14 Thread Matthias Dietrich
Hi,

Am 08.03.2010 um 09:27 schrieb Octavian Rasnita:

 On 8/03/10 at 8:41 AM +0200, Octavian Rasnita
 orasn...@gmail.com wrote:
 
 Do you know if there is a way of creating PDFs in the same way the HTML 
 templates are created, by just putting a variable name in a certain place 
 and render that pdf file by replacing that variable with its value? (Without 
 needing to specify the position where those variables will be placed)
 
 Unfortunately I don't know if it can help me, because I am blind and I can't 
 see if the manually configured positions are displayed correctly. That's why 
 I was hoping that there is a solution that works like the common TT 
 templating system.

there is a commercial solution called PDFlib PPS ( 
http://www.pdflib.com/products/pdflib-family/pps/ ) which may help you.  With 
the PPS and the PDFlib block plugin you can define text and/or image areas in 
your PDF within Acrobat Professional.  You can drag them everywhere in the PDF 
and set a name for each.  In your Perl code you just write text or place an 
image into such a named area easliy.

I used the PDFlib in a previous job and it worked really nice and had lots of 
features!  The bad thing is that it is a bit expensive (EUR 2390 / USD 3345) 
and a license is limited to one server/cpu.  But you can download, develop and 
test the PDFlib with the PPS addon for free if you can accept having a stamp on 
each PDF you produce.

Regards,
  matt

-- 
rainboxx Software Engineering
Matthias Dietrich, Freelancer

rainboxx  |  Mobil: +49  151 / 50 60 78 64
Königsallee 43|  Phone: +49 7141 / 2  39 14 71
71638 Ludwigsburg |  WWW  :  http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html







___
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] Can't locate object method storage via package MyApp::Model::DB

2010-01-07 Thread Matthias Dietrich
Hi,

after upgrading every perl module on my dev system weeks ago I get many errors 
like

  Can't locate object method storage via package MyApp::Model::DB

with existing and well-running apps when using plugins like C::P::AutoCRUD or 
C::P::DBIC::Schema::Profiler.  I already filed a bug for the latter module at 
https://rt.cpan.org/Public/Bug/Display.html?id=53355, but as this issue occurs 
with several plugins it may be something wrong with my system.

Was there a change in Catalyst that issued these problems or is this a local 
problem?

Thanks for any help,
  matt

-- 
rainboxx Software Engineering
Matthias Dietrich, Freelancer

rainboxx  |  Mobil: +49 (0) 151 / 50 60 78 64
Königsallee 43|  
71638 Ludwigsburg |  WWW  :  http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html






___
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] DBI handle without magic when calling with dump_info=1 after updating Catalyst::Runtime

2010-01-06 Thread Matthias Dietrich
Hi list,

does someone knows anything about this error?  As it occurs on two of my 
systems (Linux, Mac) and at least on one unknown I heard of this seems not to 
be an error of my local installation.

Here's my error description as of 24.08.2009:

 Hi,
 
 yesterday I've updated Catalyst::Runtime to 5.80011 and also did an update to 
 several other modules (like Moose, DBIC, DBI and some plugins).  Today I 
 discovered that my DBI handle looses his magic when I call my app with 
 parameter dump_info set to 1.  This is the message printed on my console 
 (current lates Mac OS X):
 
 $ sudo ./script/myapp_server.pl -p 80 -r
 You can connect to your server at http://rainboxx-pro.local
 SV = RV(0x24ae020) at 0x2501e60
  REFCNT = 1
  FLAGS = (ROK,READONLY)
  RV = 0x24f5f0c
   (in cleanup) dbih_getcom handle DBI::db=HASH(0x24f5f0c) is not a DBI 
 handle (has no magic) at 
 /opt/local/lib/perl5/site_perl/5.8.9/Data/Visitor/Callback.pm line 97.
 
 Each following request results in blank pages with exceptions in the log like:
 
  Can't call method resultset without a package or object reference at 
 /opt/local/lib/perl5/site_perl/5.8.9/DBIx/Class/Schema.pm line 548.
 
 I need to restart the server to use it again.
 
 The error occurs everytime I'm surfing on my app and using dump_info then.  
 If I restart the server and use dump_info with the first request, everthing 
 is fine.  If I access a normal controller page and use dump_info after that, 
 the server goes down again.
 
 Do I need to update another module?  Or is this a bug and if yes, of which 
 module?  Tell me how I can help to find this error.
 
 Thanks,
  matt
 
 P.S.: Although this seems to be as a question that should go to the DBIC 
 list, I guess it is Catalyst related...



Thanks,
  matt

-- 
rainboxx Software Engineering
Matthias Dietrich, Freelancer

rainboxx  |  Mobil: +49 (0) 151 / 50 60 78 64
Königsallee 43|  
71638 Ludwigsburg |  WWW  :  http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html






___
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] datetime formatting ...

2010-01-06 Thread Matthias Dietrich
Hi,

Am 06.01.2010 um 15:29 schrieb Kiffin Gish:

 I've got a datetime column defined:
 
 __PACKAGE__-add_columns(
 ...
 last_modified,
 {
   data_type = DATETIME,
   default_value = undef,
   is_nullable = 1,
   size = undef,
 },
 );
 
 For some reason it's being displayed like this:
 
 2010-01-05T20:35:14
 
 How can I get that 'T' out of there, replacing it with the usual space?

didn't you just ask this on 28th December? See: 
http://lists.scsys.co.uk/pipermail/catalyst/2009-December/024191.html and 
follow the thread, there lies your answer...

matt

-- 
rainboxx Software Engineering
Matthias Dietrich, Freelancer

rainboxx  |  Mobil: +49 (0) 151 / 50 60 78 64
Königsallee 43|  
71638 Ludwigsburg |  WWW  :  http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html



___
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] Data::Localize::Railsy for rails-like i18n in Catalyst

2010-01-03 Thread Matthias Dietrich



--
Gesendet von unterwegs.


rainboxx Matthias Dietrich
Freier Software Engineer

rainboxx
Toelzer Str.19
70372 Stuttgart

Mehr unter: http://www.rainboxx.de

Am 04.01.2010 um 01:44 schrieb Ævar Arnfjörð Bjarmason  
ava...@gmail.com:



I just uploaded Data::Localize::Railsy to CPAN for use in the Catalyst
app I was building:

   http://search.cpan.org/dist/Data-Localize-Railsy/ (not yet indexed
as of writing)

I wrote it because I didn't like the existing Gettext frameworks for
internationalization and prefer something where you don't specify the
human readable source text in your code/templates but an abstract key,
here's how it looks like in practice:

   Template: 
http://github.com/avar/App-OpenStreetMapIs-Web/blob/master/root/_sidebar.tt
   The translation file:
http://github.com/avar/App-OpenStreetMapIs-Web/blob/master/lib/App/OpenStreetMapIs/I18N/is.yml

And here are further POD docs on how to use it (this'll be easier to
read on search.cpan.org once it's indexed):

   
http://github.com/avar/data-localize-railsy/blob/master/lib/Data/Localize/Railsy.pm

Anyway I hope it's useful for someone. Now I just have to find out how
to make some drop-down menu that sets a language cookie when you
change it so that I can use this stuff myself :)

___
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/


Re: [Catalyst] Data::Localize::Railsy for rails-like i18n in Catalyst

2010-01-03 Thread Matthias Dietrich

I'm sorry for the empty mail some minutes ago...

Am 04.01.2010 um 01:44 schrieb Ævar Arnfjörð Bjarmason  
ava...@gmail.com:



I just uploaded Data::Localize::Railsy to CPAN for use in the Catalyst
app I was building:

   http://search.cpan.org/dist/Data-Localize-Railsy/ (not yet indexed
as of writing)

I wrote it because I didn't like the existing Gettext frameworks for
internationalization and prefer something where you don't specify the
human readable source text in your code/templates but an abstract key,


Did you take a look at Locale::Maketext::Lexicon::DBI with its  
Catalyst plugin C::P::I18N::DBI?  There you are suggested to have an  
abstract key that belongs to one sentence in each language.  It  
supports every gettext/maketext interpolation and so on.


Regards,
  matt
___
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] Sub-classing Application

2009-12-20 Thread Matthias Dietrich
Hi,

I'd like to catch up this slightly old topic...

I've build a small app for a customer and want to pull out some sections to 
build a small CMS I can use in several upcoming apps.  I don't want to 
copy-paste everything everytime an app comes up or update all instances.  So it 
would be very nice to teach an arbitrary Catalyst app to glue everything from 
another app (controllers, models *and* views (note: html and static files, 
too!)) into the arbitrary app.

There were several ideas in the past on this list to featurize apps, like the 
solution CatalystX::Featurizer/CatalystX::Features posted by Rodrigo.  The 
problem with this solution is: features cannot just be released to CPAN and 
used by other persons without requiring them to change their Catalyst app 
heavily.  What I'm thinking of is something like use base/parent with 
specifying an action where the external Catalyst app is connected.

Are there some efforts somewhere to make this possible?  Or is this already 
possible yet?

Regards,
  Matthias

-- 
rainboxx Software Engineering
Matthias Dietrich, Freelancer

rainboxx  |  Mobil: +49 (0) 151 / 50 60 78 64
Tölzer Str. 19|  Tel.:  +49 (0) 711 / 12 89 09 80
70372 Stuttgart   |  WWW :  http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html






___
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] Handling configuration outside the Catalyst application

2009-08-28 Thread Matthias Dietrich

Hi,

Am 28.08.2009 um 04:58 schrieb Bill Moseley:


But, now I'm thinking about making all access go through Catalyst.
That is, a cron job would log in via the API and then use and API
method to do its work.  Wouldn't need to be a web request, of course.
Then I've got one access layer to the application and can have ACL
rules for the cron user and unified logging.


has someone used Catalyst::Plugin::CommandLine for this or similar?   
Of course this is not a module for accessing catalyst from outside  
(like via API), but it is to control Catalyst from a script.  And it  
starts the app everytime the script runs...


matt

--
rainboxx Matthias Dietrich
Freier Software Engineer

rainboxx  |  Tel.: +49 (0) 151 / 50 60 78 64
Tölzer Str. 19|  Mail: m...@rainboxx.de
70372 Stuttgart   |  WWW : http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





PGP.sig
Description: Signierter Teil der Nachricht
___
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] Restarting Catalyst on request or doing something per request

2009-08-25 Thread Matthias Dietrich

Hi Wade,

Am 25.08.2009 um 13:48 schrieb Wade Stuart:

Why cant you just do a:

# ... incrementally add new lexicons
Locale::Maketext::Lexicon-import({
de = [Gettext = 'local/hello/de.po'],

})
... on change instead of reloading apache?


because this would only affect the current apache child process (at  
least under mod_perl).  All other clients will still have the old  
lexicon.


Thanks,
  matt

--
rainboxx Matthias Dietrich
Freier Software Engineer

rainboxx  |  Tel.: +49 (0) 151 / 50 60 78 64
Tölzer Str. 19|  Mail: m...@rainboxx.de
70372 Stuttgart   |  WWW : http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





PGP.sig
Description: Signierter Teil der Nachricht
___
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] Restarting Catalyst on request or doing something per request

2009-08-25 Thread Matthias Dietrich

Hi Chris,

Am 25.08.2009 um 00:48 schrieb Chris:

I wonder if you could force a reload using a SIG{USR1} handler and  
avoid

a per-request check?


I think so, but I need to know the processes to send the signal to.  I  
guess $$ is only the current apache client process and a signal to  
this will not get to the others.  What about sending a signal to the  
parent process -- will this affect the childs?  If yes, how can I  
determine the PID of the parent from within a child process?


As I already said I'm not familiar with FastCGI and I don't yet know  
about how clients are spawn and if they might share their memory.   
Maybe someone here knows about this?


Thanks,
  matt

--
rainboxx Matthias Dietrich
Freier Software Engineer

rainboxx  |  Tel.: +49 (0) 151 / 50 60 78 64
Tölzer Str. 19|  Mail: m...@rainboxx.de
70372 Stuttgart   |  WWW : http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





PGP.sig
Description: Signierter Teil der Nachricht
___
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] Restarting Catalyst on request or doing something per request

2009-08-24 Thread Matthias Dietrich

Hi Chris,

Am 24.08.2009 um 04:43 schrieb Chris:


Can you use catalyst::plugin::cache as the backend for the lexicon?
Then refreshing the texts involves clearing the cache, and updates are
transparent.


I'll have a look at C::P::Cache, but as I use Maketext::Lexikon the  
cache has to work with that.  But your description on refreshing  
sounds lik a good way :-).


Thanks,
 matt

--
rainboxx Matthias Dietrich
Freier Software Engineer

rainboxx  |  Tel.: +49 (0) 151 / 50 60 78 64
Tölzer Str. 19|  Mail: m...@rainboxx.de
70372 Stuttgart   |  WWW : http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html



--
rainboxx Matthias Dietrich
Freier Software Engineer

rainboxx  |  Tel.: +49 (0) 151 / 50 60 78 64
Tölzer Str. 19|  Mail: m...@rainboxx.de
70372 Stuttgart   |  WWW : http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





PGP.sig
Description: Signierter Teil der Nachricht
___
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] Restarting Catalyst on request or doing something per request

2009-08-24 Thread Matthias Dietrich

Hi Chris,

Am 24.08.2009 um 04:43 schrieb Chris:


Can you use catalyst::plugin::cache as the backend for the lexicon?
Then refreshing the texts involves clearing the cache, and updates are
transparent.


I took a quick look at C::P::Cache and I don't think it is possible to  
use this module as the backend with adequate work.   
Locale::Maketext::Lexicon stores the text somewhere under its own  
package name in a hash.  To use a cache backend here would mean  
creating a module around L::M::L which alters internal data whereas  
this new module would depend on the current L::M::L module version.  I  
don't think this would be good.


So from my point of view the best way would be to reload the lexicon  
data once it has changed.  As this is not possible without manually  
restarting apache, this leads me to reloading the lexicon after the  
database contents has changed within each apache client on request  
start (before any lexicon text is requested).  I could initiate this  
within an auto sub in Root.pm, but this seems very ugly.  I guess a  
new plugin (like C::P::I18N::DBI::Reloader) would be good.  What do  
you think?


Thanks for your help,
  matt

--
rainboxx Matthias Dietrich
Freier Software Engineer

rainboxx  |  Tel.: +49 (0) 151 / 50 60 78 64
Tölzer Str. 19|  Mail: m...@rainboxx.de
70372 Stuttgart   |  WWW : http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





PGP.sig
Description: Signierter Teil der Nachricht
___
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] Restarting Catalyst on request or doing something per request

2009-08-23 Thread Matthias Dietrich

Hi,

I'm using the plugin C::P::I18N::DBI (which is from me) which loads  
the texts from database once on application startup.


Now in my app I'm building an admin panel where one can edit the  
texts.  After the admin finishes editing, he currently needs to  
restart the whole apache to load the new texts into catalyst or has to  
wait until the apache clients are killed after time (if running under  
mod_perl).  This may be ok for develping but when running in  
production with several other website on the same apache, this is not  
a good idea.


I thought there may be a possibility to restart only the catalyst  
application (like the built-in server does), but I don't think this is  
possible with apache.  So the solution would be to set a lexicon last  
modified date somewhere and update this every time the texts have  
changed (which will not be often).  The app could then check at each  
(or each N requests?) if the date has changed and reload the data.


Would this be a good scenario and where exactly could this checking be  
done?


When running under mod_perl (what the production apps currently do),  
the reloading has to be done for each client.  I don't know how  
FastCGI is working with that, but I'm considering using FastCGI for  
production.


Thanks,
  matt

--
rainboxx Matthias Dietrich
Freier Software Engineer

rainboxx  |  Tel.: +49 (0) 151 / 50 60 78 64
Tölzer Str. 19|  Mail: m...@rainboxx.de
70372 Stuttgart   |  WWW : http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





PGP.sig
Description: Signierter Teil der Nachricht
___
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] DB Functions in the Schema

2009-08-18 Thread Matthias Dietrich

Hi,

Am 18.08.2009 um 04:22 schrieb Trevor Phillips:


It doesn't feel quite right to subscribe to a list (DBIC ML), ask a
question, then unsubscribe again.


you could ask a single question on the irc channel like I do ;-):  
irc.perl.org#dbix-class


Though I don't know the answer, maybe the deflate and inflate hooks  
can call SQL functions?  But for dates you can use Perl functions or  
define your column as datetime (see:  
DBIx::Class::InflateColumn::DateTime).


Also good luck from me!

matt

--
rainboxx Matthias Dietrich
Freier Software Engineer

rainboxx  |  Tel.: +49 (0) 151 / 50 60 78 64
Tölzer Str. 19|  Mail: m...@rainboxx.de
70372 Stuttgart   |  WWW : http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





PGP.sig
Description: Signierter Teil der Nachricht
___
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] Reading Database At Startup

2009-08-16 Thread Matthias Dietrich

Ovid,

Am 16.08.2009 um 17:09 schrieb Ovid:


Hi all,

This should be painfully obvious, but I don't see it :)

For a personal project, I want users to be able to click on a letter  
and get a list of countries starting with that letter.  I can do this:


   my $letters = $c-model('DB')-storage-dbh-selectcol_arrayref(
   'select distinct(substr(name,1,1)) as letter from country  
order by letter'

   );
   $c-stash-{letters} = $letters;


But the country list is static and I want this available at  
startup.  'sub begin' fails because that's called once per request,  
not once per app.


What's the recommend way of handling this?  (I'm using DBIx::Class  
for the model)


I've done something similar with C::P::I18N::DBI (see: http://search.cpan.org/perldoc?Catalyst::Plugin::I18N::DBI 
 ) but I think it wouldn't be recommended to build a plugin in your  
case.


matt

--
rainboxx Matthias Dietrich
Freier Software Engineer

rainboxx  |  Tel.: +49 (0) 151 / 50 60 78 64
Tölzer Str. 19|  Mail: m...@rainboxx.de
70372 Stuttgart   |  WWW : http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





PGP.sig
Description: Signierter Teil der Nachricht
___
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] Configuration based on hostname

2009-07-17 Thread Matthias Dietrich

Hi,

Am 13.07.2009 um 15:57 schrieb Carl Johnstone:


Look at the +Parent option, which will create additional separate perl
interpreters within the same apache process on a per-virtual-host  
basis.


where can I find information about this +Parent option?

matt

--
rainboxx Matthias Dietrich
Freier Software Engineer

rainboxx  |  Tel.: +49 (0) 151 / 50 60 78 64
Tölzer Str. 19|  Mail: m...@rainboxx.de
70372 Stuttgart   |  WWW : http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





PGP.sig
Description: Signierter Teil der Nachricht
___
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] How to do pass-through login?

2009-07-10 Thread Matthias Dietrich

Hi,

Am 10.07.2009 um 23:07 schrieb Stephan Jauernick:

i got a similar problem some time ago then Tomas  't0m' Doran  
pointed me someway on irc.

If you wish i could post it.


why not?  I would be interested in different solutions.

matt

--
rainboxx Matthias Dietrich
Freier Software Engineer

rainboxx  |  Tel.: +49 (0) 151 / 50 60 78 64
Tölzer Str. 19|  Mail: m...@rainboxx.de
70372 Stuttgart   |  WWW : http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





PGP.sig
Description: Signierter Teil der Nachricht
___
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] Best practice: How to build app parts reusable?

2009-06-01 Thread Matthias Dietrich

Hm, should this be posted on Catalyst-dev?


Am 31.05.2009 um 18:06 schrieb Matthias Dietrich:


Hi,

in one of my Catalyst apps I'm building application parts that I  
want to reuse in other Catalyst apps where possible.  What's the  
best practice to do that?  I mean the complete parts from  
controller, to model, DBIC schema classes and templates.


Let's assume one part is a guestbook (no, it's not but it's a funny  
example ;)).  The integration of the controller class is very easy.   
I just would build a new controller inside the app which uses the  
guestbook controller as base class and sets the correct namespace,  
where the guestbook should appear.  A similar procedure would get me  
the model and schemes into my app, but it requires a wrapper class  
for each class the guestbook brings with.  And the templates?  The  
only way I know of is to copy and paste them into the 'root' folder  
of the app.


There has to be a better way.  But which?

I'm also thinking about whole reusable applications.  For example a  
shopping system which can be extended and modified by overwriting  
methods while the base system can be upgraded seamlessly.  (I know  
MojoMojo as a standalone Catalyst app, but it's only standalone and  
not to be extended locally.)


matt


--
rainboxx Matthias Dietrich
Freier Software Engineer

rainboxx  |  Tel.: +49 (0) 151 / 50 60 78 64
Tölzer Str. 19|  Mail: m...@rainboxx.de
70372 Stuttgart   |  WWW : http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





PGP.sig
Description: Signierter Teil der Nachricht
___
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] Multiple instances of same app with 5.80 under mod_perl

2009-05-31 Thread Matthias Dietrich

Hi,

One solution to this would be to keep a hash of log class instances  
per vhost, and then ensure to replace the logger being used at the  
start of each hit - this should do what you're looking for..


yes, I thought I have to do it in such a way.  Where would be the best  
point to get the right logger?


matt

--
rainboxx Matthias Dietrich
Freier Software Engineer

rainboxx  |  Tel.: +49 (0) 151 / 50 60 78 64
Tölzer Str. 19|  Mail: m...@rainboxx.de
70372 Stuttgart   |  WWW : http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





PGP.sig
Description: Signierter Teil der Nachricht
___
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] Possible bug here?

2009-05-31 Thread Matthias Dietrich

Kieren,


Here's the code:

[...]

And here's the output from script/testapp_test /foo:

Page not found

Either this is a bug or there's something very obvious wrong which  
I'm missing ...


what would you expect?  As you don't have an action foo, the  
default action is called (which is a dhandler in Mason-speak or  
ErrorDocument 404) which outputs Page not found.


matt

--
rainboxx Matthias Dietrich
Freier Software Engineer

rainboxx  |  Tel.: +49 (0) 151 / 50 60 78 64
Tölzer Str. 19|  Mail: m...@rainboxx.de
70372 Stuttgart   |  WWW : http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





PGP.sig
Description: Signierter Teil der Nachricht
___
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] Multiple instances of same app with 5.80 under mod_perl

2009-05-27 Thread Matthias Dietrich

Hi Stuart,

do you use Log::Log4perl in your Catalyst apps?  Months ago I wrote a  
message to the list about problems with Log::Log4perl and multiple  
instances of Catalyst within one Apache.  Nobody answered and because  
it's currently not very important to me (not in production environment  
yet) I didn't follow-up.


The problem was to separate each VirtualHosts Catalyst into different  
log files which didn't worked.  Catalyst always logged into the file  
from the latest VirtualHost.  Maybe I have some short time tomorrow to  
create a local test case (I use the included server now so I have to  
switch to Apache again).


Regards,
 matt

--
rainboxx Matthias Dietrich
Freier Software Engineer

rainboxx  |  Tel.: +49 (0) 151 / 50 60 78 64
Tölzer Str. 19|  Mail: m...@rainboxx.de
70372 Stuttgart   |  WWW : http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html





PGP.sig
Description: Signierter Teil der Nachricht
___
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] Howto Catalyst::Plugin::Captcha ?

2009-05-08 Thread Matthias Dietrich

Calling in controller

$c-create_captcha();

imediatelly displays the image. How can be the image passed to TT  
view?


In your TT template:
[% c.create_captcha %]


Accoring to the code I guess it is meant as calling create_captcha()  
in a controller that is accessed via an img tag:


 img src=http://my.app/createcaptcha; /

...where createcaptcha is the controller calling the Plugin::Captcha  
method.



--
rainboxx Matthias Dietrich
Freier Software Engineer

rainboxx  |  Tel.: +49 (0) 151 / 50 60 78 64
Tölzer Str. 19|  Mail: m...@rainboxx.de
70372 Stuttgart   |  WWW : http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html

NEU: Auf Perl spezialisierte Projektvermittlung!
 Bald mehr auf http://www.perl-experten.de





PGP.sig
Description: Signierter Teil der Nachricht
___
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] how to reuse Catalyst Schema for non-web purposes?

2009-04-23 Thread Matthias Dietrich

Hi,

this is an interesting topic.  I'm also one of that guys that put  
business logic into the controllers, but I never released any project  
yet, so it's my test Catalyst period and I'm still learning :) (and  
I never used MVC before).


I had that problem to use data of the db outside of the web app from a  
perl script.  What I have done so far is to use  
Catalyst::Plugin::CommandLine and accessed the model (that contains no  
business logic, the scripts actions differ from those of the web  
app).  That was fine for me in that situation.


Now, if I want to use business logic - which is implemented in  
Catalyst - in my script, I would get stuck.  Where should I place the  
business logic that I want to use on both ends?  In the controller  
actions?  No way, I don't want to call the action that is called  
though the web browser - because I might have some more logic that  
should be executed only when coming over the web.  (I asked a similar  
question to me very often yet: where to put business logic that is  
used by controller action A *and* B?)


There may be the possibility to add a new function to the namespace of  
one of the Controllers, but that sounds ugly to me.


So it's the model I put the business logic in?  That sounds ok, for  
now.  But what about this:
 * Input from the web has to be validated.  May be I use  
Data::FormValidator, may be FormFu.  However, I may have to validate  
the params I get from the script (eg. data import from ERP systems),  
too.  Do I have to implement the validation again?  And maybe  
normalization/converting, too?  Or where would you place these  
functionality?  Extra modules?
 * What about business logic that is in not only bound to a specific  
schema but has an overall logic that fetches data from different  
tables, adds some somewhere and produces results?  How would you  
implement such a logic?  Any examples?
 * An example for using data and logic outside of the web app would  
be generating invoices by night.  That process would bring out some  
PDFs which will be printed or sent by mail through another script.   
Shouldn't a view be involved in this process that builds the PDFs from  
templates?  Is it possible to build this example upon a Catalyst web  
app?  Examples?


Thanks for listening, looking forward to the answers...

Matt

--
rainboxx Matthias Dietrich
Freier Software Engineer

rainboxx  |  Tel.: +49 (0) 151 / 50 60 78 64
Tölzer Str. 19|  Mail: m...@rainboxx.de
70372 Stuttgart   |  WWW : http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html



PGP.sig
Description: Signierter Teil der Nachricht
___
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] Re: Detach won't detach?

2009-01-28 Thread Matthias Dietrich


On 28.01.2009 at 08:33 Octavian Rasnita wrote:

Why not:

sub auto :Private {
return user_logged_in || pop-redirect( ... ) || 0;
}


Because there used to be $c-req-base within the parentheses...   
Without that, this would work.


matt

--
rainboxx Matthias Dietrich
Freier Software Engineer

rainboxx  |  Tel.: +49 (0) 151 / 50 60 78 64
Tölzer Str. 19|  Mail: m...@rainboxx.de
70372 Stuttgart   |  WWW : http://www.rainboxx.de

XING: https://www.xing.com/profile/Matthias_Dietrich18
GULP: http://www.gulp.de/profil/rainboxx.html



PGP.sig
Description: Signierter Teil der Nachricht
___
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] Running multiple catalyst apps under Apache 2 with Log::Log4perl

2009-01-12 Thread Matthias Dietrich

Hi *,

I'm running multiple catalyst apps under one Apache with virtual  
hosts.  All works fine except logging.  All apps are logging to the  
files configured in the log4perl.conf of the latest loaded vhost.


Is there any workaround for this issue?  In a previous project with  
mod_perl and MasonX::WebApp we decided to init the logging with each  
request which isn't very efficient.


Thanks,
 matt




PGP.sig
Description: Signierter Teil der Nachricht
___
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] FormValidator and FV_eq_with constraint method

2008-11-28 Thread Matthias Dietrich

Hi,

Answering my own question again. It appears that you have to add all  
fields
to either the required or optional array in order that  
Data::FormValidator

processes them correctly.


can you post a sample?

Thanks,
 matt




PGP.sig
Description: This is a digitally signed message part
___
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/