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 you

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] 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 the

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 [%

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 { my $c

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 class

Re: [Catalyst] Filtering tables from model scaffolding

2008-11-07 Thread Eden Cardim
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 with your Catalyst or DBIx::Class project? Code Monkeyhttp

Re: [Catalyst] Plugin dependencies best practices

2008-11-26 Thread Eden Cardim
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 development or deployment platform? http

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

2009-02-04 Thread Eden Cardim
and id_field username). What am I doing wrong? $c-check_user_roles expects a user object not a username string (how would it distinguish a user name from a role name?). You can get a user object via $c-find_user. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code

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

2009-02-04 Thread Eden Cardim
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 with your Catalyst or DBIx::Class project? Code Monkey

Re: [Catalyst] DBIx makes Catalyst startup painfully slow

2009-02-10 Thread Eden Cardim
/tcXHEoyXXwHvcI5RppiTmCiHg4g -- 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.uk

Re: [Catalyst] DBIx makes Catalyst startup painfully slow

2009-02-10 Thread Eden Cardim
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 Monkeyhttp://www.shadowcat.co.uk/catalyst

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

2009-03-14 Thread Eden Cardim
::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 DBIx::Class project? Code Monkeyhttp

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, kakim...@tpg.com.au 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? Code Monkey

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

2009-06-12 Thread Eden Cardim
? 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
-{'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 Monkeyhttp

Re: [Catalyst] CatalystX::CRUD Storage Error

2009-07-17 Thread Eden Cardim
)-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 deployment platform? http://edenc.vox.com/http

Re: [Catalyst] Loading template according to request path

2009-08-11 Thread Eden Cardim
as View::SVG sets $c-res-body sub graph : Chained('content') Args(0) { my($self, $c) = @_; $c-forward('View::SVG'); # sets res-body, res-content_type, etc. } sub whatever : Chained('content') Args(0) { #etc... } # insert jshirley's end action here what's missing? -- Eden Cardim

Re: [Catalyst] Loading template according to request path

2009-08-13 Thread Eden Cardim
On Tue, Aug 11, 2009 at 8:11 PM, J. Shirleyjshir...@gmail.com 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 Cardim Need

Re: [Catalyst] Loading template according to request path

2009-08-13 Thread Eden Cardim
. This is why, theoretically, views are supposed to be dispatch-agnostic and it's specifically the controller's job to tell the view how to render data. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkeyhttp://www.shadowcat.co.uk/catalyst

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

2009-08-15 Thread Eden Cardim
@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. Want a managed development or deployment platform? http://edenc.vox.com/http

Re: [Catalyst] Reading Database At Startup

2009-08-19 Thread Eden Cardim
; -- 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.uk/servers

Re: [Catalyst] Reading Database At Startup

2009-08-20 Thread Eden Cardim
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://edenc.vox.com

Re: [Catalyst] Handling configuration outside the Catalyst application

2009-08-27 Thread Eden Cardim
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 Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development

Re: [Catalyst] namespace problem

2009-11-25 Thread Eden Cardim
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 Monkeyhttp://www.shadowcat.co.uk

Re: [Catalyst] How to execute a script

2009-12-04 Thread Eden Cardim
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::Class project? Code Monkeyhttp

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

2009-12-07 Thread Eden Cardim
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://edenc.vox.com/http://www.shadowcat.co.uk

Re: [Catalyst] Renaming a Catalyst Application

2009-12-16 Thread Eden Cardim
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 Systems Ltd. Want a managed development or deployment platform

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

2009-12-19 Thread Eden Cardim
between them in specific deploys. -- 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

Re: [Catalyst] Perl code attributes in Moose roles

2009-12-21 Thread Eden Cardim
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 Systems Ltd. Want a managed development or deployment

Re: [Catalyst] datetime formatting ...

2010-02-11 Thread Eden Cardim
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_modified-strftime('%F %T') See perldoc DateTime for more formatting options. -- Eden Cardim Need help with your Catalyst

Re: [Catalyst] Multiple path for the same action

2010-02-17 Thread Eden Cardim
($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 help with your Catalyst or DBIx::Class project? Code Monkey

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

2010-03-18 Thread Eden Cardim
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/ Shadowcat Systems Ltd. Want a managed development

Re: [Catalyst] Alternatives to DBIx?

2010-04-17 Thread Eden Cardim
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::Class project? Code Monkey

Re: [Catalyst] Alternatives to Catalyst ?

2010-04-23 Thread Eden Cardim
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.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://blog.edencardim.com

Re: [Catalyst] Modifying Catalyst component load order

2010-07-17 Thread Eden Cardim
Rob == Rob Hoelz rho...@inoc.com 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

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

2010-08-31 Thread Eden Cardim
Stuart by fallback 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

Re: [Catalyst] Reuse of controllers

2010-09-20 Thread Eden Cardim
= { 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 the existence of the config. -- Eden Cardim Need help with your Catalyst or DBIx::Class project

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

2010-10-23 Thread Eden Cardim
::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://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment

Re: [Catalyst] Organizing link generators

2010-10-23 Thread Eden Cardim
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 Ltd. Want a managed development or deployment platform? http://blog.edencardim.com/http

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

2010-11-02 Thread Eden Cardim
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.edencardim.com/http://www.shadowcat.co.uk

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

2010-11-03 Thread Eden Cardim
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 correctly. -- Eden Cardim Need help with your Catalyst or DBIx::Class

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

2010-11-09 Thread Eden Cardim
} David } David Any comments on that solution are appreciated as are pointers David to alternatives. Put the ajax code into a separate controller with an XHR-specific end action (probably empty, for your case) and chain from there. -- Eden CardimNeed help with your

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

2010-11-10 Thread Eden Cardim
($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 what you were looking for!' ); } -- Eden CardimNeed help with your perl Catalyst or DBIx

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

2010-11-10 Thread Eden Cardim
Octavian == Octavian Rasnita orasn...@gmail.com 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 :Private. -- Eden Cardim

Re: [Catalyst] Question about Chained Controller

2010-11-15 Thread Eden Cardim
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.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd.Want a managed development

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

2010-11-15 Thread Eden Cardim
post. -- Eden CardimNeed help with your perl Catalyst or DBIx::Class project? Software Engineer http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd.Want a managed development or deployment platform? http://blog.edencardim.com http

Re: [Catalyst] Question about Chained Controller

2010-11-15 Thread Eden Cardim
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 managed development or deployment

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

2010-11-16 Thread Eden Cardim
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? Software Engineer http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd

Re: [Catalyst] Multiple chain sources?

2010-11-22 Thread Eden Cardim
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 onto that. -- Eden CardimNeed help with your perl Catalyst or DBIx

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

2010-11-22 Thread Eden Cardim
just dodge the HTML::FormHandler thing altogether, but that's just me, YMMV. -- Eden CardimNeed help with your perl Catalyst or DBIx::Class project? Software Engineer http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd.Want a managed development

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

2010-12-03 Thread Eden Cardim
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://www.shadowcat.co.uk/catalyst

Re: [Catalyst] Catalyst Workflow Framework Integration

2010-12-13 Thread Eden Cardim
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 managed development

Re: [Catalyst] Ajax Problem.

2011-01-06 Thread Eden Cardim
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/catalyst/ Shadowcat Systems Ltd.Want a managed development or deployment platform

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

2011-02-15 Thread Eden Cardim
(), it propagates everywhere else as well. Plus, you reuse the page/csv implementation easily. The combination of chained DBIC resultsets and catalyst chains is very similar to curried functions (I believe that's what the initial design goal was). -- Eden Cardim Software Engineer Shadowcat Systems Ltd

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

2011-02-18 Thread Eden Cardim
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 ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] redirect and ajax

2011-03-21 Thread Eden Cardim
. 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://www.shadowcat.co.uk http://blog.edencardim.com

Re: [Catalyst] Updating a database entry

2011-04-11 Thread Eden Cardim
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 with your Catalyst or DBIx::Class project? Code Monkey

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

2011-04-11 Thread Eden Cardim
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 managed development or deployment

Re: [Catalyst] What text editor to use?

2011-04-11 Thread Eden Cardim
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://blog.edencardim.com/http

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

2011-04-11 Thread Eden Cardim
-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 Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd

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

2011-04-11 Thread Eden Cardim
'; 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 Cardim Need help with your Catalyst or DBIx::Class project? Code Monkey

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
('/help', c.req.path) %]/Help/a --8---cut here---end---8--- -- 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

Re: [Catalyst] What text editor to use?

2011-04-12 Thread Eden Cardim
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/catalyst/ Shadowcat Systems Ltd. Want

Re: [Catalyst] DBI Models Question.

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

Re: [Catalyst] error while starting my dev enviroment

2011-07-10 Thread Eden Cardim
. -- 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.edencardim.com/http://www.shadowcat.co.uk/servers/ http

Re: [Catalyst] Best practices for extending DBIC model

2011-07-14 Thread Eden Cardim
Eric == Eric Wright ewri...@linescale.com 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::Schema#traits -- Eden Cardim

Re: [Catalyst] Refactoring Controllers

2011-07-29 Thread Eden Cardim
into a model and use delegation. -- 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.edencardim.com/http

Re: [Catalyst] Model Testing Problems.

2011-09-05 Thread Eden Cardim
work, assuming the CountSheep() method is in place. -- Eden Cardim Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://blog.edencardim.com/http://www.shadowcat.co.uk/servers/ http

Re: [Catalyst] Compress HTML

2011-09-08 Thread Eden Cardim
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 managed development or deployment platform? http

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

2011-10-18 Thread Eden Cardim
to approach this both in ResultSets will and in FormHandler forms? You might want to look at Catalyst::TraitFor::Model::DBIC::Schema::WithCurrentUser -- Eden Cardim Code Monkeyhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development

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

2012-02-21 Thread Eden Cardim
, when the Louis webserver doesn't set the WD as expected? I'm not exactly sure about the specific motivation for that change, but script/myapp_fastcgi.pl is just a perl source like any other, adjust @INC before running it (via PERL5LIB, -I, etc.) and you'll be fine. -- Eden Cardim

Re: [Catalyst] Built in profiling in the UI

2012-02-21 Thread Eden Cardim
, 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 Plack::Middleware::Debug::DBIProfile -- Eden

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

2012-02-21 Thread Eden Cardim
or even Louis $basename/../lib wouldn't be appropriate there. Yes, but there's only so much that can be automated. -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkey http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd

Re: [Catalyst] Passing REMOTE_USER to development server

2012-03-02 Thread Eden Cardim
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://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd.Want

Re: [Catalyst] Error loading data from schema

2012-04-04 Thread Eden Cardim
, you should get a list of loaded components, please show us that list. -- 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

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 Need help with your

Re: [Catalyst] Starman and Catalyst

2012-04-05 Thread Eden Cardim
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.comhttp://www.shadowcat.co.uk

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

2012-04-20 Thread Eden Cardim
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/ Shadowcat Systems Ltd.Want a managed development or deployment platform? http://edencardim.com

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

2012-05-03 Thread Eden Cardim
::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. -- Eden Cardim Need help with your

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

2012-07-06 Thread Eden Cardim
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 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail

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

2012-07-06 Thread Eden Cardim
of the app Bill home. You still need a place for the config to live when you install the app. -- Eden Cardim +55 11 9644 8225 ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] New design

2013-07-23 Thread Eden Cardim
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 archive: http://www.mail-archive.com

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

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