Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > ISAPI filter

Reply
Thread Tools

ISAPI filter

 
 
Chris Curvey
Guest
Posts: n/a
 
      12-04-2006
Hi all,

I'm trying to write an ISAPI filter in Python, using the examples that
come in the "isapi" directory of the win32com package. The
installation program itself runs fine, but when I examine the
properties of my web server, my filter has a big red down arrow next to
it. But I can't seem to figure out where I should be looking to find
the trouble. If anyone can point me to the right place (or see an
obvious error in the code below), I'd appreciate it.

-Chris

from isapi import isapicon, threaded_extension
from isapi.simple import SimpleFilter
import sys
import traceback
import urllib

################################################## ########################
class ImageProtectFilter(SimpleFilter):
"Image Protection Filter"
filter_flags = isapicon.SF_NOTIFY_AUTHENTICATION

def HttpFilterProc(self, fc):
return isapicon.SF_STATUS_REQ_HANDLED_NOTIFICATION

################################################## #######################
# The entry points for the ISAPI filter.
def __FilterFactory__():
return ImageProtectFilter()

if __name__=='__main__':
# If run from the command-line, install ourselves.
from isapi.install import *
params = ISAPIParameters()
# Setup all filters - these are global to the site.
params.Filters = [
FilterParameters(Name="ImageProtectFilter",
Description=ImageProtectFilter.__doc__),
]
HandleCommandLine(params)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ISAPI filter or http module Guoqi Zheng ASP .Net 10 01-27-2005 04:00 PM
Using ISAPI filter with .net for URL Rewriting Jon Maz ASP .Net 2 09-30-2004 02:04 PM
How do use change the default http handler in ASP,NET similar to ISAPI filter ? Anonieko Ramos ASP .Net 0 05-12-2004 11:18 AM
Framework 1.1 upgrade and ISAPI Filter Change Not Working Jeremy ASP .Net 1 08-29-2003 04:33 PM
ASP.NET and custom ISAPI filter authentication Michael Shutt ASP .Net 0 06-26-2003 02:31 PM



Advertisments