Hi all --
I'd like to modify what Catalyst::Helper creates when initializing a new
product. I'm wondering if there's a "best practice" for this or if I'm on
my own.
Thanks for any pointers.
k.
--
kevin montuori
___
Li
changing the conf file contents and name, and adding a line to
MyApp.pm. There's more, but I think this is a fairly representative example
of the kind of thing.
k.
--
kevin montuori
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.
ory so they're kept
with the project.
Also I create a number of .../.template files and populate them with
project-specific templates (for the benefit of emacs).
There's probably more ... that's why I'm looking to automate it.
k.
--
kevin montuori
montu...@gmail.com
___
on. Pulling straight from VC you never
really have that assurance.
k.
--
kevin montuori
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/
ard off to it.
sub unset_model :Private {
# omg, this is a wicked hack.
my ($self, $c) = @_;
for my $key ( keys %{ $c->stash } ) {
if (ref $c->stash->{$key} eq 'MyApp::Model::DB') {
delete $c->stash->{$key};
re
directory and into /tmp it's as fast as
you'd expect. My guess is that FileVault is slowing things down.
k.
--
kevin montuori
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
S
#x27;s worked out well for me, particularly when I hand an
SP off to a DBA for optimization; as a rule I get less grief when it's
just SQL and not SQL embedded in some other language.)
k.
--
kevin montuori
___
List: Catalyst@lists.scsys.co.uk
Li
t implies
> lack of understanding.
Not if there's a spare can in the trunk for the backhoe. Everybody's
situation is different, and there's often a good reason for seemingly
"incorrect" questions.
k.
--
kevin montuori
___
On Tue, Jul 27, 2010 at 10:07 AM, Leandro Hermida
wrote:
> Is it because at compile time MyApp doesn't have the path_to() method?
> How should I write the test?
Perhaps a 'use MyApp' statement?
k.
--
kevin montuori
_
in a world where
Apress, ORA, AW, &c. books are so well done. Something as seemingly
simple as consistent capitalization appears beyond Packt's reach.
All things told, I wouldn't recommend it.
k.
--
kevin montuori
___
List: Catalyst@lis
outines/accessors.
See the documentation related to the "connection_class" and
"entry_class" configuration items. You can specify subclasses of
Catalyst::Model::LDAP::Connection and Catalyst::Model::LDAP::Entry and
use them exa
that "PK::Auto is now part of Core."
k.
--
kevin montuori
[EMAIL PROTECTED]
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/
ef $c->request->params->{title}
? @{ $c->request->params->{title} } : ($c->request->params->{title} || '');
k.
--
kevin montuori
[EMAIL PROTECTED]
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsy
'');
the @{ ... } bit was not extraneous.
(on the other hand, if there's a more idiomatic way of doing this i'd
love to hear about it.)
but this is not a catalyst issue, 'perldoc perlref' for more on
references.
cheers.
k.
--
kevin montuori
tful life than the other kind -- as a release
engineer, i make sure that's the case.
sure there are times when planning for everything that might change is
too difficult or not practical or too expensive, but catalyst makes
this common problem just sort of go away wit
mbda ()
(define-key html-mode-map "\C-c\C-c\h" 'ii-insert-catalyst-url)))
and there'd be no new finger memory to develop, so no extra work
whatsoever.
cheers.
k.
--
kevin montuori
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/
>>>>> "KD" == Kieren Diment <[EMAIL PROTECTED]> writes:
KD> On 23 Dec 2007, at 01:06, kevin montuori wrote:
>> (add-hook 'html-mode-hook
KD> well tt-mode would be more sensible.
my mileage varied. the font-locking of TT keywords would be ok b
aid. that's too bad as it diminishes
the book's usefulness.)
k.
[1] http://tinyurl.com/2fd5ld
--
kevin montuori
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: h
n releasing code to
integration for regression testing. i'm certainly not seeing the
performance problems that have been reported on this list.
cheers.
k.
--
kevin montuori
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.sc
i'd be in favor of the
former too; my argument is that the latter can (and does, sometimes)
work.
obCatalyst (finally): part of the reason i like catalyst so much is the
ease with which it's possible to crank up individual development servers
(even, for instance, two versions of the same code) and i'd repeat that
i've found them to be very lightweight and work well in a shared
resource setting, your mileage probably varied.
cheers.
k.
--
kevin montuori
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/
fo, $c);
if (ref $user_obj) {
return $user_obj;
}
else {
$c->log->error("Unable to locate user in user store.");
return;
}
}
1;
--
kevin montuori
[EMAIL PROTECTED]
AIM: ignavusinfo
___
List: Catalyst@lists.scsy
>>>>> "aj" == abhishek jain <[EMAIL PROTECTED]> writes:
aj> Someone pl. reply,
when you searched for catalyst::controller::formbuilder on cpan to see
what else might come up, did you miss c::c::formbuilder::multiform?
k.
-
d this is the correct
behavior or is there a bug somewhere?
i've included the three modules and MyApp.pm below, everything else in
the project is untouched. thanks for any help!
cheers.
k.
--
kevin montuori
[EMAIL PROTECTED]
##
#
# lib/MyAp
rading from one version to another.
see create_ddl_dir() here: http://tinyurl.com/5vgwcj and sqlt-diff here:
http://tinyurl.com/6ql6wo for details.
i'm much better at writing perl classes than DDL though, so it was
obvious that this was the right thing for me in a 50 table, 10 view
database. no d
?
anyway, thanks for the pointer.
k.
--
kevin montuori
[EMAIL PROTECTED]
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/
ation but that use the same schema? i might be mistaken, but it
seems that tying a user to a physical database circumvents some of the
abstraction MVC provides.
k.
--
kevin montuori
[EMAIL PROTECTED]
___
List: Catalyst@lists.scsys.co.uk
Listinfo: ht
does allow for a mix of role based and app
specific authz. by doing the work in a mix-in class the authz logic
is easily changed (or audited) independently of what the controller is
doing. it's also nice for controllers to ask relevant questions like
"can_edit_widget" rather than &q
arkup works fine:
[% first_name = formbuilder.field.first_name;
last_name = formbuilder.field.last_name -%]
...
[% first_name.field %]
[% last_name.field %]
[% first_name.label %]
[% last_name.label %]
k.
--
i can't wait to read the catalyst book. one of the great selling points
of the framework (to management types) is the idea that any programmer
off the street could come in and hit the ground running in a catalyst
shop ... having a second book helps further that notion significantly.
k.
crypted connections,
for instance. (that's not to imply that it's not possible with POST,
but it's less trivial. particularly at 3 am.)
i think the maxim is:
be strict in what you send and generous in what you receive.
applications adhering to thi
a long time now.
Also, why does Perl have to be a "scripting language"? I don't write
scripts (particularly with Moose), I write programs. If you're
uncomfortable with "any major language" (or, better, "any popular
language") how about substituting "
31 matches
Mail list logo