On Sat, Jan 7, 2017 at 9:55 PM, Bill Moseley <mose...@hank.org> wrote:
>
> # Let it be set to undef
> if (my $wanted = shift) {
> $encoding = Encode::find_encoding($wanted)
> or Carp::croak( qq/Unknown encoding '$wanted'/ );
>
lines are not mangled.
But, I'm not sure we should apply a layer to STDERR like that. For
example, I log to stderr with JSON and that is already encoded.
Is there a compelling reason to binmode STDERR there?
--
Bill Moseley
mose...@hank.org
___
List: Ca
et to a CI pipeline that generates a Docker container and
use that for all non-dev deployments. You never know when you will need to
deploy a million containers <https://www.hashicorp.com/c1m.html>...
--
Bill Moseley
mose...@hank.org
___
List
behaves
as expected. Also comment out "init_arg" and Moose will complain about
the string not begin an Int.
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/list
BTW -- I wonder about the Catalyst behavior here.
On Sat, Aug 1, 2015 at 10:36 PM, Bill Moseley mose...@hank.org wrote:
On Sat, Aug 1, 2015 at 6:31 AM, Stefan maill...@s.profanter.me wrote:
Hi,
if a URL parameter contains a Unicode character (e.g.
www.example.com/?param=%D6lso%DF which
optional when I have a bit of time.
On Fri, Jun 5, 2015 at 4:38 PM, Lasse Makholm la...@unity3d.com wrote:
On Fri, Jun 5, 2015 at 8:26 PM, Bill Moseley mose...@hank.org wrote:
Hi,
Our app handles a lot of uploads, often quite large uploads.As we
know, uploads (and any non-parsed body
sets psgi.input to the Apache request object
$r -- it would be handy to preserve this object for later use.
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
})*,
);
--
Bill Moseley
mose...@hank.org
___
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/
. length() is length of chars, matching works on chars, etc.)
$ perl -le 'use Encode; my $chars = decode( 'latin1', bytes ); print
Encode::is_utf8( $chars ) ? Is flagged utf8\n : not flagged\n; use
Devel::Peek; Dump($chars)'
Is flagged utf8
--
Bill Moseley
mose...@hank.org
would that change if you wanted more than just fire-and-forget? For
example, if you wanted to provide some kind of retry interval for failed
callbacks. The external server might be temporarily down for maintenance.
Thanks,
--
Bill Moseley
mose...@hank.org
provided input.
--
Bill Moseley
mose...@hank.org
___
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
and sets
the time zone and locale based on the user's preferences:
[% user_time( foo.event_start, '_DT_TIMESTAMP_WITH_ZONE' ) | html %]
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin
), for example? That
is, using can setlocale( LC_ALL, $locale ) cause problems with my existing
character handling?
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
a suggested patch in one of these. Is there someone that
can review and maybe push out a new version?
https://rt.cpan.org/Public/Bug/Display.html?id=67078
https://rt.cpan.org/Public/Bug/Display.html?id=78663
--
Bill Moseley
mose...@hank.org
___
List
https://rt.cpan.org/Public/Bug/Display.html?id=78663
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com
to {}, an empty hashref).
But maybe there was a use case where having the extra config (in addition
to config in args) passed to the constructor was necessary.
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http
On Tue, Nov 19, 2013 at 10:32 AM, Bill Moseley mose...@hank.org wrote:
Anyone aware of a good, portable way in Perl to encode the filename in a
Content-Disposition header? I would like to support UTF8 filenames, but
support in browsers is unclear (if not changing).
Is this complexity
( my $buf, 4);
my $uncompressed_size = unpack( 'V', $buf );
This indeed does work in my tests. Thanks for all the help, Neil. I
really appreciate the time you spent on this.
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
On Wed, Nov 20, 2013 at 4:08 AM, neil.lunn n...@mylunn.id.au wrote:
my $length = $body-getHeaderInfo
Well, that's helpful. Thanks. Completely missed that in the docs.
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
On Wed, Nov 20, 2013 at 7:37 AM, Bill Moseley mose...@hank.org wrote:
On Wed, Nov 20, 2013 at 4:08 AM, neil.lunn n...@mylunn.id.au wrote:
my $length = $body-getHeaderInfo
Well, that's helpful. Thanks. Completely missed that in the docs.
Well, except for the actual files I have
'
};
--
Bill Moseley
mose...@hank.org
___
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/
it's easy to get wrong (I can see many
different approaches in our own code).
http://greenbytes.de/tech/tc2231/
http://stackoverflow.com/questions/93551/how-to-encode-the-filename-parameter-of-content-disposition-header-in-http
Thanks,
--
Bill Moseley
mose...@hank.org
is working?
The uncompressed file could be quite large, which is why I'd prefer to not
uncompress it in memory. I suppose I could uncompress to /tmp and then
serve the file from there.
Of course, not using Catalyst to serve large files is perhaps another
solution.
--
Bill Moseley
mose
/Catalyst.pm
line 1948, DATA line 1000.
[warn] Serving filehandle without a content-length
This is some text that can be compressed.
This is some text that can be compressed.
This is some text that can be compressed.
This is some text that can be compressed.
This is some text that can be compressed.
--
Bill
-callback( sub { $self-callback_method( $c ) } );
I'm not thrilled by $c getting passed here, but the callback need quite a
bit from $c.
The fix that seems to work is simply this:
weaken( $c );
$replication_object-callback( sub { $self-callback_method( $c ) } );
--
Bill Moseley
mose
On Fri, Oct 25, 2013 at 6:51 AM, Bill Moseley mose...@hank.org wrote:
[ERROR] Caught exception in engine Error in tempfile() using
/tmp/XX: Have exceeded the maximum number of attempts (1000) to
open temp file/dir
I don't really see how this can be a Catalyst issue, but I can't
is so
you don't screw things up.
John
On Thursday, October 31, 2013 7:03 PM, Bill Moseley mose...@hank.org
wrote:
On Thu, Oct 31, 2013 at 2:34 PM, John Napiorkowski jjn1...@yahoo.comwrote:
I'm currently recommending people take advantage of native PSGI support in
the newer Catalyst
On Thu, Oct 31, 2013 at 12:51 AM, Aristotle Pagaltzis pagalt...@gmx.dewrote:
CatalystX::RoleApplicator
Thanks. That was what I was looking for. Just missed it when looking.
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
28 13:35 Ll1Ze0TNPL
regarding the tmp file thing, wow I have no idea, but I hope you find out
and report it to us!
Johnn
On Friday, October 25, 2013 8:53 AM, Bill Moseley mose...@hank.org
wrote:
I have an API where requests can include JSON. HTTP::Body saves those
off to temp
of doing something like:
$self-location( URI-new( $location )-as_string );
But with perhaps a bit more error handling.
johnn
On Thursday, October 31, 2013 11:33 AM, Bill Moseley mose...@hank.org
wrote:
On Thu, Oct 31, 2013 at 12:51 AM, Aristotle Pagaltzis pagalt...@gmx.dewrote
-location;
}
--
Bill Moseley
mose...@hank.org
___
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
commentedhttps://rt.cpan.org/Public/Bug/Display.html?id=84004on
before, is that HTTP::Body doesn't use File::Temp's unlink feature and
depends on Catalyst cleaning up. This results in orphaned files left on
temp disk.
--
Bill Moseley
mose...@hank.org
.
On Monday, October 21, 2013 10:00 AM, Bill Moseley mose...@hank.org
wrote:
=head2 $req-path
Returns the path, i.e. the part of the URI after $req-base, for the
current request.
Pasted below is Catalyst::Request's path method. Note from the final
else block that $req-path returns the request
. I like your suggestion to map it
to an Accept header -- best of both worlds.
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http
);
return $path;
}
}
--
Bill Moseley
mose...@hank.org
___
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
point of view instead of a REST purist
view. There's a lot in that e-book I don't really agree with (plural
nouns?), but the practical usage seems to be winning out. Hope it's not a
mistake in the long run.
--
Bill Moseley
mose...@hank.org
___
List
=1
- http://www.informit.com/articles/article.aspx?p=1566460
- http://stackoverflow.com/questions/972226/how-to-version-rest-uris
- and plenty more...
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http
: ChainedParent
PathPrefix CaptureArgs(0)
{
my ($self, $ctx) = @_;
}
1;
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail
.
--
Bill Moseley
mose...@hank.org
___
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/
that to JSON or whatever but it's the same data.
But, maybe you have a point.I would worry that someone assumes JSON and
adds that content type match and then wonder why later it's not working for
other request serializations.
--
Bill Moseley
mose...@hank.org
above, but throw an exception for
other content types where the body is a scalar AND has the utf8 flag on.
After all, we can only write out octets or else we get the Wide Character
error.
--
Bill Moseley
mose...@hank.org
___
List: Catalyst
Before we get a long utf8 discussion here:
On Tue, Jul 2, 2013 at 8:58 AM, Bill Moseley mose...@hank.org wrote:
Personally, I think the correct approach is to only encode *character* data
-- that is check to see if the utf8 flag is set before calling encode.
I say that with the caveat
.
--
Bill Moseley
mose...@hank.org
___
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/
/
--
Bill Moseley
mose...@hank.org
___
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/
in a chain is used for access control.
What would the developers think of deprecating this behavior (for the few
that might actually be relying on this) and issue a warning if a config
option is not set that fixes the issue?
--
Bill Moseley
mose...@hank.org
in middle
*in lastpart*
[error] Caught exception in Exception::Controller::Root-middle died in
middle
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable
On Thu, May 9, 2013 at 7:25 AM, Lukas Thiemeier
spamcatc...@thiemeier.netwrote:
On 05/09/2013 03:25 PM, Bill Moseley wrote:
I have a feeling I asked this before, but cannot find the post.
[info] Exception powered by Catalyst 5.90030
What's the reasoning that chained actions continue
On Thu, May 9, 2013 at 8:31 AM, Bill Moseley mose...@hank.org wrote:
Hi Bill,
This is because you don't want Catalyst to die. Imagine you are running
a fastcgi server and you accidentally created an action which dies on
certain user input.
Hi Lukas,
Sorry, you missed the point. Yes
On Thu, May 9, 2013 at 9:34 AM, Aristotle Pagaltzis pagalt...@gmx.dewrote:
* Bill Moseley mose...@hank.org [2013-05-09 15:30]:
What's the reasoning that chained actions continue to run after an
earlier exception?
Seems like an accident of the design to me, borderline bug.
Agreed. Seems
of the server
Sorry, $c-req-uri-host is 'hostname', not a IP.
I want to get IPv4 address like '127.0.0.1' even if I access the page
by 'http://localhost/XXX'
Interesting. What's your use case here?
--
Bill Moseley
mose...@hank.org
___
List
based on the user's language preference for
that request?
I would think it would be better to serve it statically (with caching
headers) and then serve any pre-request changes in the actual html
response. Serving up different javascript files with the same name could
lead to problems.
--
Bill
but IIRC that only looks at the
Content-Length header. But, HTTP::Body does limit the body to what is
reported in the Content-Length header.
Starman buffers requests to /tmp (in an unlinked file) w/o any limit that I
could see in my limited tests.
On Thu, Mar 14, 2013 at 9:53 PM, Bill Moseley mose
On Wed, Jan 13, 2010 at 6:53 AM, Bill Moseley mose...@hank.org wrote:
HTTP::Body::Multipart creates temporary files for uploads. The temp files
are created with File::Temp( UNLINK = 0 ).
Well, this is still broken.
Yes, since 2010 HTTP::Body has been updated to have a DESTROY where
with) the app's config.
Our config loads config.yml filrst, then it loads and merges any
mode-specific (i.e. qa, staging, production) config, then finally looks for
/etc/$app_name/config.yml.
Some day we will look more closely at centralized configuration tools --
Puppet and Chef, for example.
--
Bill
be decoded on input.
--
Bill Moseley
mose...@hank.org
___
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
.
But the end result is still just a normal Perl module. All our modules
(Catalyst and others) use Dist::Zilla now.
I have a Dist::Zilla::Plugin::CatalystFiles that helps build the dist and
builds a custom Makefile.PL.
--
Bill Moseley
mose...@hank.org
, that Makefile actually
comes in pretty handy.
(And since we use Dist::Zilla, releasing to our internal CPAN is just dzil
release. So, that's pretty slick.)
We then build RPMs from these modules and that's what is used for
deployment.
--
Bill Moseley
mose...@hank.org
:
http://www.mail-archive.com/catalyst@lists.scsys.co.uk/msg02350.html
I guess I've thought about this before
I wonder what percent of Catalyst apps make use of that plugin.
Not sure, but I think the play-perl ticket has a good way to not break
most people's code
--
Bill Moseley
should to, but easy to ignore or get wrong.
I wonder what percent of Catalyst apps make use of that plugin.
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
responses.
This is fresh in my mind because last week had problems with two separate
encoding issues.
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable
my ws with
FF or Chrome... ?
Do you mean adding content-type=application/json to your GET request
query parameters in the browser?
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin
-- workers
pull in work as they are free instead of stuffing work into web processes.
Scaling is then trivial as it's just more workers.
It may seem like more work up front to set up but will making things like
this much easer -- and safer.
--
Bill Moseley
mose...@hank.org
On Tue, Feb 12, 2013 at 10:05 PM, Octavian Rasnita orasn...@gmail.comwrote:
**
*From:* Bill Moseley mose...@hank.org
If you want to use DBIC in more apps, don't use Catalyst::Model::... but
create a standalone module that can be used from more apps, even in CLI
scripts.
And access
after thawing, so they can
be used just as if I had done the query directly.
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail
Pre-Plack I had used this to determine if running under Apache/mod_perl.
if ( $c-engine-can( 'apache' ) ) { ... }
Is this the best, future-proof approach now?
During setup check $ENV{MOD_PERL}
and per request check if $c-req-env-{'psgi.input'}
isa 'Apache2::RequestRec'?
--
Bill Moseley
On Mon, Oct 29, 2012 at 3:45 AM, Will Crawford
billcrawford1...@gmail.comwrote:
On 19 October 2012 18:37, Bill Moseley mose...@hank.org wrote:
delete $c-stash-{foo};
Is there a function / method called foo anywhere in scope?
I've ignored this for a while, but still seeing in the app's logs
-address return either v4 or a v6 address?
Anyone already in a dual-stack environment? Any other gotchas to consider?
I use $c-req-address to limit access -- for example to limit some actions
to our local LAN or for customers to limit access to our API via a
customer-supplied CIDR.
--
Bill Moseley
| html %] //a
I've always used href=[% c.uri_for( ... ) | html %]
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com
params in
those methods?
Monkey-patch (redefined) the warn() and error() log methods each request
with the current params?
Neither of those sound that great. Is there an approach I'm missing?
Thanks,
--
Bill Moseley
mose...@hank.org
___
List: Catalyst
.
That is, the server w/o the auth validates that the token is legitimate and
the SSL tells me it came from the client I gave it to.
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin
to your site?
--
Bill Moseley
mose...@hank.org
___
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
which is useful for when
you need the constants outside of Catalyst.
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail
On Sat, Oct 27, 2012 at 9:34 PM, Larry Leszczynski lar...@emailplus.orgwrote:
Hi Bill -
On Fri, Oct 19, 2012, at 11:37 AM, Bill Moseley wrote:
Use of uninitialized value in delete
with a line number pointing to this line:
delete $c-stash-{foo};
I didn't think that delete
On Thu, Oct 25, 2012 at 5:29 AM, Aaron Trevena aaron.trev...@gmail.comwrote:
On 24 October 2012 17:59, Bill Moseley mose...@hank.org wrote:
PerlBal (as in this old post:
http://lists.danga.com/pipermail/perlbal/2005-November/000138.html )
can do
this as well.
I wonder about
this might be a bad (or good) approach?
--
Bill Moseley
mose...@hank.org
___
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
really want to tie up the app with slow uploads.
I guess I should test, but I wonder if there's a limit on what Starman will
buffer -- I assume it's buffering in memory.
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http
-Mwarnings -Mstrict -Wle 'use warnings; use strict; my $x = {};
delete $x-{a}'
Is there something special about $c-stash that might trigger this in Perl?
Anyone else spot these in the logs.
This is on Perl 5.14.2 / Catalyst 5.90016 / mod_perl 2.0.7
--
Bill Moseley
mose...@hank.org
to use the iframe trick on those browsers.
https://bugs.webkit.org/show_bug.cgi?id=23933
How close is this version of Catalyst for a release? Unfortunately, I
noticed this while preparing for an app release next week.
Thanks,
--
Bill Moseley
mose...@hank.org
error:
followed immediately by a restart of the child process (testing with
Starman). So, that's something else I need to try and track down.
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi
: 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/
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
upload stats?
Thanks,
--
Bill Moseley
mose...@hank.org
___
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
-- and less expensive. And
releases more frequent and less anxious.
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com
and out-dated plugin I use that wraps execute() and sets
__DIE__ and __WARN__ to catch those and uses Devel::StackTrace to add in a
stack trace. Then I use log4perl to format and direct the messages.
I also use Moose's Throwable which includes a stack trace.
--
Bill Moseley
mose...@hank.org
machines.
--
Bill Moseley
mose...@hank.org
___
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
On Wed, Sep 26, 2012 at 1:15 AM, Manni Heumann heum...@strato-rz.de wrote:
Bill Moseley mose...@hank.org schrieb am 25.09.2012:
The app has a myapp.yml config which includes configuration for
creating an instance of a Model component -- and part of that Model's
config is a database dsn
could just do
MyApp-model( 'MyModel' )-dns( $new_dsn );
What's a good, clean way of doing this? Or perhaps a better approach all
together?
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin
@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/
--
Bill Moseley
mose...@hank.org
___
List: Catalyst
and then get installed as File::ShareDir expects (i.e.
have Catalyst::Utils::home() use dist_dir( $c-config-{name} ) ). But,
that's kind of a big change.
Anyone have thoughts on the that?
--
Bill Moseley
mose...@hank.org
___
List: Catalyst
On Fri, Sep 7, 2012 at 11:50 AM, Tomas Doran bobtf...@bobtfish.net wrote:
On 5 Sep 2012, at 21:48, Bill Moseley wrote:
Currently I just manually apply the role directly in the existing
controller, so not a huge issue, but would be handy if I could just add a
role to the base class
/video.php?v=10100259101684977oid=9445547199comments
--
Bill Moseley
mose...@hank.org
___
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
Catalyst web app developer job posting:
http://jobs.perl.org/job/16350
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail
: 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/
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
: Wed, 31 Dec 1969 23:59:59 GMT
Content-Disposition: attachment; filename*=UTF-8''trumpet.m4a
(Warnings are fatal): Parsing of undecoded UTF-32 at
/home/moseley/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Catalyst/Test.pm
line 314.
--
Bill Moseley
mose...@hank.org
I'll work on a patch and docs, yes.
On Sat, Aug 4, 2012 at 6:53 AM, Tomas Doran bobtf...@bobtfish.net wrote:
On 3 Aug 2012, at 14:39, Bill Moseley wrote:
What it doesn't do any more is set $c-req-parameters when called
directly, only when called as a builder.
I don't think
call $c-prepare_parameters again?
On Sat, Aug 4, 2012 at 6:53 AM, Tomas Doran bobtf...@bobtfish.net wrote:
On 3 Aug 2012, at 14:39, Bill Moseley wrote:
What it doesn't do any more is set $c-req-parameters when called
directly, only when called as a builder.
I don't think
= shift;
$self-clear_parameters;
return $self-parameters;
}
And likewise in the Engine.pm:
sub prepare_parameters {
my ( $self, $c ) = @_;
$c-request-clear_parameters;
return $c-request-parameters;
}
--
Bill Moseley
mose...@hank.org
( 'xt' );
--
Bill Moseley
mose...@hank.org
___
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
-Devel-1.37/lib/Module/Install/Catalyst.pm#catalyst_ignore(@ignore)
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com
in your Makefile.PL?
If those are done then this always works.. :)
vim $(perldoc -l Module::Install::Catalyst)
directory.
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman
framework for running scripts -- mostly so
the script works where ever the Catalyst app is installed.
Can anyone help with this?
Thanks,
--
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin
1 - 100 of 387 matches
Mail list logo