> -Original Message-
> Anyway, I'm starting to think that the best way to handle this issue
> would be to make ConfigLoader smart enough to load anything you throw
> at it, maybe with some filename/extension conventions. So, if it finds
> "myapp.yml" that's what it loads, the same for "myap
Nislon,
> -Original Message-
> I really never bothered reading ConfigLoader's docs because it is one
> of those things that really DWIM in Catalyst.
...Another satisfied customer. :)
> But now I really don't get what's the point of this "default format"
> discussion if ConfigLoader does
Mark,
> -Original Message-
> On a related note, I discovered the hard way today that ConfigLoader
> does not support the short forms of Model (M), View (V), and
> Controller (C) as nicely as the verbose ones. For instance, this does
> not work:
For what it's worth, I've fixed up ConfigLo
Hey,
> -Original Message-
> The docs say it should be __path_to('pathpart1/pathpart2')__ with single
> quotes but that didn't work for me,
> the quotes became part of the string. Does anyone know if the docs are
> just a bit off or is there something
> wrong with my system? --john
Docs
Chisel Wright wrote:
> I just hadn't had the tuits to slap the dev release on my laptop. It
> kinda sounds like I'm the only Pg/Model::DBIC user out there at the
> moment ... :)
We've checked in a potential fix (+ tests) [1]. Please download it and
test it :)
-Brian
[1] http://dev.catalyst.perl.
Paul Makepeace wrote:
> I consider at the least a usability bug - consider,
>
> $param = { url => $c->req->base }
>
> [% c.uri_for('/foo', param) %]
>
> Would you reasonably expect that to break? Especially considering it
> used not to, 5.66.
>
> Not only that, uri_for() seem to break if its fi
Matt S Trout wrote:
> Note the '%$config' there. In MyApp,
>
> http://search.cpan.org/~mramberg/Catalyst-Runtime-5.7001/lib/Catalyst.pm#%24c-%3Esetup_components
>
> __PACKAGE__->config({
>setup_components => { only => qr/(^|::)\w+$/ }
> });
>
> will fix this without requiring a patch to anythin
Hi Renaud,
Renaud Drousies wrote:
> Hello,
>
> I am trying to figure out what would be the best way to have a
> multilanguage support in a catalyst application.
>
> I thought using a url-based method might be better since this site could
> be visited by people that do not accept cookies, or do not
Hello All,
I've just put out a new release of the ConfigLoader plugin. Nothing on
the surface has changed. Underneath, however, the guts of the config
file loading has been extracted out into a separate module: Config::Any.
Hopefully other apps and/or modules will find this new package useful.
Hi Ryan,
Ryan wrote:
> OK, here is what I need to do. I'm writing a reservation system for a
> hotel and I have some cool features in mind for the process but they
> require javascript and "newer" browsers. What I was planning on doing is
> creating the bare-bones pages that work in any browser,
Jon Warbrick wrote:
> Can a Catalyst::Model::DBIC::Schema model be configured from a YAML
> file via Catalyst::Plugin::Config::YAML? If so, how? Apologies if it's in
> the documentation somewhere, but if so I've yet to find it...
>
> Jon.
>
>
package MyApp;
use Catalyst qw( ConfigLoader );
#
[EMAIL PROTECTED] wrote:
> While we're on the subject, lets assume that MySchema is
> 'myapp::SchemaLoader::foo.
>
> How do I make sure that my SchemaLoader can see the config when it
> tries to execute
> __PACKAGE__->connection?
>
> It isn't seeing the Model::MyModel connect_info, admonishing me
elated bugs
- Made new/update/find handle 'single' rel accessor correctly
- Fix NoBindVars to be safer and handle non-true bind values
- Don't blow up if columns_info_for returns useless results
- Documentation updates
Enjoy!
-Brian Cassidy
Hermida, Leandro wrote:
Inside MyApp::Model::MyAppDB:
use strict;
use base 'Catalyst::Model::DBIC::Schema';
__PACKAGE__->config(
schema_class => 'MyAppDB',
connect_info => [
'dbi:SQLite:myapp.db',
'',
'',
{ AutoCommit => 1 },
],
);
Mode
N. Arakawa wrote:
> I often make a data-table view, which links to similar views with
> small parameter changes, such as paging or sorting order.
>
> In this case, making a link URI based on 'delta' information is handy.
>
> In Application Code:
> sub uri_delta{
> my($self,@arg)[EMAIL PROTECT
N. Arakawa wrote:
I just not notice 'uri_with'.
I only search around the 'uri_for' (Ctalalyst.pm) not a in Reauest.pm
to find a this kind of utility.
What is a recommended ideom in TT-Template for 'uri_with'?
http://use.perl.org/~LTjake/journal/31056
to summarize:
Next Page
-Brian
_
Juan Miguel Paredes wrote:
Hi, folks!
We've narrowed the problem: when there are sufficient classes loaded
in the DBIC Schema, the Authentication configuration turns out wrong:
#Confianza.pm (Main Module)
__PACKAGE__->config->{authentication}{dbic} = {
user_class => 'Confianza::Mo
Dan Dascalescu wrote:
to summarize:
Next
Page
Funny that Catalyst::Enzyme reinvented the wheel, too:
http://search.cpan.org/dist/Catalyst-Enzyme/lib/Catalyst/Enzyme/CRUD/View.pm#%24c-%3Ethis_request_except(%25new_params)
Not exactly, uri_with() didin't arrive until version 5.67, on April
Ryan Detzel wrote:
Can it be done, I keep getting weird results. I want to do
my ($val1,$val2) = $c->forward('test');
sub test : Private {
The return value of a forward isn't really something you should rely on,
but, if you must, you can return an array reference:
my ($val1,$val2) = @{ $c
Matt S Trout wrote:
On 1 Feb 2007, at 17:37, John Napiorkowski wrote:
Hmm, interesting point. I'm going to go and try
writing something that trys to modify the
ActionContainer and see what happens! --john
You'd be better screwing with $c->action, I think. Something like
if ($c->stack->[-1]
Daniel McBrearty wrote:
[Mon Feb 26 20:28:50 2007] [error] Couldn't load
"Catalyst::Plugin::ConfigLoader::YAML", "Insecure dependency in
require while running with -T switch at
/usr/local/lib/perl5/site_perl/5.8.8/Module/Pluggable/Fast.pm line
82.\n" at /usr/local/lib/perl5/site_perl/5.8.8/Module
Daniel McBrearty wrote:
one without a version string - but when I to "cpan C::P::C::Y:" it
says its up to date ...
that explains why it didn't even get on the one box. still not sure
why the taint error though - guess I can remove M::P::F though, see if
that fixes things
You're looking at the
Bill Moseley wrote:
On Thu, Mar 08, 2007 at 05:25:55PM -0500, Christopher H. Laco wrote:
Catalyst config support a 'local' config file in addition to the regular
one. I'm not sure on the exact file name, but I think it's myapp_local.yml
That's also a shallow merge, IIRC. It just calls $c->con
Robert 'phaylon' Sedlacek wrote:
You can chain your action only to other actions or to the root, not to
namespaces. The PathPart attribute controls how the path is built
visibly. There is a :PathPrefix implementation that does what you want
somewhere in Catalyst's SVN, but I don't know when it
Hi Joe,
Joe Landman wrote:
Two part question. Has anyone played with captchas in conjunction
with C::C::FB? Second part: should I be looking at different
technology rather than captchas?
A technique i recently saw was to add an input to your form with a usual
sounding name (like "subject
Brian Kirkbride wrote:
Hello all,
The one thing that has been bothering me is that to start a chain in
some controller, say MyApp::C::Admin::Services you would need to declare:
sub get_id : Chained('/') : PathPart('/admin/services') :
CaptureArgs(1) {
# stash the id or do some lookup
Ian Docherty wrote:
FastCgiExternalServer /tmp/timesheet.fcgi -socket /tmp/timesheet.socket
ServerName timesheet.mydomain.com
Alias / /tmp/timesheet.fcgi
Just for kicks
try:
Alias / /tmp/timesheet.fcgi/
(note trailing slash)
-Brian
___
Lee Goddard wrote:
Sorry: I meant when the server starts, it seems to attempt to call 'new'
for every *.pm in MyApp::Model::* :
Hopefully I recall how this works...
Every Model::*, Controller::*, View::* (plus their short-names for
back-compat) are instantiated via setup_components (see Cata
Oleg Pronin wrote:
Does anyone can advice a good solution ?
Read:
http://search.cpan.org/dist/Catalyst-Runtime/lib/Catalyst.pm#PROXY_SUPPORT
-Brian
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
S
Dmitri Pissarenko wrote:
$c->res->body = 'Hello ' . $name . ', welcome to the world of Dojo!\n';
Instead do:
$c->res->body( 'Hello' ... );
-Brian
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Daniel McBrearty wrote:
FWIW
I just turn debug off, and do
export MYAPP_DEBUG=1; script/myapp_server.pl -r;
the -d option is so much easier to type :)
script/myapp_server.pl -d -r
-Brian
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists
Hey Y'all,
I've done a little bit of maintenance to the I18N plugin. Version 0.06
will hit CPAN soon. The changes are as follows:
- re-org distro
- switch to Module::Install
- added language_tag() method
- pod fixes
If you use this plugin and you have suggestions or comments, I'd love to
hea
Adeola Awoyemi wrote:
# from MyApp::Controller::Root
sub end : Private {
my ( $c, $self ) = @_;
$c->forward( $c->view('XSLT') );
}
try:
my( $self, $c ) = @_;
-Brian
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mai
Hey All,
Config::Any 0.08 and Catalyst::Plugin::ConfigLoader 0.16 have hit the
CPAN. Changes:
Config::Any:
0.08 Thu Aug 23 2007
pass config options to each parser
fix for loading the same perl config twice (RT #28812)
Catalyst::Plugin::ConfigLoader:
0.16 Thu Aug 23 2007
- separ
Felix Antonius Wilhelm Ostmann wrote:
we have build some classes with Attribute::Handlers (was inspired from
Attribute::Property)
This works realy fine!
after a few tests we gone use this classes under catalyst ... and ...
dont work :-/ under catalyst our classes dont use Attribute::Handlers
Mitchell Jackson wrote:
Does anybody have a better init script than the one below for handling
the fastcgi processes? I'm probably missing something obvious X.X
I've been generating an init.d script with
Catalyst::Helper::FastCGI::ExternalServer [1] for our Ubuntu servers
without issue.
-B
36 matches
Mail list logo