Re: [Catalyst] Where to put template files?

2006-06-09 Thread Bill Moseley
n they probably shouldn't be in there tweaking the config in the first place. ;) -- Bill Moseley [EMAIL PROTECTED] ___ Catalyst mailing list [EMAIL PROTECTED] http://lists.rawmode.org/mailman/listinfo/catalyst

Re: [Catalyst] YAML vs. *

2006-06-09 Thread Bill Moseley
ML to generate my httpd.conf. It's stuffed in there with the rest of the application configuration. -- Bill Moseley [EMAIL PROTECTED] ___ Catalyst mailing list [EMAIL PROTECTED] http://lists.rawmode.org/mailman/listinfo/catalyst

Re: [Catalyst] How create a PDF report?

2006-06-09 Thread Bill Moseley
I'm using htmldoc for generating some pdf pages, but I now need to generate labels. Anyone used/tried the PDF::Labels modules on CPAN? (Seems like there's two with thes same name). I need to print name tags (with graphics) and also generate sheet mailing labels. -- Bill Mose

Re: [Catalyst] CDBI integration

2006-06-13 Thread Bill Moseley
ase} ); Where "DB" is the CDBI base class and new() sets up the parameters from the application config and calls connection(); -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.o

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

2006-06-21 Thread Bill Moseley
/Catalyst/Engine/Apache.pm I think there's 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 PR

Re: [Catalyst] Catalyst + mod_fcgid startup problem

2006-07-13 Thread Bill Moseley
27;t forked each fcgi process compiles the application and it was taking 45 seconds or so to restart the server. My guess was that fcgi was just timing out. Anyway, I upgraded the server and moved to mod_perl and all those problems went away. --

[Catalyst] Patch for Template Toolkit solves "stuck" TT errors

2006-08-01 Thread Bill Moseley
m: http://lists.template-toolkit.org/pipermail/templates/2006-July/thread.html#8815 -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.

[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

[Catalyst] Post deployment application management

2006-09-14 Thread Bill Moseley
svn update every few minutes (e.g. perhaps a post-commit script)? [1] I downloaded a Mac subversion GUI client. Seemed to take a somewhat easy process (command line svn) and make it very complex. -- Bill Moseley [EMAIL PROTECTED] ___ Li

Re: [Catalyst] Post deployment application management

2006-09-14 Thread Bill Moseley
ps so seems like 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

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 > >

[Catalyst] The old double-post issue

2006-09-20 Thread Bill Moseley
fields when they hit submit, but if they used the login on the side-navigation it worked fine. Of course, it's the same form on both pages -- generated by the same template: [% PROCESS includes/login_form %] so it's bit of a mystery why one form

Re: [Catalyst] Rails-like form helpers

2006-09-21 Thread Bill Moseley
on_type' ); field('Organization Active', 'active'); field('Member Of Groups', 'groups' ); field('Parent Organization', 'parent_organization' ); field('Contact Person', 'contact'); field(

Re: [Catalyst] The old double-post issue

2006-09-21 Thread Bill Moseley
est/update on my form's unique token than C::P::RequestToken provides. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http:

Re: [Catalyst] The old double-post issue

2006-09-21 Thread Bill Moseley
t redisplay the original page's output. That sounds like trouble. Geeze, if people double click on submit buttons and can get past the javascript then they get what they deserve. ;) -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@li

Re: [Catalyst] The old double-post issue

2006-09-22 Thread Bill Moseley
don't get what they deserve -- which is the output from the first request. ;) -- 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] Session cookie and permanent state

2006-09-23 Thread Bill Moseley
gt; } else { > $c->update_session_cookie( $c->make_session_cookie( > $c->sessionid, expires => 0 ) ); > } > } > --- > I bet there is something wrong. anyone can give me a hand? > Thanks. For one thing, 1 is

Re: [Catalyst] Recommendation For Logging To A File

2006-09-24 Thread Bill Moseley
urrent user, and a few other bits of common data I find useful when 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.

[Catalyst] Content-Length: 0 on POSTs

2006-09-29 Thread Bill Moseley
, pre-check=0 Pragma: no-cache Vary: Accept-Encoding Content-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] __

Re: [Catalyst] Content-Length: 0 on POSTs

2006-09-29 Thread Bill Moseley
users have never posted a form before in SSL mode. It's not like I'm doing anything that complex in these forms. Very odd. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mai

Re: [Catalyst] Testserver dies under IE - patch

2006-10-03 Thread Bill Moseley
e same machine) to the test server and that seemed to also help with this problem. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-

Re: [Catalyst] Lighttpd Proxy Support

2006-10-10 Thread Bill Moseley
s should be in Catalyst::Engine (or maybe C::Engine::Apache and similar engines need to inherit from the CGI engine). Otherwise that code needs to be duplicated in the other engines. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org

Re: [Catalyst] Best place to set environment variables

2006-10-11 Thread Bill Moseley
ng, staging, 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.

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

2006-10-21 Thread Bill Moseley
em links 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

Re: [Catalyst] (Beginner) Plugins

2006-10-24 Thread Bill Moseley
he resize > 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

Re: [Catalyst] packaging and porting Catalyst

2006-10-30 Thread Bill Moseley
/XS/XS.so local/lib/perl/5.8.4/auto/Time/Piece/Piece.so -- 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] 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

Re: [Catalyst] Re: packaging and porting Catalyst

2006-10-30 Thread Bill Moseley
r to keep one cat-in-a-box type tarball up to date than try and keep a collection of packages for different operating systems up to date. Plus, it's not limited to those with root. It was just nice being able to untar my perl lib on my new Dreamhost account and have my app

Re: [Catalyst] Where should constraints go

2006-11-03 Thread Bill Moseley
App directory I have: $ls -1 Controller Form Menu Model View -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] Can we use both TT and TTsite at the same time

2006-11-08 Thread Bill Moseley
s and javascript dynamically generated? -- 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] automatic form generation based on data models

2006-11-08 Thread Bill Moseley
ever thought it would save me any time to have automatic form generation. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.co

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

2006-11-08 Thread Bill Moseley
;); field(form, 'phone', 'Phone', 'Please include area code'); ''; 'Account Information'; ''; END; END; -- Bill Moseley [EMAIL PROTECTED] ___

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 > >

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

2006-11-13 Thread Bill Moseley
#x27;t want 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]

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

2006-11-14 Thread Bill Moseley
es->content_type =~ /xhtml+xml/ ) { my $body = $c->res->body; $body =~ s/^\s+//; $c->res->body( $body ); } Do all browsers accept application/xhtml+xml these days? I thought I remembered seeing something

Re: [Catalyst] Catalyst and UTF-8

2006-11-28 Thread Bill Moseley
x27;t there still need to be a decode() or layer set some place when moving the utf8 data into perl? -- 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] Last Chance / Last Day: Web development platform contestand Perl / Catalyst

2006-12-01 Thread Bill Moseley
the ones who's dues paid for the ad in the first place. What was that organization that did all those TCO reports for Microsoft? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mail

Re: [Catalyst] templates

2006-12-20 Thread Bill Moseley
just override one or a few templates when needed. May not be useful outside my application. -- 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] C::P::Email 0.06 problem

2006-12-24 Thread Bill Moseley
here the fix should be -- but I was getting a lot of wide character warnings in my logs. -- 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] C::P::Email 0.06 problem

2006-12-24 Thread Bill Moseley
o get > > it to stop. =) > I 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/Catal

Re: [Catalyst] Anyone with PHP / Smarty Background

2006-12-31 Thread Bill Moseley
ms that need access to the database, such as cron jobs, use that directory to access the model code. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: h

Re: [Catalyst] How safe are database transactions?

2007-01-04 Thread Bill Moseley
on completes. I don't want to send out 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 Li

Re: [Catalyst] sane AJAX strategy

2007-01-06 Thread Bill Moseley
coding specifics for the ajax calls. It's the standard recommendation to write the code for non-ajax usage, then add that behavior on page load. And, then I divide my templates into small enough parts that can be used for ajax and non-ajax calls based on how the request comes in. -- Bill

Re: [Catalyst] $c->email

2007-01-07 Thread Bill Moseley
f8() for the body. Then pass an array reference to the "parts" part when calling $c->email. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catal

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

2007-01-08 Thread Bill Moseley
email templates. -- 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
; } search_options parses out the parameters from the request -- $option is basically: $options->{class}->search( $options->{criteria} ) kind of thing. Then ajax_search() does the query and uses a template to format for the auto-complete javascript. paged_list() is just a metho

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

2007-01-08 Thread Bill Moseley
7;d avoid > reinventing 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.ra

[Catalyst] Generating iCalendar

2007-01-08 Thread Bill Moseley
Test::Pod::Coverage 1.04 required for testing POD coverage t/pod...ok -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http:/

Re: [Catalyst] Generating iCalendar

2007-01-08 Thread Bill Moseley
ing modules that the CPAN mirror has tampered > with. Although in this case, gpg is just confused. Do you run CPAN as > root (you don't need to anymore)? I do run CPAN as root. What do I need to do -- setup sudo for CPAN? I was more bitching about the dependencies, of course.

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

2007-01-09 Thread Bill Moseley
might need to wrap 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.m

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

2007-01-12 Thread Bill Moseley
Catalyst::Plugin::Scheduler |grep yml $c->config->{scheduler}->{yaml_file} ||= $c->path_to('scheduler.yml'); is $APP_HOME/scheduler.yml. existence of a file called C in your application's home Looks like "scheduler.yml". -- Bill Moseley [EMAIL P

Re: [Catalyst] changing the port

2007-01-14 Thread Bill Moseley
cludes the port. It should pull the port from X-Forwarded-Host, IIRC. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive

Re: [Catalyst] changing the port

2007-01-14 Thread Bill Moseley
rs on your back-end Catalyst and see 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:

Re: [Catalyst] changing the port

2007-01-14 Thread Bill Moseley
w in the logs? I just started up my front/back server on my host "bumby" with the front end listening on 8080 (the back end listens to 18080). I added this to a template: uri = c.uri_for('/'); "uri = [$uri]\n" | stderr; And in my logs I have: uri = [http:

[Catalyst] Templates in the database

2007-01-18 Thread Bill Moseley
nd I have a crude "diff" view using Algorithm::Diff. I have a table that holds the history of the content and use triggers to write to it on update. Is this how you are (or would) do this? -- Bill Moseley [EMAIL PROTECTED] ___ Li

Re: [Catalyst] Templates in the database

2007-01-20 Thread Bill Moseley
ate_by integer REFERENCES person, CONSTRAINT one_current_template UNIQUE( path, current ) ); create index template_path ON template ( path ); create index template_current ON template ( current ); And maybe a "current_template" view class and overrid

Re: [Catalyst] Templates in the database

2007-01-20 Thread Bill Moseley
, and so on. And maybe a boolean to indicate 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.c

Re: [Catalyst] Templates in the database

2007-01-20 Thread Bill Moseley
ogged down by > all the historical data in the same table. I'm not too worried about that at this point. I've currently got about 500 templates. So if each template had 100 edits which seems unlikely) that's still a small table. Plu

Re: [Catalyst] memory usage of mod_perl process

2007-02-08 Thread Bill Moseley
I started out using a FastCGI setup 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.o

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

2007-02-08 Thread Bill Moseley
that. Are you hitting the database very hard? Complex 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://w

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

2007-02-09 Thread Bill Moseley
nt end server proxies the same path to the backend. 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

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

2007-02-13 Thread Bill Moseley
wn Template::Provider in keep in my App's lib directory: http://hank.org/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]

Re: [Catalyst] Session problems with IE and cookies

2007-02-28 Thread Bill Moseley
r work place. 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 [EMA

[Catalyst] Apache2::RequestIO::read: (70007) The timeout specified has expired

2007-02-28 Thread Bill Moseley
though the error log shows "File does not exist" seems like the request is being served. Anyway, just a bit odd so I'm wondering if anyone else is seeing things like this in their logs. Apache/2.0.54 (Debian GNU/Linux) mod_perl/2.0.2 Perl/v5.8.4 -- Bill Moseley [EMAIL PROTECTED]

Re: [Catalyst] Apache2::RequestIO::read: (70007) The timeout specified has expired

2007-02-28 Thread Bill Moseley
e_body() throw an error if a content-length header is found for GET requests? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://w

[Catalyst] Regex -- optional index.html

2007-03-01 Thread Bill Moseley
: yes Regex('^training/webcasts/webcast_data/(\d+)(/?index.html)?$') matches: ../186/index.html : yes ../186/foo.html : yes ../186/ : yes ../186 : yes -- Bill Moseley

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

2007-03-01 Thread Bill Moseley
h() method: Request = /training/webcasts/webcast_data/162/foo.html Checking [training/webcasts/webcast_data/162/foo.html] 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

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.ht

[Catalyst] Merging configs

2007-03-08 Thread Bill Moseley
ngs. Is the answer Hash::Merge? Or does Catalyst have anything to help here? -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-a

Re: [Catalyst] Merging configs

2007-03-09 Thread Bill Moseley
ey}; if ( ref $value eq 'HASH' ) { $config->{$key} ||= {}; $self->deep_merge( $config->{$key}, $value ); } else { $config->{$key} = $value; } } } -- Bill Moseley [EMAIL PROTECTED] __

Re: [Catalyst] Merging configs

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

Re: [Catalyst] Performance

2007-03-09 Thread Bill Moseley
s a bottle neck then optimization would be most welcome. -- 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] 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. >

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

2007-03-09 Thread Bill Moseley
gt; can't find the time 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.

Re: [Catalyst] context object in TT

2007-03-15 Thread Bill Moseley
e_vars { my ( $self, $c ) = @_; my $cvar = $self->config->{CATALYST_VAR}; defined $cvar ? ( $cvar => $c ) : ( c=> $c, base => $c->req->base, name => $c->config->{name} ) } -- Bill Moseley [EMAIL PROTECTED] _

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

2007-03-19 Thread Bill Moseley
e time. 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-archi

Re: [Catalyst] Help needed with Unicode

2007-03-20 Thread Bill Moseley
ng DBD::Pg's pg_enable_utf8? -- 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] Catalyst Exception received by e-mail?

2007-03-27 Thread Bill Moseley
e screen and on e-mail. 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.raw

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

2007-03-29 Thread Bill Moseley
the browser to ask for authentication. After all, 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 Listi

Re: [Catalyst] Componentised actions.

2007-03-29 Thread Bill Moseley
ivate actions. > > If the docs state 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 it

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

2007-03-29 Thread Bill Moseley
On Thu, Mar 29, 2007 at 12:40:51PM -0500, Dave Rolsky wrote: > On Thu, 29 Mar 2007, Bill Moseley wrote: > > >This always makes me wish for a 4xx code that could be returned to the > >client but not force the browser to ask for authentication. After > >all, the user is not

Re: [Catalyst] Re: HTML::FormFu and Rose::DB::Object?

2007-04-03 Thread Bill Moseley
a select list then the html/template editors can change that to a radio select if they like without changing how the form is defined. As for javascript, I only do limited form validation -- required fields, and so on. And I feel that's often done better unobtrusively, as they say. That&#

Re: [Catalyst] Re: HTML::FormFu and Rose::DB::Object?

2007-04-04 Thread Bill Moseley
('Email', 'email', 'This is required so we can send you promotional spam' ); field('Contact Phone', 'phone', 'Required so we can follow up why you didn't respond to the spam we s

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

2007-04-07 Thread Bill Moseley
nd STDOUT to /dev/null, and then call setsid(). It's interesting this is working for you with mod_perl if you are not doing 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 [E

Re: [Catalyst] internal redirect

2007-04-11 Thread Bill Moseley
eb document root is not the root of the file system. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.co

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

Re: [Catalyst] little syntax

2007-04-12 Thread Bill Moseley
% USE Dumper %] or other variations can 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-arch

Re: [Catalyst] HOWTO reference config settings from template

2007-04-12 Thread Bill Moseley
stderr %] Maybe your View isn't stuffing $c 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 arch

Re: [Catalyst] HOWTO reference config settings from template

2007-04-13 Thread Bill Moseley
guration settings. I'm 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] ___ Lis

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

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

2007-04-25 Thread Bill Moseley
tructure of the resulting page. 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/ca

Re: [Catalyst] Re: Catalyst videos from YAPC::Asia

2007-04-26 Thread Bill Moseley
ammers can do a lot of damage. I suspect you will be cursing it later when you have to go back and find all the places to add "| html" after the fact. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://

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

2007-04-27 Thread Bill Moseley
be to pass a comment that gets stuffed into the session (flash). -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive

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

2007-04-27 Thread Bill Moseley
for( $loc ) : $loc ), > ( $is_old_proto ? 302 : 303 ), > ); > } I was going to say "Quick! Make a plugin on CPAN" but then realized the above exceeds the line limit for Catalyst plugins. ;) -- Bill Moseley [EMAIL PROTECTED] ___ Li

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

2007-05-09 Thread Bill Moseley
hod = sub { ... } later: $self->$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/cat

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

2007-05-14 Thread Bill Moseley
lidation tools to not be specific to the web/HTML side of things. The HTML side of the forms are easy, anyway, and often require hand-customizing. That way the same "forms" can be used for more than just the web environment. -- Bill Moseley [EMAIL PROTECTED] _

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

2007-05-14 Thread Bill Moseley
xception that is not expected and I log the message and send the user a 500 and a message that they have been a very, very bad user. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/lis

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

2007-05-15 Thread Bill Moseley
under Catalyst: sub edit : Local { 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 ret

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

2007-05-15 Thread Bill Moseley
Processor 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 s

Re: [Catalyst] Encrypt /Decrypt URI

2007-05-18 Thread Bill Moseley
y should your application bother with using obfuscated ids? As far as the user is concerned 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

  1   2   >