[Catalyst] Pedantically thorough one-shot catalyst sandbox installation: eventually intended to install demo/sample apps at one shot as well

2006-12-15 Thread Thomas Hartman
( Originally posted to perlmonks at http://www.perlmonks.org/?node_id=589529 ) I have released an (in progress) catalyst one-shot installer: pimpmycat -- into Google code project hosting. a href=http://code.google.com/p/pimpmycat/source; This is the way I have evolved to manage complexity in

[Catalyst] DateTime Timezone

2006-12-15 Thread Tobias Kremer
My application stores all dates in a MySQL database in the UTC timezone. Because I'm doing further calculations with these dates after retrieving them via DBIx::Class I don't want them to get auto-inflated into the timezone of the current user. The DateTime POD recommends doing date calculations

Re: [Catalyst] order_by

2006-12-15 Thread Sébastien Wagener
On Thu, 2006-12-14 at 18:51 -0800, Andrew Peebles wrote: Will Smith wrote: I think you want: $c-stash-{book} = [$c-model('myappDB::Book')-search( {}, {order_by = 'title} )]; The DBIx::Class::ResultSet pod recommends using undef instead of {}, if I remember right. That's how I remember

Re: [Catalyst] DateTime Timezone

2006-12-15 Thread Chisel Wright
On Fri, Dec 15, 2006 at 10:34:35AM +0100, Tobias Kremer wrote: My application stores all dates in a MySQL database in the UTC timezone. Because I'm doing further calculations with these dates after retrieving them via DBIx::Class I don't want them to get auto-inflated into the timezone of the

Re: [Catalyst] DateTime Timezone

2006-12-15 Thread Tobias Kremer
Zitat von Chisel Wright [EMAIL PROTECTED]: I tend to use the following in my schema classes to deal with timestamps in my app(s): Yes, that's also what the DBIx::Class::InflateColumn::DateTime component which I'm using for this purpose does:

Re: [Catalyst] TIP: resolv uri based on delta params

2006-12-15 Thread Dan Dascalescu
to summarize: a href=[% c.request.uri_with( page = pager.next_page ) %]Next Page/a Funny that Catalyst::Enzyme reinvented the wheel, too: http://search.cpan.org/dist/Catalyst-Enzyme/lib/Catalyst/Enzyme/CRUD/View.pm#%24c-%3Ethis_request_except(%25new_params)

Re: [Catalyst] Catalyst::Plugin::Authentication::Store::LDAP settings for Microsoft Active Directory

2006-12-15 Thread Russell Jenkins
Hermida, Leandro wrote: authentication: ldap: ldap_server: myhostname.domain.com ldap_server_options: version : 3 binddn: searchuser bindpw: searchpwd user_basedn: cn=Users,dc=domain,dc=com user_filter: ??? user_scope: sub

Re: [Catalyst] TIP: resolv uri based on delta params

2006-12-15 Thread Brian Cassidy
Dan Dascalescu wrote: to summarize: a href=[% c.request.uri_with( page = pager.next_page ) %]Next Page/a Funny that Catalyst::Enzyme reinvented the wheel, too: http://search.cpan.org/dist/Catalyst-Enzyme/lib/Catalyst/Enzyme/CRUD/View.pm#%24c-%3Ethis_request_except(%25new_params) Not

[Catalyst] Best practice for using transactions?

2006-12-15 Thread Jon Warbrick
Does anyone have any advice on best practise for using transactions in a database-based Catalyst app? I'm using DBIx::Class, and I can see how I can wrap particular processing steps with txn_do to impliment transactions. But it seems to me that there might, for a general CRUD application, be

[Catalyst] Happy Hanukkah

2006-12-15 Thread Len Jaffe
Happy Hanukkah everybody. Len. -- [EMAIL PROTECTED] 614-404-4214 ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site:

Re: [Catalyst] Best practice for using transactions?

2006-12-15 Thread Robert 'phaylon' Sedlacek
Brandon Black wrote: Or on the other hand, you could probably do it as a Controller base-class using the begin and end methods there too, and then you still have the option of some readonly controller not using transactions. While we're at making transaction-scopes smaller, I'd even go

[Catalyst] Modifying the base url

2006-12-15 Thread Julien GILLES
Hi, is-it possible to add a default base address to Catalyst urls ? I have a classical application with /foo, /bar/123 urls, and I want to call them as http://localhost:3000/baz/foo, http://localhost:3000/baz/bar/123, having all Catalyst.uri_for with the complete base part. I can of course

Re: [Catalyst] Modifying the base url

2006-12-15 Thread Krzysztof Krzyżaniak
Julien GILLES [EMAIL PROTECTED] writes: Hi, is-it possible to add a default base address to Catalyst urls ? I have a classical application with /foo, /bar/123 urls, and I want to call them as http://localhost:3000/baz/foo, http://localhost:3000/baz/bar/123, having all Catalyst.uri_for

Re: [Catalyst] order_by

2006-12-15 Thread Will Smith
Thank you for pointing me to the right doc. Sometimes I could not find the right doc to read. Thanks again for all your help Happy holidays Sébastien Wagener [EMAIL PROTECTED] wrote: On Thu, 2006-12-14 at 18:51 -0800, Andrew Peebles wrote: Will Smith wrote: I think you want:

Re: [Catalyst] Modifying the base url

2006-12-15 Thread Jonathan Rockway
Julien GILLES wrote: I can of course update all controllers, bu I need something configurable (in myapp.yml it would be fine). I think this is a webserver issue. `Alias /baz /path/to/myapp.fcgi/` should be sufficient for Apache. You might also want to try: base: /baz in your myapp.yml. I

[Catalyst] C::P::Email and testing

2006-12-15 Thread Daniel McBrearty
if you have an action that sends an email, how do you write tests for it? perhaps print the email to a temp file in test mode? what do you guys do? -- Daniel McBrearty email : danielmcbrearty at gmail.com www.engoi.com : the multi - language vocab trainer BTW : 0873928131