=> 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
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
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
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
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
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.
> "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
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
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
, 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
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
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
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
;)->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
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
'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
>>>>> "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 :
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
.*) 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
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
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
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
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
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
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
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
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
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) =
> 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
__
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
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
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
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://
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
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
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
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/
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
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
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
>>>>> "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
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
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
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
-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/
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
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
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
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
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
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:/
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
| 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
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
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
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
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.
--
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.
--
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
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
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
"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
_
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
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
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 {
>
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
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
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
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
_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
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
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
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
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
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
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
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
;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
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
: 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
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
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
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.
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
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
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?
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
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
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
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
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
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:/
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
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
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
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
::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
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
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 $_
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
100 matches
Mail list logo