Re: [Catalyst] Patch for Catalyst::Engine::Apache

2006-06-21 Thread Bill Moseley
some duplication in the SSL detection between prepare_connection and prepare_path. I'll look again when I have more time. Patch attached...again. -- Bill Moseley [EMAIL PROTECTED] Index: lib/Catalyst/Engine/Apache.pm === --- lib

[Catalyst] SQL::Abstract and MATCH AGAINST

2006-08-16 Thread Bill Moseley
Any tricks to get SQL::Abstract to setup MySQL's fulltext search: MATCH (foo,bar) AGAINST ('+word -notword' IN BOOLEAN MODE) with proper bind parameters? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http

Re: [Catalyst] Post deployment application management

2006-09-14 Thread Bill Moseley
wouldn't matter where they are. Thanks for your comments, Perrin. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst

Re: [Catalyst] Post deployment application management

2006-09-14 Thread Bill Moseley
On Thu, Sep 14, 2006 at 02:29:18PM -0400, Perrin Harkins wrote: On Thu, 2006-09-14 at 11:22 -0700, Bill Moseley wrote: On Thu, Sep 14, 2006 at 01:45:39PM -0400, Perrin Harkins wrote: TortoiseSVN is pretty nice, and should be similar enough to FTP for them to get it. They will not be able

Re: [Catalyst] The old double-post issue

2006-09-21 Thread Bill Moseley
get past the javascript then they get what they deserve. ;) -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst

Re: [Catalyst] The old double-post issue

2006-09-22 Thread Bill Moseley
then they get what they deserve. ;) That viewpoint is hard to sell to me. If people double click and I am not smart enough to catch it I get what they deserve. =) Well, actually, they don't get what they deserve -- which is the output from the first request. ;) -- Bill Moseley [EMAIL

Re: [Catalyst] Recommendation For Logging To A File

2006-09-24 Thread Bill Moseley
reading th logs. Those go to stderr and apache writes those to the error log and is rotated with logrotate. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable

[Catalyst] Content-Length: 0 on POSTs

2006-09-29 Thread Bill Moseley
-Encoding: deflate Content-Length: 2642 Content-Type: text/html; charset=utf-8 ^^ Response ^^ The live form is at https://infopeople.org/login -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst

Re: [Catalyst] Best place to set environment variables

2006-10-11 Thread Bill Moseley
, production) that can override the default settings. Changes from the defaults are passed in environment variables from this script. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman

Re: [Catalyst] Sharing code / Feedback request: TT macro for uri_for([current uri]); same page links

2006-10-21 Thread Bill Moseley
by style them differently. The TT badger book has a chapter on building menus that you might find helpful. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable

Re: [Catalyst] (Beginner) Plugins

2006-10-24 Thread Bill Moseley
with CSS and JS. Shouldn't this do the trick? width: 100%; -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst

Re: [Catalyst] packaging and porting Catalyst

2006-10-30 Thread Bill Moseley
/lib/perl/5.8.4/auto/HTML/Tidy/Tidy.so local/lib/perl/5.8.4/auto/IPC/ShareLite/ShareLite.so local/lib/perl/5.8.4/auto/MIME/Base64/Base64.so local/lib/perl/5.8.4/auto/Params/Validate/Validate.so local/lib/perl/5.8.4/auto/Template/Stash/XS/XS.so local/lib/perl/5.8.4/auto/Time/Piece/Piece.so -- Bill

Re: [Catalyst] Re: packaging and porting Catalyst

2006-10-30 Thread Bill Moseley
On Mon, Oct 30, 2006 at 04:04:09PM +0100, A. Pagaltzis wrote: * Bill Moseley [EMAIL PROTECTED] [2006-10-30 16:00]: One disadvantage of generating packages for distributions is that users without root access (such as on shared hosting) cannot install the packages. I have a tarball I

Re: [Catalyst] automatic form generation based on data models

2006-11-08 Thread Bill Moseley
'); '/fieldset'; 'fieldsetlegendAccount Information/legend'; '/fieldset'; END; END; -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org

Re: [Catalyst] automatic form generation based on data models

2006-11-08 Thread Bill Moseley
On Wed, Nov 08, 2006 at 09:41:56PM +, Josef Karthauser wrote: On Wed, Nov 08, 2006 at 12:13:53PM -0800, Bill Moseley wrote: Well, in my case currently this is all I'd need to do: [% # Template to generate a standard form WRAPPER form_wrapper; FOR f

Re: [Catalyst] Catalyst::View::TT

2006-11-13 Thread Bill Moseley
to track down every template that might be introducing leading blank lines, then how about removing the leading space from $c-res-body for that specific $c-res-conent_type in an end action? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst

Re: [Catalyst] Catalyst::View::TT

2006-11-14 Thread Bill Moseley
/^\s+//; $c-res-body( $body ); } Do all browsers accept application/xhtml+xml these days? I thought I remembered seeing something about setting the content type based on HTTP_ACCEPT. -- Bill Moseley [EMAIL PROTECTED] ___ List

Re: [Catalyst] Catalyst and UTF-8

2006-11-28 Thread Bill Moseley
suggest it's not wise to use in modules due to that lack of scoping. To get utf8 data out of mysql, use $dbh-do(SET NAMES 'utf8'); $dbh-do(SET CHARACTER SET 'utf8'); Doesn't there still need to be a decode() or layer set some place when moving the utf8 data into perl? -- Bill

Re: [Catalyst] Last Chance / Last Day: Web development platform contestand Perl / Catalyst

2006-12-01 Thread Bill Moseley
? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

Re: [Catalyst] templates

2006-12-20 Thread Bill Moseley
/includes/banner.tt and that will change the look of just the banner for (site|user|branding|whatever) foo. default/templates is always in the template include path, so this makes it easy to just override one or a few templates when needed. May not be useful outside my application. -- Bill Moseley

Re: [Catalyst] C::P::Email 0.06 problem

2006-12-24 Thread Bill Moseley
just saw that, although 0.07 did not fix the problem, the latest versions of Email::Send, Email::MIME and Email::MIME::Creator did the trick. .07 removes that invalid check of To: http://dev.catalyst.perl.org/changeset/5885/trunk/Catalyst-Plugin-Email/Email.pm -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] How safe are database transactions?

2007-01-04 Thread Bill Moseley
a confirmation email until I know the database transaction is complete, and that mail might get generated inside a nested transaction. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman

Re: [Catalyst] Accessing action URIs outside of Catalyst app

2007-01-08 Thread Bill Moseley
. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

Re: [Catalyst] sane AJAX strategy

2007-01-08 Thread Bill Moseley
() is just a method to generate a list based on rows and columns and how it should be sorted. Not very helpful without seeing all the code, I suppose, but it's just stuff I use in a bunch of controllers so it's factored out. -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] C::V::PDF? (Anybody have one?)

2007-01-08 Thread Bill Moseley
the wheel if at all possible. I use htmldoc to generate a few pdfs. It's quick and easy. http://www.htmldoc.org/ -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable

[Catalyst] Generating iCalendar

2007-01-08 Thread Bill Moseley
...ok -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http

Re: [Catalyst] C::V::PDF? (Anybody have one?)

2007-01-09 Thread Bill Moseley
to a second page I'd need a better way to generate pdfs. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst

Re: [Catalyst] Catalyst::Plugin::Scheduler issue.

2007-01-12 Thread Bill Moseley
yml $c-config-{scheduler}-{yaml_file} ||= $c-path_to('scheduler.yml'); is $APP_HOME/scheduler.yml. existence of a file called Cschedule.yml in your application's home Looks like scheduler.yml. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst

Re: [Catalyst] changing the port

2007-01-14 Thread Bill Moseley
what the front end is sending to make sure the port is included. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com

Re: [Catalyst] Templates in the database

2007-01-20 Thread Bill Moseley
ON template ( path ); create index template_current ON template ( current ); And maybe a current_template view class and override update/insert to always insert into the base table. And never update rather always insert changes. -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] Templates in the database

2007-01-20 Thread Bill Moseley
if a node is a leaf node. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http

Re: [Catalyst] Templates in the database

2007-01-20 Thread Bill Moseley
rows can be found with an index so seems like it would not be much work. Probably only need a few revisions back for any row, anyway. Thanks for the comments! -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http

Re: [Catalyst] memory usage of mod_perl process

2007-02-08 Thread Bill Moseley
but restarts were taking a long time (seemed every FastCGI process had to compile the application). I moved to mod_perl and much happier now. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman

Re: [Catalyst] Re: memory usage of mod_perl process

2007-02-08 Thread Bill Moseley
joins? Are your pages very complex? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev

Re: [Catalyst] multi-homed application and proxy configuration

2007-02-09 Thread Bill Moseley
. How does the backend know to make a http or https url with uri_for()? What I do is have the Cat application listen on different ports so the Cat application knows if it was an ssl request based on the port the request comes in on. -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] Template::Provider::DBI and Catalyst

2007-02-13 Thread Bill Moseley
/Provider.pm http://hank.org/Provider.diff (against cvs two days ago) Should be a drop-in replacement for the default provider. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman

Re: [Catalyst] Session problems with IE and cookies

2007-02-28 Thread Bill Moseley
. This sounds different from what the OP commented on (since they are able to log in), but there is a bug related to SSL and IE that causes IE to send an empty body: http://support.microsoft.com/default.aspx?kbid=831167 -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] Regex -- optional index.html

2007-03-01 Thread Bill Moseley
] Checking [training/webcasts/webcast_data/162] *MATCHED* So that's why it's matchine when I don't want it to match. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst

Re: [Catalyst] Regex -- optional index.html

2007-03-02 Thread Bill Moseley
On Thu, Mar 01, 2007 at 04:13:05PM -0800, Bill Moseley wrote: Seems that Catalyst first tries to match the full path, then tries to match a reduced path. Adding a bit of debugging to Regex.pm's match() method: Request = /training/webcasts/webcast_data/162/foo.html Checking

Re: [Catalyst] Merging configs

2007-03-09 Thread Bill Moseley
' ) { $config-{$key} ||= {}; $self-deep_merge( $config-{$key}, $value ); } else { $config-{$key} = $value; } } } -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http

Re: [Catalyst] Merging configs

2007-03-09 Thread Bill Moseley
-{$key} = $val; } } return $self-_config; } -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst

Re: [Catalyst] Performance

2007-03-09 Thread Bill Moseley
to parse the string each time. And I'm sure there must be a lot unescaping/escaping going on. The only thing that's optimised for is printing! I just checked and on some pages I'm calling uri_for a few hundred times. If that's a bottle neck then optimization would be most welcome. -- Bill Moseley

Re: [Catalyst] Performance

2007-03-09 Thread Bill Moseley
On Fri, Mar 09, 2007 at 11:34:14AM -0600, Dave Rolsky wrote: On Fri, 9 Mar 2007, Bill Moseley wrote: I just checked and on some pages I'm calling uri_for a few hundred times. If that's a bottle neck then optimization would be most welcome. I did some hack-y testing of a (bad) memo-ized

Re: [Catalyst] Catalyst::Plugin::DateTime

2007-03-09 Thread Bill Moseley
zone. Is there anything I can do to install this Catalyst Plugin under Windows? What does that plugin offer over the standard DateTime module? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org

Re: [Catalyst] context object in TT

2007-03-15 Thread Bill Moseley
$cvar = $self-config-{CATALYST_VAR}; defined $cvar ? ( $cvar = $c ) : ( c= $c, base = $c-req-base, name = $c-config-{name} ) } -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org

Re: [Catalyst] C::C::FB and captchas or similar

2007-03-19 Thread Bill Moseley
. That seems to have, for the most part, reduced the bot submissions. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com

Re: [Catalyst] Catalyst Exception received by e-mail?

2007-03-27 Thread Bill Moseley
. I like those complete scrolling screens when something bad happens ... I would recommend you use a separate process to watch the error log and send mail. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http

Re: [Catalyst] HOWTO: extend the Authentication tutorial example and redirect to original URI

2007-03-29 Thread Bill Moseley
, the user is not currently authorized to view the page. And the idea being that the browser would not cache the 4xx response. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo

Re: [Catalyst] Componentised actions.

2007-03-29 Thread Bill Moseley
that, they're wrong. It's perfectly possible to forward to public actions. When you start up the server in debug mode you can see the private names for the public paths. So, you forward to the action using its private name. -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] code after finalize: mod_perl, testserver ok - fastcgi not

2007-04-07 Thread Bill Moseley
the above. But, again, it's been years since I did this. Hopefully, someone with a bit more knowledge of FastCGI can respond. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo

Re: [Catalyst] internal redirect

2007-04-11 Thread Bill Moseley
. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

Re: [Catalyst] internal redirect

2007-04-11 Thread Bill Moseley
On Wed, Apr 11, 2007 at 08:36:52AM -0700, Bill Moseley wrote: On Wed, Apr 11, 2007 at 03:28:59PM +0100, Adeola Awoyemi wrote: if ( $new_img-write( file = $new_filename ) ) { I tried using $c-response-redirect( $new_filepath ) but that issues a 302 Temporarily Moved status. I

Re: [Catalyst] little syntax

2007-04-12 Thread Bill Moseley
save a lot of time when dealing with the templates. -- Bill Moseley [EMAIL PROTECTED] ___ List: [EMAIL PROTECTED] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site

Re: [Catalyst] HOWTO reference config settings from template

2007-04-12 Thread Bill Moseley
into the stash, or is using a different name (see C::View::TT). -- Bill Moseley [EMAIL PROTECTED] ___ List: [EMAIL PROTECTED] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev

Re: [Catalyst] HOWTO reference config settings from template

2007-04-13 Thread Bill Moseley
using a view generated by the catalyst helper script. [% USE foo = Class( 'Whatever::View::TT' ); USE Dumper; Dumper.dump(foo.config ) | stderr; %] -- Bill Moseley [EMAIL PROTECTED] ___ List: [EMAIL PROTECTED] Listinfo: http

Re: [Catalyst] [RFC] ditch svn

2007-04-18 Thread Bill Moseley
On Wed, Apr 18, 2007 at 09:14:40PM +1000, Kieren Diment wrote: I think jrockway's original complaint was that the svn/svk model makes merging quite difficult and slows down progress which means that new features are only released slowly. Sounds like a feature. -- Bill Moseley [EMAIL

Re: [Catalyst] A View that may include elements optionally returnedfrom other funcs

2007-04-25 Thread Bill Moseley
. No clue how that works in Seamstress. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev

Re: [Catalyst] Re: Redirects // Re: forwarding to chained actions

2007-04-27 Thread Bill Moseley
Quick! Make a plugin on CPAN but then realized the above exceeds the line limit for Catalyst plugins. ;) -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive

Re: [Catalyst] Shoot out -- Catalyst / RoR / Other MVC apps --

2007-05-09 Thread Bill Moseley
-$private_method( $foo ); -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http

Re: [Catalyst] Form validation in insert() and update()?

2007-05-14 Thread Bill Moseley
hand-customizing. That way the same forms can be used for more than just the web environment. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] Form validation in insert() and update()?

2007-05-14 Thread Bill Moseley
a very, very bad user. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http

Re: [Catalyst] Form validation in insert() and update()?

2007-05-15 Thread Bill Moseley
{ my ( $self, $c, $id ) = @_; $c-update_from_form( $id ); } Where $c-update_from_form requires the form module and does everything else the first example does. I commonly do a redirect if $c-update_from_form returns true. -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] Form validation in insert() and update()?

2007-05-15 Thread Bill Moseley
form similar approaches. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http

Re: [Catalyst] Encrypt /Decrypt URI

2007-05-18 Thread Bill Moseley
3,5,7 are abstract ids, just like 84bc3da1b3e33a18e8d5e1bdd7a18d7a is. Of course, what you want is a method that requires checking that the user can access the item. Something like: $item = $user-get_user_item( $id ); -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] Encrypt /Decrypt URI

2007-05-18 Thread Bill Moseley
On Fri, May 18, 2007 at 07:55:35PM +0200, Matija Grabnar wrote: Bill Moseley wrote: What you are proposing is if item 7 is instead encoded as 84bc3da1b3e33a18e8d5e1bdd7a18d7a then they are less likely to try other numbers because of, ... why? Because it's too daunting of a task? It's a big

Re: [Catalyst] Encrypt /Decrypt URI

2007-05-18 Thread Bill Moseley
On Fri, May 18, 2007 at 12:16:34PM -0700, mla wrote: Bill Moseley wrote: Using md5s for images, as in your example, is fine. But if the images really needed to be protected then that scheme is purely security by obscurity. That's what we were talking about -- the case where some user might

[Catalyst] Setting time zone and locale on dates.

2007-05-21 Thread Bill Moseley
in the view. [% c.local_date( user.last_updated_time ) | html %] But, setting the locale and time_zone in the inflator would be handy since it's all one place instead of every time I use a date in the view. What do you do? -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] Constants that refer to rows in a lookup table.

2007-05-22 Thread Bill Moseley
); I'd still be on the beach. But the question was how do I represent constants best? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] Constants that refer to rows in a lookup table.

2007-05-22 Thread Bill Moseley
, -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

[Catalyst] Duplicate session ids

2007-05-25 Thread Bill Moseley
/9# Looks like you failed 1 test of 9. t/6.dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 6 Failed 1/9 tests, 88.89% okay t/7.ok -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] Duplicate session ids

2007-05-26 Thread Bill Moseley
just have not had time to get back to it. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org

Re: [Catalyst] Trailing undef in uri_for()

2007-06-05 Thread Bill Moseley
is for. ;) -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

Re: [Catalyst] DateTime in session- breaks during login/logout

2007-06-13 Thread Bill Moseley
error - Invalid locale name or id: , at /usr/lib/perl5/Cache/FastMmap.pm line 551 I just got caught by this. IIRC, upgrade DateTime::Locale. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org

Re: [Catalyst] Forms generation

2007-06-14 Thread Bill Moseley
-update_from_form( $user_id ); } -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev

Re: [Catalyst] Forms generation

2007-06-14 Thread Bill Moseley
communicate that logic back to the controller or whatever in the session? It makes sense to have a separate form object to handle that work. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman

Re: [Catalyst] Forms generation

2007-06-15 Thread Bill Moseley
a weakened attribute has caught me. ;) Thanks, -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst

Re: [Catalyst] :Template() Attribute

2007-06-15 Thread Bill Moseley
'; ... } Yes. You can use both. Setting stash template always overrides the default Template() attribute for that current action via ||= Maybe I missed this in your first email, but what's the problem you are trying to solve? -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] :Template() Attribute

2007-06-15 Thread Bill Moseley
the action? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http

Re: [Catalyst] :Template() Attribute

2007-06-15 Thread Bill Moseley
is happening. Personal preference, I guess. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst

Re: [Catalyst] RFC for handling reverse proxies not deployed to standard ports.

2007-06-15 Thread Bill Moseley
engines (my fault). That would be a nice refactoring. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst

Re: [Catalyst] :Template() Attribute

2007-06-18 Thread Bill Moseley
similar template names, or is this mostly for TT? I almost always tweak the template paths, too. Sometimes it's for skinning/branding or it's for I18N (e.g. root/templates/language tag/). -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst

Re: [Catalyst] :Template() Attribute

2007-06-18 Thread Bill Moseley
On Mon, Jun 18, 2007 at 02:42:13PM +, Zbigniew Lukasiak wrote: On 6/18/07, Bill Moseley [EMAIL PROTECTED] wrote: ... Do you mean instead of $c-action-reverse like C::V::TT does now? That is, so you always have to specify the template name? What I see in my copy of C::V::TT is: sub

Re: [Catalyst] preventing Cross Site Request Forgery

2007-06-19 Thread Bill Moseley
CSRF, get it from CPAN, load it into your app, and stop worrying :) Is this much different than Catalyst::Plugin::RequestToken? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman

Re: [Catalyst] setup() called twice

2007-06-19 Thread Bill Moseley
{ my $self = shift; $self-setup( @_ ); } -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst

Re: [Catalyst] Adding DBIC schema causes TT error

2007-06-20 Thread Bill Moseley
in Changes but I suspect you need 2.19 if that's the problem you are hitting. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail

Re: [Catalyst] plat_forms report published on June 20th. 2007. Geneva team on Catalyst wins the Perl track.

2007-06-20 Thread Bill Moseley
their claims of superiority. ;) -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site

Re: [Catalyst] Adding DBIC schema causes TT error

2007-06-20 Thread Bill Moseley
. * Fixed bug in Template::Provider to immediately invalidate the cache entry of any template that fails to compile. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst

Re: [Catalyst] sharefiles on /tmp

2007-06-21 Thread Bill Moseley
have a plugin that alters temporary file locations to include the uid in the path. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail

Re: [Catalyst] Template rendering error under mod_perl

2007-06-29 Thread Bill Moseley
dump the INCLUDE_PATH? Template::Provider also has some dubbing available. Did you enable that? Have you tried making a local copy of Template::Provider in your lib directory and throw in some warn statements? -- Bill Moseley [EMAIL PROTECTED] ___ List

Re: [Catalyst] Anyone using ProxyPass?

2007-06-30 Thread Bill Moseley
' ); if ( $host =~ /^(.+):(\d+)$/ ) { $host = $1; $port = $2; Which ends up setting the request base, which is used in uri_for. Is your front end machine on the same host? If not you would likely need to set $c-config-{using_frontend_proxy} per the docs. -- Bill Moseley [EMAIL

Re: [Catalyst] How to access current MyApp instance ?

2007-07-01 Thread Bill Moseley
( Game, 'View history' ); %] -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http

Re: [Catalyst] Re: How to access current MyApp instance ?

2007-07-01 Thread Bill Moseley
On Sun, Jul 01, 2007 at 09:27:17PM +0200, A. Pagaltzis wrote: * Bill Moseley [EMAIL PROTECTED] [2007-07-01 19:25]: Macro? [% game_detail_link( Game, 'Click here' ); game_history_link( Game, 'View history' ); %] Avoid macros like the plague

Re: [Catalyst] Anyone using ProxyPass?

2007-07-02 Thread Bill Moseley
is wrong here. Throw in some warn statements in Catalyst::Engine::Apache. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com

Re: [Catalyst] Using Log4perl -- setting caller()

2007-07-04 Thread Bill Moseley
-log-warn will look different than calling warn (when is trapped and then calls $c-log-warn as in the code I posted). Print out %M and call both $c-log-warn and warn() and you will see the issue. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst

Re: [Catalyst] Re: How to access current MyApp instance ?

2007-07-05 Thread Bill Moseley
', sortby = 'account'; %] /th But I think the macros help with readability. In the past I've abstracted that out even more (since the tr and th is common on every page -- but that's a bit overkill. -- Bill Moseley [EMAIL PROTECTED

Re: [Catalyst] Duplicate session ids

2007-07-08 Thread Bill Moseley
; $c-_save_session_id; $c-_save_session; $c-_save_flash; $c-_save_session_expires; } [1] The result was when I tried to access the session a new session would then be created -- so my session id was ever-changing and I could never log in. -- Bill Moseley [EMAIL

[Catalyst] Session trouble

2007-07-13 Thread Bill Moseley
: my_cookie=6d30ea44e84f658ae647f249bd7237e8a117740b; path=/ -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst

Re: [Catalyst] Command-line utility using Controller - examples?

2007-07-13 Thread Bill Moseley
that. But, the infrastructure that Catalyst provides can make doing this in the application tempting. It's up to you if you want to give up those request cycles to other things than web requests. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst

Re: [Catalyst] Session trouble

2007-07-16 Thread Bill Moseley
. The id should just be ignored in that case and a new cookie sent. If someone ends up with a bad cookie (or the cookie format changes) could result in a lockout. Thanks, -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo

Re: [Catalyst] Making Controllers thin and Models thick

2007-07-18 Thread Bill Moseley
of a controller responsibility since an invalid $id in the path for a given user is an invalid path (and thus maybe a 404). -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst

  1   2   >