Re: [Catalyst] datetime formatting ...

2010-02-11 Thread Eden Cardim
=> 1, size => undef, }, Kiffin> ); Kiffin> For some reason it's being displayed like this: Kiffin> "2010-01-05T20:35:14" Kiffin> How can I get that 'T' out of there, replacing it with the Kiffin> usual space? ->last_modifie

Re: [Catalyst] Multiple path for the same action

2010-02-17 Thread Eden Cardim
x27;) PathPart('') Args(2) { my($self, $c, $prefix, $username) = @_; $c->user->check_prefix($prefix) or $c->detach('/error_404'); } Also, make sure you store the old prefixes and redirect to the new ones adequately as to not break the web. -- Eden Cardim Need

Re: [Catalyst] Managing errors - cut execution flow.

2010-03-18 Thread Eden Cardim
ork mode on or via some process manager. We need further information about how you're running the application before telling you what to do. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Sha

Re: [Catalyst] Alternatives to DBIx?

2010-04-17 Thread Eden Cardim
t, I have a few projects where DBIx::Class is used solely as a query library and they all perform very well and were set up quite quickly, because I didn't have to spend time designing, building and testing an access layer. -- Eden Cardim Need help with your Catalyst or DBIx::Cl

Re: [Catalyst] Alternatives to DBIx?

2010-04-17 Thread Eden Cardim
d, it doesn't produce streamable output and once your documents get complex, it's not very easy to produce nicely indented code with it. For a "native approach" to html, try HTML::Zoom. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Co

Re: [Catalyst] Alternatives to Catalyst ?

2010-04-23 Thread Eden Cardim
hool. > Sorry for my "hard" post, i'm just a little nervious :( If you're nervous, see a shrink, trolling won't help you or anyone else. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.

Re: [Catalyst] Modifying Catalyst component load order

2010-07-17 Thread Eden Cardim
> "Rob" == Rob Hoelz writes: Rob> This way, applications requiring a custom load order can Rob> override determine_component_load_order if they which, and Rob> plugins can override it to provide cool features like Rob> dependency resolution. Rob> Thoughts? Load order make

Re: [Catalyst] Confused: how to handle system-level errors with fallback pages

2010-08-31 Thread Eden Cardim
ack to an error page. [snip] Stuart> I could just be missing some documentation: maybe this Stuart> is covered but I haven't been able to find it. Have you read Catalyst::Manual::Cookbook? -- Eden Cardim Need help with your Catalyst or DBIx::Class project? C

Re: [Catalyst] Reuse of controllers

2010-09-20 Thread Eden Cardim
Login; use Moose; with 'MyRole::Login'; __PACKAGE__->config(action => { login => { PathPart => 'log-in } } ); note that you can use any key that you would use as an action attribute, including chainining, and catalyst automatically promotes the method to an action due to t

Re: [Catalyst] Postgresql database with non default -public- schema

2010-10-23 Thread Eden Cardim
, when table Hetényi> structures often change. :) Have a look at DBIx::Class::Schema::Versioned, it's designed specifically for managing changes in your schema. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://ww

Re: [Catalyst] Debug Output

2010-10-23 Thread Eden Cardim
er/host names so that I get configuration files like: conf/myapp_edenc_home.conf conf/myapp_edenc_remoteserver1.conf conf/myapp_someotherdev_remoteserver1.conf conf/myapp_staging_remoteserver1.conf conf/myapp_production_remoteserver2.conf conf/myapp_production_remoteserver3.conf etc... This

Re: [Catalyst] Organizing link generators

2010-10-23 Thread Eden Cardim
rrently the best way to generate urls (that I can think of anyway), although you can save some typing by using hash slices instead. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems

Re: [Catalyst] How to access the real App in prepare_arguments in Catalyst::Model::Adaptor

2010-11-02 Thread Eden Cardim
you want to weaken the attribute or it'll leak memory. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://blog.ed

Re: [Catalyst] myapp_test.pl - running code from the command line

2010-11-03 Thread Eden Cardim
;)->bar; for the authentication case, you're very probably relying on the authentication API inside the controller code, which for most cases won't work at all in a non-web environment. You'd have to mimic the entire environment, which is a lot more trouble than just factoring your code corr

Re: [Catalyst] error handling (Chain where ajax and non-ajax actions chain off)

2010-11-09 Thread Eden Cardim
David> my ($self, $c) = @_; David> unless ($c->request->is_xhr) { David> $c->forward('render'); David> } David> } David> Any comments on that solution are appreciated as are pointers David> to altern

Re: [Catalyst] error handling (Chain where ajax and non-ajax actions chain off)

2010-11-10 Thread Eden Cardim
'error_404')); in Controller::Artist: sub error_404 :Action { my($self, $c) = @_: $c->stash->{template} = 'error_404.tt' } in Controller::Artist::XHR: sub error_404 :Action { my($self, $c) = @_; $self->status_not_found($c, message => 'Cannot find wha

Re: [Catalyst] error handling (Chain where ajax and non-ajax actionschain off)

2010-11-10 Thread Eden Cardim
>>>>> "Octavian" == Octavian Rasnita writes: Octavian> Can I find more information about the ":Action" dispatch type? Octavian> Is it just a replacement for :Private? Or it is something different? Yes, it's effectively a replacement for :

Re: [Catalyst] Question about Chained Controller

2010-11-15 Thread Eden Cardim
d foo The above configuration will eliminate the check for the 'bar_level_users' role before running do_something_else. -- Eden CardimNeed help with your perl Catalyst or DBIx::Class project? Software Engineer http://www.shadowca

Re: [Catalyst] Forward on to other actions after removing first path segment?

2010-11-15 Thread Eden Cardim
.*) in the regex function attribute? Some other way? See Chained actions, as mentioned in Ben's previous post. -- Eden CardimNeed help with your perl Catalyst or DBIx::Class project? Software Engineer http://www.shadowcat.co.uk/catalyst/ Shadowca

Re: [Catalyst] Question about Chained Controller

2010-11-15 Thread Eden Cardim
intain the attributes scattered around the app then locate and edit the related code in auto. -- Eden CardimNeed help with your perl Catalyst or DBIx::Class project? Software Engineer http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd.Want a m

Re: [Catalyst] Suggestions on how to handle 12 page form

2010-11-16 Thread Eden Cardim
ate a linked list of tokens, in order to create a bread-crumb-like behaviour. I've been wanting to write a module with that logic for some time now, but I always find myself lacking the tuits. -- Eden CardimNeed help with your perl Catalyst or DBIx::Class project? So

Re: [Catalyst] Multiple chain sources?

2010-11-22 Thread Eden Cardim
ver, are working on a grammar-based dispatcher that will allow easy expression of those types of constructs. You'll have to declare something like: sub my :Chained('base') CaptureArgs(0) { my($self, $c) = @_; $c->forward(user => [$c->user->id]); } and then chain on

Re: [Catalyst] Begginer's question about application structure

2010-11-22 Thread Eden Cardim
methods can be Martin> used no matter what the interface? I'm of the opinion that using form generators puts you through the same amount of trouble than writing/validating forms by hand, so I just dodge the HTML::FormHandler thing altogether, but that's just me, YMMV. -- Eden

Re: [Catalyst] Catalyst::Model::DBIC::Schema - Print Debug statement

2010-12-03 Thread Eden Cardim
E}++ to the MyApp.pm You need to set it before the storage object is constructed, namely, it should work if you place it before the call to MyApp->setup -- Eden CardimNeed help with your perl Catalyst or DBIx::Class project? Software Engineer http://ww

Re: [Catalyst] Catalyst Workflow Framework Integration

2010-12-13 Thread Eden Cardim
an integrate via a Catalyst::Model, see the catalyst manual for that: http://goo.gl/Adudh -- Eden CardimNeed help with your perl Catalyst or DBIx::Class project? Software Engineer http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd.Want a

Re: [Catalyst] Catalyst Workflow Framework Integration

2010-12-20 Thread Eden Cardim
t. package MyApp::Model::Workflow; use Moose; BEGIN { extends 'Catalyst::Model' } use MyApp::Workflow; sub ACCEPT_CONTEXT { return MyApp::Workflow->new } where MyApp::Workflow is your custom CW::Instance subclass. Then you'll be able to access it via $c->model('Wor

Re: [Catalyst] Ajax Problem.

2011-01-06 Thread Eden Cardim
u're going to update the document via innerHTML. For implementation specifics you're going to have to show your catalyst code. -- Eden CardimNeed help with your perl Catalyst or DBIx::Class project? Software Engineer http://www.shadowcat.co.uk/ca

Re: [Catalyst] Sanity Check -- requesting feedback on chaining approach

2011-02-15 Thread Eden Cardim
t;related_resultset(''); } sub related_page :Chained('related_items') PathPart('page') Args(0) { my($self, $c) = @_; $c->forward('page'); } sub related_csv :Chained('related_items') PathPart('csv') Args(0) { my($self, $c) =

Re: [Catalyst] Conversion from Subversion to Git complete!

2011-02-18 Thread Eden Cardim
> channel (#catalyst on irc.perl.org) and ask about it; we can fREW> possibly get you hooked up Were the previous commit bits preserved? -- Eden Cardim Software Engineer Shadowcat Systems Ltd. http://www.shadowcat.co.uk http://blog.edencardim.com __

Re: [Catalyst] redirect and ajax

2011-03-21 Thread Eden Cardim
erver does is set a header. If the redirection isn't happening, your JS client isn't respecting the header. So yes, you need to write code on the client-side that does the redirection for you. -- Eden Cardim Software Engineer Shadowcat Systems Ltd. http://ww

Re: [Catalyst] Updating a database entry

2011-04-11 Thread Eden Cardim
ou want. Francisco> so it must be able to uniquely identified each row with Francisco> a Primary Key. This is orthogonal to the fact that you're using DBIC inside Catalyst, it actually depends on the data model you've implemented. -- Eden Cardim Need help wi

Re: [Catalyst] Force the session to be saved.

2011-04-11 Thread Eden Cardim
ions but you haven't mentioned what the expected behaviour is and what you're getting instead of that. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a

Re: [Catalyst] What text editor to use?

2011-04-11 Thread Eden Cardim
for maximum throughput and it's very satisfying. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://

Re: [Catalyst] Implementing a 'remember me on this computer' button

2011-04-11 Thread Eden Cardim
State::Cookie}{cookie_expires} = 0; $c->authenticate; $c->get_session_cookie->expires($ttl) if $remember_user; --8<---cut here---end--->8--- Should do the trick. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkey

Re: [Catalyst] Setting Model Class Variable from Catalyst Config

2011-04-11 Thread Eden Cardim
t;config->{Model::Foo}{bar} = 'baz'; package MyApp::Model::Foo; has bar => (is => 'ro'); --8<---cut here---end--->8--- The above should set the bar attribute during load time for you straight out of the box. -- Eden

Re: [Catalyst] Help System - Can a controller's index capture the remainder of the path as a series of arguments?

2011-04-11 Thread Eden Cardim
ght via apache or whatever in production. And in your templates: --8<---cut here---start->8--- Help --8<---cut here---end--->8--- -- Eden Cardim Need help with your Catalyst or DBIx::Class p

Re: [Catalyst] What text editor to use?

2011-04-12 Thread Eden Cardim
ral situations (like debugging code on a headless web server or recovering your screwed X session). If you need an editor that favors mice and GUIs, try Padre. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/

Re: [Catalyst] Model Instances vs. Model Classes - Round 2

2011-05-18 Thread Eden Cardim
able to $c and sons. The real issue is that your API will be laden with web-based semantics, not business semantics. The focal point of me bringing this up is that the implementation is barely what matter in a discussion like this, it's always about the API semantics. -- Eden Cardim

Re: [Catalyst] DBI Models Question.

2011-06-12 Thread Eden Cardim
model. It already works that way, try: dsn 'DBI:Pg:dbname=rsvp;host=joomla.brain.buz', user joomla password 007drupal -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/catal

Re: [Catalyst] error while starting my dev enviroment

2011-07-10 Thread Eden Cardim
rl alone and build one exclusively for your app. If it's a production-scale system, you want to do that anyway, given most vendor perls come with threading support and that will impact performance. You can then install all the dependencies from CPAN, to get minimum maintainance interference be

Re: [Catalyst] Best practices for extending DBIC model

2011-07-14 Thread Eden Cardim
>>>>> "Eric" == Eric Wright writes: Eric> I'm using Catalyst::Model::DBIC::Schema. Is there a preferred Eric> way to hook into the result set to customize things the way I Eric> need? http://beta.metacpan.org/module/Catalyst::Model::DBIC::Schem

Re: [Catalyst] Refactoring Controllers

2011-07-29 Thread Eden Cardim
private, you want to create a base controller to preserve the URI paths and keep them consistent across the several inheriting controllers. If not, move the methods into a model and use delegation. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkey

Re: [Catalyst] Model Testing Problems.

2011-09-05 Thread Eden Cardim
x27;)->CountSheep(), 3 , 'CountSheep. There are 3 sheep in BoPeeps flock' ) ; The above snippet should work, assuming the CountSheep() method is in place. -- Eden Cardim Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a manage

Re: [Catalyst] Compress HTML

2011-09-08 Thread Eden Cardim
cpan.org/module/HTML::Packer And now that Catalyst has moved to being 100% plack compliant, you can integrate that effortlessly via Plack::Middleware::HTMLMinify -- Eden Cardim Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a manage

Re: [Catalyst] RE: DBIC <-> JSON conversion for AJAX

2011-09-12 Thread Eden Cardim
-Type of application/json you'll get JSON from that in your response. -- Eden Cardim Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://blog.edencardim.com/

Re: [Catalyst] Paradigm question: how to use ResultSet level security based on $c->user?

2011-10-18 Thread Eden Cardim
t's a DBIC resultset will> depending on another DBIC object, so it may not be as big an will> issue as, say, when we have HTML::FormHandler popup menus that will> should only show the user options based on the user's role will> and/or organization. will> I

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

2012-02-21 Thread Eden Cardim
ange? Louis> So, I'd think this is deliberate. It will also affect all the Louis> scripts. What is this going to do to myapp_fastcgi, when the Louis> webserver doesn't set the WD as expected? I'm not exactly sure about the specific motivation for that chan

Re: [Catalyst] Built in profiling in the UI

2012-02-21 Thread Eden Cardim
m> debug-mode of course, but bringing it into developers face might be Adam> motivating... And the database query integration looks nice. See Plack::Middleware::Debug and it's plugins. Specifically, Plack::Middleware::Debug::CatalystLog, Plack::Middleware::Debug::DBITrace and Pl

Re: [Catalyst] Re: Overriding chained methods.

2012-02-21 Thread Eden Cardim
configuration in the child controller, like this: __PACKAGE__->config(action => { foo => { Chained => '/bar } }); Note that you can make any method in a controller magically become an action, by merely providing config in the way described above. -- Eden Cardim Need

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

2012-02-21 Thread Eden Cardim
running 'make Louis> install', and then being in the path somewhere? Wouldn't finding Louis> lib be even more critical in that case? Adding a ../lib or even Louis> $basename/../lib wouldn't be appropriate there. Yes, but there's only so much that ca

Re: [Catalyst] Passing REMOTE_USER to development server

2012-03-02 Thread Eden Cardim
er startup and Stephen> then how should I access it in my controller? use Plack::Middleware::ForceEnv, this and other upgrade caveats are documented in Catalyst::Upgrading -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkey http:/

Re: [Catalyst] Error loading data from schema

2012-04-04 Thread Eden Cardim
r row appears. I cannot find anything that tells me Kenneth> specifically what this should be composed of. Any pointers to Kenneth> help figure this out are appreciated. When the app loads, you should get a list of loaded components, please show us that list. -- Eden Cardim

Re: [Catalyst] Error loading data from schema

2012-04-04 Thread Eden Cardim
| dbms::Model::ORANGES::AccountView | class| Kenneth> Strange, I do not see it listed, yet it got created and works Kenneth> when I call the /index. You probably want $c->model('ORANGES::AccountView'); -- Eden Cardim

Re: [Catalyst] Starman and Catalyst

2012-04-05 Thread Eden Cardim
oad-app if you want to save memory. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkey http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd.Want a managed development or deployment platform? http://edencardim.com

Re: [Catalyst] How to access $c->apache in 5.9?

2012-04-20 Thread Eden Cardim
rst place). Whenever you need to access $c->engine->env, you should be applying a Plack::Middleware to your .psgi instead. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkey http://www.shadowcat.co.uk/catalyst/ Shadow

Re: [Catalyst] How to access $c->apache in 5.9?

2012-04-23 Thread Eden Cardim
aybe it is better to be Hailin> implemented in Plack::Handler::Apache2 :) No, as I've said before, it's better implemented in a middleware. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkey http://www.shadowcat.co.uk/cata

Re: [Catalyst] Stand-alone Scripts

2012-04-27 Thread Eden Cardim
a, with the correct configs. (With a bit of ->setup munging you'll be able to eliminate plugins as well) Or, you can use the "cleaner" route and use a standalone Config::JFDI setup and decouple everything from the app, which I find to be more troublesome to maintain. --

Re: [Catalyst] upstart script for Starman-based app?

2012-05-03 Thread Eden Cardim
7;d using Catalyst::Model::DBIC::Schema, you don't need to wait for MySQL to come up, as it does lazy connecting. If someone issues a request during the mysql startup time, they'll get a 500 error, which you can handle via an error document and is much better than a plain 404. --

Re: [Catalyst] Catalyst and Dist::Zilla?

2012-07-06 Thread Eden Cardim
ShareDir plugin. You will need to adjust $c->path_to to point to the share dir appropriately, I've been planning to submit a patch for this, but haven't found the time. -- Eden Cardim +55 11 9644 8225 ___ List: Catalyst@lists.scsys.co.uk Li

Re: [Catalyst] Catalyst and Dist::Zilla?

2012-07-06 Thread Eden Cardim
m an installed location (prove -l Bill>  vs. prove -b) so it can use the right "root" using existing methods Bill> or via File::ShareDir. It already does the installed vs checkout verification, all that's lacking is the sharedir integration. Bill> Still, not s

Re: [Catalyst] New design

2013-07-23 Thread Eden Cardim
k> you guys think. Mark> http://www.mdk.me.uk/community/mocks/Catalyst.jpg I love it! -- Eden Cardim ShadowCat Systems Ltd. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archi

Re: [Catalyst] KISS - Base Subroutines.

2016-07-15 Thread Eden Cardim
"Andrew" writes: > Is there a keep it simple stupid answer to the following question: > > Put a subroutine in a separate place, where it can be accessed / called, by > whatever controllers need to use it? Create MyApp::Model::Whatever then $c->model('Whatever')->subroutine _

Re: [Catalyst] Catalyst site design drafts feedback thread

2008-06-12 Thread Eden Cardim
On Wed, Jun 11, 2008 at 4:54 PM, Matt S Trout <[EMAIL PROTECTED]> wrote: > (1) http://www.browsing.co.uk/cat The color scheme works well, I'm particularly fond of the red and grey combination, and I'd get rid of the colourful lines above the content columns. I dislike the ingredients image with th

Re: [Catalyst] Using a post argument in a template

2008-07-24 Thread Eden Cardim
On Fri, Jul 25, 2008 at 1:12 AM, James S. White <[EMAIL PROTECTED]> wrote: > I'm passing an argument to the method via a post, and then catch it with > my ( $self, $c, $myarg ) = @_; shouldn't there be a way to mine it without > using [% c.req.arguments.0 %] in the template? > > like [% c.controlle

Re: [Catalyst] best practices - model or controller ?

2008-10-04 Thread Eden Cardim
On Sat, Oct 4, 2008 at 9:31 AM, Peter Karman <[EMAIL PROTECTED]> wrote: > You don't need a real plugin unless you need to override the dispatch process. > But I often put convenience methods in my MyApp.pm base class. So implement > your > idea #1 and then add: > > package MyApp; > > sub logdb { >

Re: [Catalyst] Model--best practice help

2008-10-05 Thread Eden Cardim
On Sun, Oct 5, 2008 at 2:03 PM, Dr. Jennifer Nussbaum <[EMAIL PROTECTED]> wrote: > So ive got these two model classes, one i call with > $c->model('MyAppDB::Book') and the other with $c->model('Book'). The problem > is, i have some things that are Cat specific and i dont want them in my > schema

Re: [Catalyst] Filtering tables from model scaffolding

2008-11-07 Thread Eden Cardim
o filter the tables generated by this script? > Perhaps a better method exists for this sort of thing? See DBIx::Class::Schema::Loader, particularly, the make_schema_at() function and the "constraint" and "exclude" options. -- Eden Cardim Need help w

Re: [Catalyst] Plugin dependencies best practices

2008-11-26 Thread Eden Cardim
etup? Load your plugin before Auth::ACL and call $app->NEXT::setup_actions before everything else -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed develop

Re: [Catalyst] many_to_many relationship always deletes then inserts

2009-01-03 Thread Eden Cardim
n. FormFu is using the set_pictures method that is generated by DBIC for m2m rels and there's probably no better generic implementation for it other than delete + reinsert. If you want your own specialized logic you can override the set_pictures method. -- Eden Cardim Need

Re: [Catalyst] check_user_roles [ $user ], @roles ?

2009-02-04 Thread Eden Cardim
_other_user" is a username string, in the column "username" of my user > table. myapp/myapp.conf ist setup accordingly (i.e.: user_class myapp::user > and id_field username). > > What am I doing wrong? $c->check_user_roles expects a user object not a username string (how w

Re: [Catalyst] check_user_roles [ $user ], @roles ?

2009-02-04 Thread Eden Cardim
ser ||= $c->user; That particular bit means you need to feed it a blessed scalar, namely, *an object*. > i think you can give a string ... you must load the user into a user-object > fit for the Authorization::Roles Not if you want it to DTRT. -- Eden Cardim Need help

Re: [Catalyst] DBIx makes Catalyst startup painfully slow

2009-02-10 Thread Eden Cardim
iTmCiHg4g -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://edenc.vox.com/http://www.shadowcat.co.u

Re: [Catalyst] DBIx makes Catalyst startup painfully slow

2009-02-10 Thread Eden Cardim
isk in search of table classes, and given you have 148 tables, that's probably what's hitting you. Just declare all your loadable classes manually and you'll probably shave off most of load time. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monk

Re: [Catalyst] [Announce] Catalyst::Runtime 5.7099_04. IMPORTANT; PLEASE TEST!

2009-03-14 Thread Eden Cardim
allback for $c->model('myApp::View::HTML'), which > found 'myApp::View::HTML=HASH(0x8ef7b50)'. Relying on regexp fallback You're not using the API correctly, your call should be $c->view('HTML') -- Eden Cardim Need help with your Catalyst or DB

Re: [Catalyst] Getting strange warning each time a request is made to myApp

2009-03-14 Thread Eden Cardim
On Sat, Mar 14, 2009 at 10:49 AM, wrote: >  Any idea or documentation that I could read up to find out on how to > configure a default view? $c->view is documented in perldoc Catalyst -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Co

Re: [Catalyst] Best practice: How to build app parts reusable?

2009-06-02 Thread Eden Cardim
asses into a single namespace and selectively load the ones you want into your app via $c->config->{setup_components} and the Module::Pluggable API. >  And the templates?  The only way I know of is to copy and paste them into > the 'root' folder of the app. Assuming you&#

Re: [Catalyst] Catalyst-Model-Validated example broken?

2009-06-12 Thread Eden Cardim
ad? This is an unmaintained oversimplification of how Reaction works. I put the example up as proof-of-concept code. I believe castaway has gone a bit further and integrated this into a production app. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkey

Re: [Catalyst] Configuration based on hostname

2009-07-13 Thread Eden Cardim
;config->{'Plugin::ConfigLoader'}{config_local_suffix} = hostname(); that way, you can set up your app-wide config in myapp.conf and the host specific config in myapp_hostname.conf -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkey

Re: [Catalyst] CatalystX::CRUD Storage Error

2009-07-17 Thread Eden Cardim
pp_class->model( $self->model_name )->result_source->storage->sqlt_type -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deploymen

Re: [Catalyst] Loading template according to request path

2009-08-11 Thread Eden Cardim
: Chained('content') Args(0) {} # /content/as/graph # doesn't process a template at all as long as View::SVG sets $c->res->body sub graph : Chained('content') Args(0) { my($self, $c) = @_; $c->forward('View::SVG'); # sets res->body, res->conte

Re: [Catalyst] Loading template according to request path

2009-08-13 Thread Eden Cardim
On Tue, Aug 11, 2009 at 8:11 PM, J. Shirley wrote: > The fact that Chained doesn't render template from PathPart, but from the > action name? :) > > It would be content/html.tt -- not content/as/html.tt not really: >> # insert jshirley's end action here -- Eden

Re: [Catalyst] Loading template according to request path

2009-08-13 Thread Eden Cardim
plate paths match. Also, if you have arguments in your paths, say, /foo/*/bar/*, you'll be allowing the addition of per-record customization templates, which leads to refactor hell once again when your underlying model changes. Of course, this problem also exists with the traditional temp

Re: [Catalyst] Why no extra attributes on Private actions?

2009-08-15 Thread Eden Cardim
nstead, as mst suggested in reply to the same thread: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/msg01413.html -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd.

Re: [Catalyst] Why no extra attributes on Private actions?

2009-08-17 Thread Eden Cardim
attributes, is this not what you want? Personally, I've dumped most uses of method attributes altogether, in favor of the config-based scheme, except for a few cases of chaining, so I'd vouch for dumping :Private as well. -- Eden Cardim Need help with your Catalyst or DB

Re: [Catalyst] Catalyst and workflow ...

2009-08-17 Thread Eden Cardim
latter, Class::Workflow has some interesting examples. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://edenc.v

Re: [Catalyst] Reading Database At Startup

2009-08-19 Thread Eden Cardim
om country order by letter' ); }; sub BUILD { shift->country_letters } # optionally, force load-time construction # in a distant controller $c->stash->{letters} = $c->model('DB')->country_letters; -- Eden Cardim Need help with your Catalyst or DBIx::Class project?

Re: [Catalyst] Reading Database At Startup

2009-08-20 Thread Eden Cardim
hat will take a you a step closer to creating a god object. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://eden

Re: [Catalyst] Handling configuration outside the Catalyst application

2009-08-27 Thread Eden Cardim
lyst application. it's a temporary solution, my opinion is that there should be an external module for use by any application, not just cat, and the plugin should just hook that module into Catalyst. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkey

Re: [Catalyst] Modelling the right way

2009-09-03 Thread Eden Cardim
nfrastructure merely for glueing those into your web application. This also has the benefit of easing the process of unit testing. Have a look at how Model::DBIC::Schema and View::TT do it, and have a look at http://www.catalystframework.org/calendar/2007/24 -- Eden Cardim Need hel

Re: [Catalyst] namespace problem

2009-11-25 Thread Eden Cardim
break something. As Moritz writes, if you need a controller Andrew> base class, write a controller base class and inherit from Andrew> that. Or even better, write a role instead. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkey

Re: [Catalyst] How to execute a script

2009-12-04 Thread Eden Cardim
want to run these processes assynchronously anyway, not just because of the time-out, but other things like security and manageability come into play. The typical way to get this done is to implement a job queue. -- Eden Cardim Need help with your Catalyst or DBIx::C

Re: [Catalyst] Access to DBIx schema from outside Catalyst

2009-12-07 Thread Eden Cardim
anywhere in a perl program just like you'd use any other class. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http:/

Re: [Catalyst] How to join catalyst dev server?

2009-12-10 Thread Eden Cardim
machine, and assuming you're using a unix, a cheap solution would be to manually add X.X.X.X foo.bar.com to your /etc/hosts file -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowca

Re: [Catalyst] Plain text extraction [update]

2009-12-11 Thread Eden Cardim
hared hosting environments, some might be painful, some might not. I for one, have Catalyst successfully deployed at Dreamhost with local::lib, cost me some effort, but not too much. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkey

Re: [Catalyst] Renaming a Catalyst Application

2009-12-16 Thread Eden Cardim
doesn't figure out what modules were installed as dependencies, but it's a good start for a production-worthy Makefile.PL -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Sys

Re: [Catalyst] Multiple deployments sharing code, data, and configuration

2009-12-19 Thread Eden Cardim
27;d say it's easier/saner to just maintain different configurations for each deploy type in the repo itself, then use some mechanism, like symlinks, or CATALYST_CONFIG to switch between them in specific deploys. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Mo

Re: [Catalyst] Perl code attributes in Moose roles

2009-12-21 Thread Eden Cardim
::Role::Controller::Create'; Bernhard> Where can I add the ACL attributes for edit_new? Try MooseX::Role::Parameterized -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat System

Re: [Catalyst] sending a variable to more than one tt2 template

2008-03-06 Thread Eden Cardim
On Thu, Mar 6, 2008 at 7:36 PM, Emily Heureux <[EMAIL PROTECTED]> wrote: > Hi, I have a variable in a Controller method sent to the stash for a > particular tt file. What if I want that same variable to be available to > another tt file? I assume I cannot set two templates in one method. yeah yo

Re: [Catalyst] How do I access 'Catalysed' custom datasets?

2008-03-19 Thread Eden Cardim
On Tue, Mar 18, 2008 at 4:40 PM, Ian Sillitoe <[EMAIL PROTECTED]> wrote: > sub get_custom_resultset { > my ($from, $to) = @_; >my $result_source_name = "ResultSetFrom${from}To${to}"; > my $result_source; > > # check if we haven't already made this > if ( grep { $reps_source_name eq $_

Re: [Catalyst] Getting DBIC schema from outside Catalyst?

2017-03-09 Thread Eden Cardim
On Wed, Mar 8, 2017 at 6:15 PM, Robert Brown wrote: > Hi Jen, > > You can use MyApp::Schema outside of Catalyst: > > my $schema = MyApp::Schema->connect( $ENV{ LIVE } ? 'live' : 'dev' ); > > (I'm additionally using DBIx::Class::Schema::Config to be able to connect > to different servers by using

  1   2   >