Re: [Catalyst] ActiveRecord for Perl

2007-05-22 Thread Adam Bartosik
I'm considering trying to port Ruby's ActiveRecord to Perl as a lightweight ORM option (with some small changes maybe, like composite PKs). If anyone's interested, toss me a message privately and we'll coordinate. What I found missing in DBIx::Class is AR method find_by_sql(sql). We use catalyst

Re: [Catalyst] ActiveRecord for Perl

2007-05-22 Thread Adam Bartosik
I'm currently trying to decide on Catalyst or Rails for a new project. I like the flexibility of Catalyst (and love Perl), but I'm attracted to a lot of the design decisions in Rails (I like the fact, for example, that ActiveRecord::Validations supports data validation in the model, just like we w

Re: [Catalyst] ActiveRecord for Perl

2007-05-22 Thread Adam Bartosik
What would that achieve that passing literal SQL chunks for SELECT, FROM, WHERE etc. wouldn't? Readability. Complex SQL statements are more clear to understand than complex dbix "statements" when you are not an author of DBIX ;) I can also test it with simple copy&paste to sql console to see ho

Re: [Catalyst] ActiveRecord for Perl

2007-05-22 Thread Adam Bartosik
So here's the one big remaining question - why haven't you worked out what syntax you'd like to see for this feature and started a thread on the dbix-class list to discuss it? :) Good point. To be honest - I need to dig deeply into dbix structure to propose something in the dbix way. The main f

[Catalyst] DateTime in session- breaks during login/logout

2007-06-13 Thread Adam Bartosik
I put DateTime object into session like this: use DateTime; $c->session->{dateo} = DateTime->now; Everything works ok, object is properly stored/retrevied until you login or logout. After logout ($c->logout) I get: undef error - Invalid locale name or id: , at /usr/lib/perl5/Cache/FastMmap.

Re: [Catalyst] DateTime in session- breaks during login/logout

2007-06-14 Thread Adam Bartosik
If you don't have DateTime::Locale version 0.34, please try that. There was a bug in the Storable freeze/thaw handling. Great, works, thanks! :) /looks like i need to do some cpanplus upgrades on linuxes - deployment on freebsd machines is easier, you have more cpan packages in ports and they

Re: [Catalyst] IDE for use with Catalyst

2007-07-02 Thread Adam Bartosik
application with catalyst. Does anyone have an IDE that they can recommend? I have been developing perl apps for a while now but have been using vi :). If anyone has any suggestions I wold love to hear them. kdevelop or even native-editor from krusader (KDE apps) past: (x)emacs, but kdevelop h

[Catalyst] improving usability / doc

2007-08-16 Thread Adam Bartosik
I wonder how much better Catalyst doc would looks if the "top doc page", http://search.cpan.org/dist/Catalyst-Manual/ (linked from top catalyst page) had tutos in 1..9 order, not alphabetical? Is such change in naming eg: Catalyst::Manual::Tutorial::1_Intro Catalyst::Manual::Tutorial::2_Catalyst

Re: [Catalyst] improving usability / doc

2007-08-17 Thread Adam Bartosik
> How many people decided to take different framework just because > catalyst doc still sucks? "Sucks" is somewhat hurtful to the many contributers, but whatever, I see what you mean. Thanks - it is just what I think when I see flexibility of Catalyst compared eg. to Rails

Re: [Catalyst] user maintenance

2007-09-02 Thread Adam Bartosik
re not always the best. It just like flexibility in Catalyst compared to ... Rails? -- Adam Bartosik ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@

[Catalyst] log4perl autoflush (buffering log output?)

2007-09-11 Thread Adam Bartosik
Tue Sep 11 12:50:40 2007 12:50:46> time: Tue Sep 11 12:50:45 2007 Log time from log4perl is the same for all debug messages :( I know there are problems (and patches) to show proper line/module where log event occured with log4perl. What about this log-event time? -- Adam Bartosik _