Browse Source

In some cases it's necessary to run ZSI in a python environment where

threading is not available, such as

    http://www.freebsd.org/cgi/url.cgi?ports/www/mod_python/pkg-descr

Attached is a patch which addresses this issue for ZSI.
main
Rich Salz 20 years ago
parent
commit
8493119604
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      XMLSchema.py

+ 10
- 1
XMLSchema.py View File

@@ -15,11 +15,20 @@
ident = "$Id$"

import types, weakref, sys
from threading import RLock
from Namespaces import XMLNS
from Utility import DOM, DOMException, Collection, SplitQName, basejoin
from StringIO import StringIO

# If we have no threading, this should be a no-op
try:
from threading import RLock
except ImportError:
class RLock:
def acquire():
pass
def release():
pass

#
# Collections in XMLSchema class
#


Loading…
Cancel
Save