Re: [Catalyst] Session trouble

2007-10-08 Thread Bill Moseley
' ); $c-session-{bar} = time; # Trigger session write } sub calculate_session_cookie_expires { my $c = shift; warn in calculate_session_cookie_expires , time, \n; sleep 1; return time + 10; } 1; -- Bill Moseley [EMAIL PROTECTED] update_cookie.t Description: Troff

Re: [Catalyst] Limiting flash to a specific request

2007-10-12 Thread Bill Moseley
point. It's nothing revolutionary, but it might be of interest to others. Yes, I'm sure it would be. Thanks, -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

Re: [Catalyst] Web Services Integration with Catalyst

2007-10-15 Thread Bill Moseley
bad form - most clients that talk to XMLRPC wont have a cookie jar. Just to be clear, the paragraph above is about *not* using cookies for the XMLRPC request. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] Mapping parameters for web services

2007-10-24 Thread Bill Moseley
); } Or are you thinking of something else? -- Bill Moseley [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

Re: [Catalyst] Charset best practice

2007-10-31 Thread Bill Moseley
templates are UTF-8. Then are you using 'Unicode::Encoding' plugin to generate UTF-8 output? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] Selective debug output

2007-11-06 Thread Bill Moseley
class (just regex the formbuilder crap out), or fixing the plugins/controllers to check $c-config-{pluginname_debug) or something. Maybe we can make this easier in 5.8; suggestions welcome. Can't you limit what packages generate logging using log4perl? -- Bill Moseley [EMAIL PROTECTED

[Catalyst] Patch for C::P::Session::DynamicExpiry

2007-12-05 Thread Bill Moseley
I finally spent time looking at why this plugin didn't work. I use session cookies and the module didn't work with session cookies. Here's a failing (now passing) test case and patch against svn. -- Bill Moseley [EMAIL PROTECTED] Index: t/session_cookie.t

Re: [Catalyst] Form::Processor and DBIC

2007-12-06 Thread Bill Moseley
). And how to write the form fields to the database. -- Bill Moseley [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

Re: [Catalyst] help with Catalyst::Plugin::Form::Processor

2007-12-06 Thread Bill Moseley
field (like Fruit above) so you can use it in multiple forms and just say: required = { sh_name = SH_Name, Then that field can the size set and any custom validation. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst

[Catalyst] Remember Me?

2007-12-10 Thread Bill Moseley
the auto login. But, then I'm back to wondering if the feature is worth all that trouble. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http

[Catalyst] Setting the Catalyst Request object

2007-12-13 Thread Bill Moseley
to the request object? -- Bill Moseley [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

Re: [Catalyst] [ANNOUNCE] New plugin: Catalyst::Plugin::Assets

2008-01-14 Thread Bill Moseley
it load a single minified version. -- Bill Moseley [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

[Catalyst] Why no extra attributes on Private actions?

2008-01-22 Thread Bill Moseley
all actions below a give controller via: sub auto : Private SSL { 1 } -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http

[Catalyst] Upload progress meter

2008-02-29 Thread Bill Moseley
method. The examples I've tried online are often poorly implemented. A few that I tried failed to stop making ajax requests after the file was uploaded. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

[Catalyst] Session Expiry

2008-03-01 Thread Bill Moseley
-{session}{expires} time. Still, that doesn't *solve* the issue. The work-around is simple; I'm just updating the session in auto() for every request. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] Session Expiry

2008-03-01 Thread Bill Moseley
On Sat, Mar 01, 2008 at 09:50:10PM -0600, Jonathan Rockway wrote: * On Sat, Mar 01 2008, Bill Moseley wrote: Is it expected that the application update the session every request to prevent expiry while a user is actively using the application? Is the problem that $c-session-{__expires

Re: [Catalyst] Session Expiry

2008-03-02 Thread Bill Moseley
). It appears from the design of the Session plugin that it's suppose to persist X seconds between requests (the expires entry). So, it looks like a design problem. The fact that you might be using a store that deletes entries for other reasons than expire time is another issue. -- Bill Moseley

Re: [Catalyst] debug mode or debug levels?

2008-03-04 Thread Bill Moseley
Catalyst '-Debug' or -LOG=warn. -- Bill Moseley [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

[Catalyst] Catalyst::Plugin::Server::XMLRPC and default action

2008-03-12 Thread Bill Moseley
to somehow define a default XMLRPC action? -- Bill Moseley [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

Re: [Catalyst] Session expiry per user

2008-03-14 Thread Bill Moseley
posted a patch. Yes, December 5th with the subject Patch for Catalyst::Plugin::Session::DynamicExpiry $c-config-{session}{expires} = 31536000 if $c-req-param('remember_me'); That's per process. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst

Re: [Catalyst] DBIx::Class model for Form::Processor

2008-03-14 Thread Bill Moseley
: http://search.cpan.org/~gshank/Form-Processor-Model-DBIC-0.01/lib/Form/Processor/Model/DBIC.pm -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable

[Catalyst] Patch for Catalyst::Plugin::Unicode::Encoding

2008-03-17 Thread Bill Moseley
($_); $_ = $c-encoding-decode( $_, $CHECK ); } See any reason not to do that? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] Patch for Catalyst::Plugin::Unicode::Encoding

2008-03-18 Thread Bill Moseley
On Tue, Mar 18, 2008 at 03:38:06AM -0500, Jonathan Rockway wrote: * On Tue, Mar 18 2008, Bill Moseley wrote: The plugin decodes all parameters using: $_ = $c-encoding-decode( $_, $CHECK ) for ( ref($value) ? @{$value} : $value ); I'd think it would be wise to check to see

Re: [Catalyst] Patch for Catalyst::Plugin::Unicode::Encoding

2008-03-18 Thread Bill Moseley
On Wed, Mar 19, 2008 at 12:04:37AM +, Jonas Alves wrote: No, you never should check the flag. See Miyagawa's post http://use.perl.org/~miyagawa/journal/35700. You quoted the entire message -- what point where you commenting on. -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] Patch for Catalyst::Plugin::Unicode::Encoding

2008-03-19 Thread Bill Moseley
should be determined by looking at the Accept-Charset and maybe send a 406 if can't find a suitable encoding. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

Re: [Catalyst] Handy shotcuts

2008-03-20 Thread Bill Moseley
is attached. You don't mention your application, but this thread might be of interest, too: http://lists.scsys.co.uk/pipermail/catalyst/2007-April/thread.html#13047 -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] Re: Patch for Catalyst::Plugin::Unicode::Encoding

2008-03-22 Thread Bill Moseley
] and as a result I end up with HTTP::Body params and uploads automatically so it makes the XMLRPC requests reasonably transparent to the controllers. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk

[Catalyst] Code question about Path dispatch type

2008-03-24 Thread Bill Moseley
://dev.catalyst.perl.org/svnweb/Catalyst/log/Catalyst-Runtime/5.70/trunk/lib/Catalyst/DispatchType/Path.pm (click on the link /trunk/Catalyst-Runtime:6895) -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] Problem storing session data

2008-04-01 Thread Bill Moseley
files? -- Bill Moseley [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

[Catalyst] X-Forwarded-For

2008-04-01 Thread Bill Moseley
IP. Shouldn't C::Apache::Engine use the first address? -- Bill Moseley [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

Re: [Catalyst] X-Forwarded-For

2008-04-01 Thread Bill Moseley
doesn't expect. I can find a work-around. -- Bill Moseley [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

Re: [Catalyst] Re: X-Forwarded-For

2008-04-02 Thread Bill Moseley
On Wed, Apr 02, 2008 at 11:45:59AM +0100, Dagfinn Ilmari Mannsåker wrote: Bill Moseley [EMAIL PROTECTED] writes: On Tue, Apr 01, 2008 at 11:38:15PM -0400, Andy Grundman wrote: When using X-Forwarded-For you cannot trust any value that is not added by your own upstream proxy, so we

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Bill Moseley
the request path and append it to the request base. -- Bill Moseley [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

[Catalyst] HTTP::Body, utf8 filenames, and escaped strings.

2008-04-28 Thread Bill Moseley
upload? I'm wondering if HTTP::Body should decode the headers as they are parsed. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] Re: Catalyst, utf8 in form element type text - Solved

2008-05-05 Thread Bill Moseley
suggest with reservations). That will decode parameters and encoding output. If your templates are UTF8 then ENCODING = 'UTF-8' when creating TT object. Do what's required for your database to handle utf-8. -- Bill Moseley [EMAIL PROTECTED] ___ List

Re: [Catalyst] Re: Catalyst, utf8 in form element type text - Solved

2008-05-05 Thread Bill Moseley
templates should be decoded as the encoding you specify: perldoc -m Template::Provider search for ENCODING -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

Re: [Catalyst] Re: Catalyst, utf8 in form element type text - Solved

2008-05-06 Thread Bill Moseley
On Tue, May 06, 2008 at 09:04:38AM +0200, Aristotle Pagaltzis wrote: * Bill Moseley [EMAIL PROTECTED] [2008-05-05 21:40]: form tags should have accept-charset Browsers tend to ignore that and send the form data in the same encoding as the page that the form was on. Browsers is a bit

Re: [Catalyst] Post-login redirection problem

2008-05-14 Thread Bill Moseley
( $scheme ); $uri-port( undef ); if I don't have a secure and non-secure host setup in my config (i.e. my host name is same for ssl and non-ssl). -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] flash and Template::Stash::ForceUTF8

2008-05-17 Thread Bill Moseley
program. If your templates are UTF8 then you can tell TT to decode the templates automatically with ENCODING = 'UTF-8'. I'd also be careful with flash as reading flash clears everything in the flash, IIRC. I tend to just delete $c-session-{foo}. -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] ANNOUNCE: Catalyst::Devel 1.07 and Catalyst::Manual 5.7012 released to CPAN

2008-06-03 Thread Bill Moseley
of a case where POD and YAML were causing new users confusion? -- Bill Moseley [EMAIL PROTECTED] Sent from my iMutt ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] Another newbie question...

2008-06-09 Thread Bill Moseley
input might be one or more elements of $c-req-parameters, but you would access it as $form-field('some_date')-value; ( or shorthand $form-value( 'some_date' ) ) and that would return a DateTime object. -- Bill Moseley [EMAIL PROTECTED] Sent from my iMutt

Re: [Catalyst] Any recommendations for multiple forms in catalyst (have been using HTML::FormFu)?

2008-07-15 Thread Bill Moseley
three back to form one. update_from_form() knows the form class from the action name, and $c-redirect and $c-post_redirect are simple short-cut methods to build the redirect and localize any messages that end up in flash. -- Bill Moseley [EMAIL PROTECTED] Sent from my iMutt

Re: [Catalyst] Using a post argument in a template

2008-07-25 Thread Bill Moseley
@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ -- Bill Moseley [EMAIL PROTECTED] Sent from my iMutt ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail

[Catalyst] API Versioning for Web Services

2008-07-25 Thread Bill Moseley
( 1 ) { Then in my custom API dispatcher match method I take the version into consideration when matching actions. Any better suggestions? -- Bill Moseley [EMAIL PROTECTED] Sent from my iMutt ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] API Versioning for Web Services

2008-07-27 Thread Bill Moseley
widget.2.get etc. which would make the Catalyst part very simple, but I'm not sure I like that idea of each method having a version in the method name. -- Bill Moseley [EMAIL PROTECTED] Sent from my iMutt ___ List: Catalyst@lists.scsys.co.uk Listinfo

Re: [Catalyst] API Versioning for Web Services

2008-07-28 Thread Bill Moseley
in the request payload is possible, but I'm actually leaning more toward just using separate endpoints: http://localhost:3000/rpc1.2 http://localhost:3000/rpc1.3 or http://localhost:3000/rpc/1.2 http://localhost:3000/rpc/1.3 or http://localhost:3000/rpc?version=1.2 -- Bill

Re: [Catalyst] Apache2::RequestIO::read problem

2008-07-29 Thread Bill Moseley
falling back to the default handler for some reason. There's a little info to be found with Google -- mostly others asking the same question. It would be nice to have these fail in a cleaner way (as far as the logs go, at least). -- Bill Moseley [EMAIL PROTECTED] Sent from my iMutt

[Catalyst] HTTP::Body, Catalyst, and death.

2008-08-06 Thread Bill Moseley
words, is it important that HTTP::Body's add() method (and really, spin() ) not die and instead continue to, well, spin until all the request data has been consumed? -- Bill Moseley [EMAIL PROTECTED] Sent from my iMutt ___ List: Catalyst

Re: [Catalyst] Pushing data to Catalyst powered web page

2008-09-12 Thread Bill Moseley
On Fri, Sep 12, 2008 at 02:15:23PM +0200, Supra, Morne wrote: The problem that I have is that I have no idea how to push the data to a web page instead of pulling. Pull with an AJAX update, perhaps. -- Bill Moseley [EMAIL PROTECTED] Sent from my iMutt

Re: [Catalyst] Passing UTF-8 arg in URL to DBIC search

2008-09-27 Thread Bill Moseley
not clear how it knows what encoding to use. [1] also note that it doesn't decoded the body params, so if you access those via the body_parameters request method they won't be decoded. Accessing them via -parameters is ok, though. -- Bill Moseley [EMAIL PROTECTED] Sent from my iMutt

Re: [Catalyst] Passing UTF-8 arg in URL to DBIC search

2008-09-30 Thread Bill Moseley
this. Will all browsers encode into utf8 octets? You could easily make an LWP request with other encodings. -- Bill Moseley [EMAIL PROTECTED] Sent from my iMutt ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman

Re: [Catalyst] Re: CSRF (plus session security)

2008-10-01 Thread Bill Moseley
would like to only use secure cookies, but I place things in the session that I need for both SSL and non-SSL pages (an example is a language selection that is stored in the session).[1] Makes me think I need $c-session and also $c-secure_session as separate sessions and separate cookies. -- Bill

Re: [Catalyst] Feature Request: Parameter Junctions

2008-10-22 Thread Bill Moseley
. my $form = $c-stash-{form}; my $sport = $form-value( 'sport' ); ... } Fields that accept only scalars only validate for single values, etc. Parameter validation doesn't have to be just for posted forms. -- Bill Moseley [EMAIL PROTECTED] Sent from my iMutt

Re: [Catalyst] Re: PDF creation in Catalyst?

2008-10-22 Thread Bill Moseley
(with print style sheets). -- Bill Moseley [EMAIL PROTECTED] Sent from my iMutt ___ 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

Re: [Catalyst] Perl 5.10 warnings.

2008-11-03 Thread Bill Moseley
On Mon, Nov 03, 2008 at 07:18:46AM -0800, Bill Moseley wrote: Another issue I have to look into is query_form() in /usr/share/perl5/URI/_query.pm is getting passed utf8 strings, which I'm not sure was happening before 5.10. (My version of query_form warns if this happens). That method must

Re: [Catalyst] Perl 5.10 warnings. (used only once)

2008-11-06 Thread Bill Moseley
On Mon, Nov 03, 2008 at 07:18:46AM -0800, Bill Moseley wrote: I know some of this has been discussed: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/msg02634.html I installed Perl 5.10 and Catalyst 5.7015, and now make test generates lots of: Name Catalyst::Controller

[Catalyst] Unnecessary session writes

2008-12-10 Thread Bill Moseley
'; -- Bill Moseley [EMAIL PROTECTED] Sent from my iMutt ___ 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

[Catalyst] http://www.catalystframework.org/calendar/2008/8

2008-12-12 Thread Bill Moseley
{ my ($self, $c ) = @_; $self-path_to( $c-path_to('') ); return $self; } Which would also avoid calling DESTROY every request. -- Bill Moseley mose...@hank.org Sent from my iMutt ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] http://www.catalystframework.org/calendar/2008/8

2008-12-12 Thread Bill Moseley
On Fri, Dec 12, 2008 at 08:37:25AM -0800, Bill Moseley wrote: sub ACCEPT_CONTEXT { my ($self, $c ) = @_; $self = bless({ %$self, path_to = $c-path_to(''), }, ref($self)); return $self; } Sorry, I'm a bit curious about that code. Why

Re: [Catalyst] Unnecessary session writes

2008-12-16 Thread Bill Moseley
session on read only' ); But, the plugin also always writes an expires: key into the store (hence the /^session:/ match above), so if the goal is to not write to the store unless there's something to store then that needs looking at, too. -- Bill Moseley mose...@hank.org Sent from my iMutt

Re: [Catalyst] Unnecessary session writes

2008-12-17 Thread Bill Moseley
On Wed, Dec 17, 2008 at 08:34:36AM +, Tomas Doran wrote: On 17 Dec 2008, at 05:11, Bill Moseley wrote: On Tue, Dec 16, 2008 at 06:20:43PM +, Tomas Doran wrote: Do you fancy writing a test for the issue so we can actually prove it is gone? Well, it would could be something like

[Catalyst] Tracking down memory leaks

2008-12-24 Thread Bill Moseley
; sub ping : Local { my ( $self, $c ) = @_; $c-res-body( 'ping' ); } -- Bill Moseley mose...@hank.org Sent from my iMutt ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

Re: [Catalyst] Tracking down memory leaks

2008-12-24 Thread Bill Moseley
; #find_cycle( $c ); }; Devel::Leak::CheckSV($handle); Then I get a bunch of output like: new 0xac62a60 : new 0xac62a70 : new 0xac62a80 : new 0xac62a90 : By a bunch I mean 16,979. So, I don't quite think I'm doing it correctly. ;) -- Bill Moseley mose...@hank.org Sent from my iMutt

Re: [Catalyst] Unnecessary session writes

2008-12-29 Thread Bill Moseley
are it throwing an exception on invalid session id (instead of just ignoring like a missing one), and the cookie_secure feature that indeed sets the cookie as secure but doesn't prevent it from being sent in a non-SSL session back to the client, kind of defeating the purpose. -- Bill Moseley mose

Re: [Catalyst] Best practice for database connections, where $c is not available?

2008-12-31 Thread Bill Moseley
: [% item.start_time.full_date %] or [% item.start_time.time_with_zone %] But, I'm not sold on that approach. -- Bill Moseley mose...@hank.org Sent from my iMutt ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin

Re: [Catalyst] Catalyst::Plugin::Session - please help test new release.

2009-01-12 Thread Bill Moseley
. Might consider creating a md5 signature when calling initialize_session_data. We use that to prevent writing to the session store when not needed (i.e. empty sessions). -- Bill Moseley mose...@hank.org Sent from my iMutt ___ List: Catalyst

Re: [Catalyst] Catalyst::Plugin::Session - please help test new release.

2009-01-12 Thread Bill Moseley
On Tue, Jan 13, 2009 at 01:34:11AM +, Tomas Doran wrote: On 12 Jan 2009, at 19:41, Bill Moseley wrote: On Mon, Jan 12, 2009 at 05:30:08AM +, Tomas Doran wrote: I'm reasonably sure that it's all working as expected, but I want to get as much testing as possible before pushing up

Re: [Catalyst] how to confirm before deleteing

2009-01-21 Thread Bill Moseley
, and I do it all the time, but when not so lazy and the action lends itself I provide an undelete option afterwards for those rare oops times. -- Bill Moseley mose...@hank.org Sent from my iMutt ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: RE: [Catalyst] generic way of session has expired message?

2009-01-29 Thread Bill Moseley
for their login again. And it doesn't really change the fact that they must log in again. People seem to understand that you can get logged out for inactivity. -- Bill Moseley mose...@hank.org Sent from my iMutt ___ List: Catalyst@lists.scsys.co.uk Listinfo

decoding in core (Was: [Catalyst] [Announce] Catalyst-Runtime-5.8000_05)

2009-01-29 Thread Bill Moseley
in the request? -- Bill Moseley mose...@hank.org Sent from my iMutt ___ 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

Re: [Catalyst] template design issue: varibales stand-alone components

2009-02-04 Thread Bill Moseley
: Dear Dr. % $surname %! I would think you would hide that in an object (or hash if you like as TT doesn't care), and do: Dear Dr. [% user.surname %] so you don't spend all your coding time populating the stash in your controllers. -- Bill Moseley mose...@hank.org Sent from my iMutt

[Catalyst] IO::Pipe and the Catalyst Server

2009-02-04 Thread Bill Moseley
IPC::Cmd next. -- Bill Moseley mose...@hank.org Sent from my iMutt ___ 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

Re: [Catalyst] IO::Pipe and the Catalyst Server

2009-02-05 Thread Bill Moseley
On Thu, Feb 05, 2009 at 01:23:03PM +0100, Florian Ragwitz wrote: On Wed, Feb 04, 2009 at 10:25:15PM -0800, Bill Moseley wrote: I have a module that uses IO::Pipe and when I run it under the Catalyst server the pipe doesn't work (see below). Please try to reproduce with Catalyst-Runtime

Re: [Catalyst] Re: Hello, Deployment of Catalyst apps in a shared web hosting account without shell

2009-02-05 Thread Bill Moseley
FAILED - http://www.djmag.bg/static/css/events.png FAILED - http://www.djmag.bg/static/banners/208781512_160x600.swf FAILED - http://www.djmag.bg/static/css/webface.png ETag score : 3 -- Bill Moseley mose...@hank.org Sent from my iMutt

Re: [Catalyst] IO::Pipe and the Catalyst Server

2009-02-05 Thread Bill Moseley
On Thu, Feb 05, 2009 at 04:28:57PM +0100, Florian Ragwitz wrote: On Thu, Feb 05, 2009 at 07:10:07AM -0800, Bill Moseley wrote: Same problem. Would you mind preparing a testcase for this? I can try. See attached diff against svn 9215. $ prove -vl t/live_fork.t t/live_fork 1..15

Re: [Catalyst] Re: decoding in core (Was: [Announce] Catalyst-Runtime-5.8000_05)

2009-02-06 Thread Bill Moseley
On Fri, Jan 30, 2009 at 11:44:57PM +0100, Aristotle Pagaltzis wrote: * Bill Moseley mose...@hank.org [2009-01-29 17:05]: Neither of the existing plugins do it correctly (IMO), as they only decode parameters leaving body_parameters as octets, and don't look at the request for the charset

Re: [Catalyst] Re: decoding in core (Was: [Announce] Catalyst-Runtime-5.8000_05)

2009-02-06 Thread Bill Moseley
On Fri, Feb 06, 2009 at 03:16:14PM +, Tomas Doran wrote: On 6 Feb 2009, at 14:46, Bill Moseley wrote: Nobody responded to the main point of this email -- if Catalyst should handle encoding in core instead of with a plugin. Nobody has an opinion about that? Or is was it just ignored

Re: [Catalyst] Re: decoding in core

2009-02-22 Thread Bill Moseley
and they don't remove the plugin. -- Bill Moseley mose...@hank.org Sent from my iMutt ___ 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

Re: [Catalyst] stripping path parts and then redispatch?

2009-02-22 Thread Bill Moseley
the path, set a flag, and then appended it on $req-base. -- Bill Moseley mose...@hank.org Sent from my iMutt ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail

Re: [Catalyst] Re: decoding in core

2009-02-23 Thread Bill Moseley
(or the code the Engine uses). Yes, the same thing has to happen with templates, the database, and all external data sources. Those are separate issues. HTTP provides a standard way to determine how to encode and decode. -- Bill Moseley mose...@hank.org Sent from my iMutt

Re: [Catalyst] stripping path parts and then redispatch?

2009-02-24 Thread Bill Moseley
$c-SUPER::prepare_path(@_); Tiny nit pick - you probably want to say $c-next::method(@_) rather than SUPER::. Or what I sent to Larry: $c-NEXT::prepare_path; At what catalyst version can you use $c-next:: ? -- Bill Moseley mose...@hank.org Sent from my iMutt

Re: [Catalyst] Requirements for Catalyst

2009-02-25 Thread Bill Moseley
( $request, %ENV )-setup; App-handle_request; return $cgi-restore-response; } package App; use strict; use warnings; use Catalyst; sub ping : Local { my ( $self, $c ) = @_; $c-res-body( 'ping' ); } -- Bill Moseley mose...@hank.org Sent from my iMutt

Re: [Catalyst] Requirements for Catalyst

2009-02-25 Thread Bill Moseley
is to blame. What versions of Catalyst, any plugins, etc? Can you provide more data to support this? our $VERSION = '5.7015'; There's no plugins, of course. The entire app was shown in the code I posted. -- Bill Moseley mose...@hank.org Sent from my iMutt

Re: [Catalyst] OT: edit/add seperate actions?

2009-03-03 Thread Bill Moseley
-update_from_form( $id ); } So the same form validation is used for create and update via the API, and the xmlrpc code knows how to wrap that action to handle the specifics of setting up the add, update, and get actions. -- Bill Moseley mose...@hank.org Sent from my iMutt

Re: [Catalyst] Including a submenu

2009-04-06 Thread Bill Moseley
/a/li /ul /div div id=submenu [% INCLUDE $page/menu.tt2 %] Try this: [% menu = $page/menu.tt; PROCESS $menu; %] -- Bill Moseley. mose...@hank.org Sent from my iMutt ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] Re: Including a submenu

2009-04-07 Thread Bill Moseley
: absolute paths are not allowed (set ABSOLUTE option) If you want to process a variable try this: echo '[% page = foo; menu = $page/bar.tt; PROCESS $menu %]' | tpage --noabsolute file error - foo/bar.tt: not found -- Bill Moseley. mose...@hank.org Sent from my iMutt

Re: [Catalyst] unexpected behavior of $c-request-secure and $c-request-base

2009-04-25 Thread Bill Moseley
-secure( 1 ) if $req-header( 'Host' ) =~ /:\d*443$/; return; -- Bill Moseley. mose...@hank.org Sent from my iMutt ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] unexpected behavior of $c-request-secure and $c-request-base

2009-04-25 Thread Bill Moseley
On Sat, Apr 25, 2009 at 04:23:50PM -0400, Hans Dieter Pearcey wrote: On Sat, Apr 25, 2009 at 06:29:50AM -0700, Bill Moseley wrote: The SSL decryption is happening on Apache and Apache is proxying the request to Catalyst. What? No it isn't. It's using mod_perl; there's no reverse proxying

Re: [Catalyst] The Netiquette thread (OT)

2009-04-28 Thread Bill Moseley
and hate the lack of trimming even more. Beats the endless scrolling. Oh, and the HTML email on the iPhone... well don't get me started. All will be fine once a native Mutt app for the iPhone comes out. -- Bill Moseley. mose...@hank.org Sent from my iMutt

Re: [Catalyst] Using test database with TWAM?

2009-04-30 Thread Bill Moseley
is not set the PG* environment variables are used to tell everything what database to use. When Catalyst then goes to load the config an environment variable is set that says to use make_test. It's probably less complex actually than my description above. ;) -- Bill Moseley. mose...@hank.org Sent

[Catalyst] Plugin::Cache silent failures

2009-05-20 Thread Bill Moseley
if it would be safe to warn on -set() failing in the plugin. -- Bill Moseley mose...@hank.org Sent from my iMutt ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] best practice: where to put constants

2009-06-04 Thread Bill Moseley
() { $by_name{$name} }; } } return; } 1; -- Bill Moseley. mose...@hank.org Sent from my iMutt ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail

Re: [Catalyst] Serving static content from DB

2009-06-07 Thread Bill Moseley
a content delivery network). As mentioned, if you need auth for these files then look into the sendfile and reproxy features of Lighty and Perlbal. Use a dedicated static server for all static content. Then you just need to get uploads redirected there. -- Bill Moseley. mose...@hank.org Sent from my

Re: [Catalyst] Session id creation

2009-06-10 Thread Bill Moseley
, not a cache. -- Bill Moseley. mose...@hank.org Sent from my iMutt ___ 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

Re: [Catalyst] Session id creation

2009-06-10 Thread Bill Moseley
On Wed, Jun 10, 2009 at 07:40:44AM -0700, Bill Moseley wrote: [1] Yes, it's a store, not a cache. Ha! Morning post. It's a cache not a store. But we use it as a store. -- Bill Moseley. mose...@hank.org Sent from my iMutt ___ List: Catalyst

Re: [Catalyst] I18N with quotation marks

2009-07-01 Thread Bill Moseley
(such as: s'il vous plait), then it could break the HTML: select value='[% c.loc(Please select one) %]' I would think the correct approach would be a filter: select value='[% c.loc(Please select one) | html %]' but the default html filter only escapes double quotes. -- Bill Moseley mose

Re: [Catalyst] How to enhance Log4Perl log-files about the loggend in user ($c-user-id)?

2009-07-22 Thread Bill Moseley
On Tue, Jul 21, 2009 at 7:41 AM, Christoph Metz mail-...@web.de wrote: i want to see which debug/error/warn message was logged by which user. I'm using this early in the request after I have $user. Log::Log4perl::MDC-put( 'user', $user-id ); -- Bill Moseley mose...@hank.org

[Catalyst] Why no extra attributes on Private actions?

2009-08-15 Thread Bill Moseley
reason that Private actions may not have additional attributes? 1 http://www.mail-archive.com/catalyst@lists.scsys.co.uk/msg01403.html -- Bill Moseley mose...@hank.org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin

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

2009-08-16 Thread Bill Moseley
. No :Action (or any attribute) required. -- 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

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

2009-08-17 Thread Bill Moseley
On Sun, Aug 16, 2009 at 10:40 AM, Bill Moseley mose...@hank.org wrote: On Sat, Aug 15, 2009 at 4:28 PM, Eden Cardim edencar...@gmail.com wrote: Is there a specific reason that Private actions may not have additional attributes? You can achieve the same effect by using the :Action tag

  1   2   3   4   >