Re: Application design patterns

2003-07-24 Thread Aaron Ross
Hi Eric, class. What I'd like is to have my model (as in MVC) objects reuse the process or maybe even server shared objects without doing any of these: 1. Using a singleton utility class 2. Needing to pass objects to model objects' new() in teh controllers 3. Instantiating the objects in

Re: mod_perl PerlTransHandler weirdness

2003-06-20 Thread Aaron Ross
this functionality? I don't think mod_rewrite applies, since the tests are too complicated, but would stand corrected if somebody knows different... I posted this to london.pm earlier and had no joy. /joel, getting a bit desperate. -- Aaron Ross company . Alias I, Inc mail . 10 East

Re: trouble with using $r-lookup_uri()

2003-05-31 Thread Aaron Ross
my $uri = $r-uri; my $subr = $r-lookup_uri($uri); Is this recursing? the subrequest will run all phases but the content handler, so i would think you'll need to add return unless $r-is_main(); or something like it at the beginning of the routine. -- Aaron

Re: Mapping to location /

2002-06-12 Thread Aaron Ross
it. Would Files *.phtml /Files do the trick? -- Aaron Ross . Alias I, Inc. email . [EMAIL PROTECTED] web . www.alias-i.com office . 215 545 6428 mobile . 610 517 2905

RE: MVC advice..?

2002-05-29 Thread Aaron Ross
Is there a neat way of dynamically loading in the appropriate control subclass? Something proven and widely used. For what it's worth, I use the eval trick too. Although it may seem a little clunky, I believe it is proven and widely used. The DBI.pm module uses code like this to load in the

Re: Berkeley DB 4.0.14 not releasing lockers under mod_perl

2002-03-21 Thread Aaron Ross
I'm testing with the Perl script below, with the filename ending .mperl (which, in my configuration, causes it to run as a mod_perl registry script). I would re-write it as a handler and see if Apache::Registry is partly to blame. hth, aaron

Re: Berkeley DB 4.0.14 not releasing lockers under mod_perl

2002-03-21 Thread Aaron Ross
I'm testing with the Perl script below, with the filename ending .mperl (which, in my configuration, causes it to run as a mod_perl registry script). I would re-write it as a handler and see if Apache::Registry is partly to blame. I tried doing it as a handler, using the

Re: inheritance and Apache::Request

2002-02-15 Thread Aaron Ross
sub new { my ($class, $r) = @_; return bless { r = Apache::Request-new($r), }, $class; } or sub new { my ($class,$r) = @_; my $self = $class-SUPER::new($r); # do your own init ... return $self } TMTOWTDI, aaron -- aaron

Re: Multiple authentication methods

2002-02-13 Thread Aaron Ross
'; eval { require $module; }; return $@ ? 1 : 0; } 1; __END__ (darren) -- Never attribute to malice that which is adequately explained by incompetence. -- Napolean Bonaparte -- aaron ross . alias intelligence, inc email . [EMAIL PROTECTED] phone . 215

Re: Multiple authentication methods

2002-02-12 Thread Aaron Ross
to return DECLINED for the second to ever see the request. You may need a simple AuthHandler that always fails at the end. Try AuthenSmb, DECLINED or OK, try AuthSybase, DECLINED or OK, then AuthFailed, always returned FORBIDDEN. HTH, aaron -- aaron ross . alias intelligence, inc email

[OT] callisto software graphics

2002-02-07 Thread Aaron Ross
http://callistocms.com v http://w.moreover.com/ hmmm -- aaron ross . alias i, inc email . [EMAIL PROTECTED] phone . 215 545 6428

Re: [OT] callisto software graphics

2002-02-07 Thread Aaron Ross
It just shows off the power of Orange... i, for one, believe in the power of orange. Nanoware...http://www.nanoware.org/ can i place a request for some orange nanoware? -- aaron ross . alias i, inc email . [EMAIL PROTECTED] phone . 215 545 6428

Re: RFC: DBI::Prof

2000-11-28 Thread Aaron Ross
On Tue, 28 Nov 2000, Stas wrote: possible SQL calls manually, so I wrote this simple profiler. Take a look and tell me if you think it worths releasing on CPAN... Definitely release it! It is a very elegant solution to a problem that I'm guessing many of us have dealt with. I've always

Re: premature TCP termination

2000-11-13 Thread Aaron Ross
at a time earlier than now, [EMAIL PROTECTED] wrote: Hi, I wonder if there is some sort of notification my module can receive if the user has terminated HTTP transaction(ie dowloading of a search result), by closing TCP link, or the Apache's connection has timed out... URLs, pointers would

Re: Apache::ASP HTTP's validation model

2000-02-12 Thread Aaron Ross
hi Dmitry! Wouldn't it be great it someone came up with a general solution for this... some kind of logical class from which you could inherit and implement the necessary methods. There was an interesting thread about this problem with Mason. I'm sure it's come up before with ASP. The

Re: $r-content_type clobbering outgoing headers

2000-02-10 Thread Aaron Ross
)); Thanks, Tim Tompkins -- Programmer / IS Technician http://www.arttoday.com/ - Original Message - From: Aaron Ross [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 10, 2000 10:16 AM Subject: $r-content_type clobbering

Re: $r-content_type clobbering outgoing headers

2000-02-10 Thread Aaron Ross
= $r-content_type; return -1 if ((-e $r-finfo) $ct ($ct !~ m|^text/|i)); Thanks, Tim Tompkins -- Programmer / IS Technician http://www.arttoday.com/ - Original Message - From: Aaron Ross [EMAIL PROTECTED] To: [EMAIL

$r-content_type clobbering outgoing headers

2000-02-10 Thread Aaron Ross
Hi! I have an access handler that uses $r-headers_out-add to add a set-cookie header: $r-headers_out-add("Set-cookie"=$sesc); If i try to access this in my ContentHandler, actually HTML::Mason, i find a strange problem: Calling $r-content_type wipes out the header! From the

Re: Apach::Session with Sybase?

2000-02-09 Thread Aaron Ross
hi David! i remember that i couldn't get Sybase to work with Apache::Session b/c the prepare statements use placeholders. you cannot use placeholders with a text field in sybase. from the DBD::Sybase docs: Note that IMAGE or TEXT datatypes can not be passed as parameters when

CGI::Cookie parse

2000-02-04 Thread Aaron Ross
Hi! I'm trying to write an AccessHandler. I'm using CGI::Cookie to, you got it, create and parse Cookies. However, I'm getting an error that I don't totally understand. ( This is mod_perl related... just hold on. ) If i call CGI::Cookie-parse($r-headers_in-get('Cookie')); I will

Re: CGI::Cookie parse

2000-02-04 Thread Aaron Ross
Thanks for your help! I'll look at Apache::Cookie, too. Although I don't really see the big difference in simplicity. Aaron On Fri, 4 Feb 2000, Aaron Ross wrote: Hi! I'm trying to write an AccessHandler. I'm using CGI::Cookie to, you got it, create and parse Cookies. However, I'm

403 Custom Response?

2000-01-31 Thread Aaron Ross
Hi! I can't get Apache::AuthCookie to work without causing a login box to popup. I'm hoping someone else has had this problem and can help me clean up my configuration. can anyone point me to configuration directives that might be causing this problem? Here is my .htaccess file: # Protect

Re: 403 Custom Response?

2000-01-31 Thread Aaron Ross
hi Gerald! you rock thanks, aaron Hi! I can't get Apache::AuthCookie to work without causing a login box to popup. I'm hoping someone else has had this problem and can help me clean up my configuration. can anyone point me to configuration directives that might be