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
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
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
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
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
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
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
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
';
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
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
http://callistocms.com v http://w.moreover.com/
hmmm
--
aaron ross . alias i, inc
email . [EMAIL PROTECTED]
phone . 215 545 6428
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
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
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
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
));
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
= $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
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
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
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
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
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
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
23 matches
Mail list logo