Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 62420 Details for
Bug 97638
dev-python/mod_python - ImportError: No module named _apache
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
testcase
test.py (text/plain), 780 bytes, created by
Martin Mokrejš
on 2005-07-01 10:50:46 UTC
(
hide
)
Description:
testcase
Filename:
MIME Type:
Creator:
Martin Mokrejš
Created:
2005-07-01 10:50:46 UTC
Size:
780 bytes
patch
obsolete
>#! /usr/bin/python > >from mod_python import apache, util >import threading >import os > >def run(request): > try: > os.system("ls") > x = file("/tmp/test", "w") > x.write("Writing! look at me!") > x.close() > except Exception, e: > request.write("Oh no, exception in thread! " + str(e) + "\n") > >def handler(request): > > request.content_type = "text/plain" > request.send_http_header() > > > thread = threading.Thread(target=run, args=(request,)) > thread.start() > thread.join() > > try: > x = file("/tmp/test", "w") > x.write("Writing! look at me!") > request.write("Wrote to file") > x.close() > except Exception, e: > request.write("Oh no, exception! " + str(e) + "\n") > > return apache.OK >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 97638
: 62420