Commit 32080726 authored by mitshel's avatar mitshel
Browse files

Fix error in wsgi interface (dirty use of the class opdsClient in the...

Fix error in wsgi interface (dirty use of the class opdsClient in the multithreaded WSGI application)
parent 2385ac9d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13,13 +13,13 @@ import zipf

cfg=sopdscfg.cfgreader()
zipf.ZIP_CODEPAGE=cfg.ZIP_CODEPAGE
sopds = sopdscli.opdsClient(cfg,sopdscli.modeWSGI)

def app(environ, start_response):
   user = None
   if 'REMOTE_USER' in environ:
      user = environ['REMOTE_USER']

   sopds = sopdscli.opdsClient(cfg,sopdscli.modeWSGI)
   sopds.resetParams()
   sopds.parseParams(environ)
   sopds.setUser(user)
+61 −63
Original line number Diff line number Diff line
@@ -748,7 +748,7 @@ class opdsClient():

    def make_response(self):
        self.opdsdb.openDB()

        if self.opdsdb.errcode==0 or self.opdsdb.errcode==4:
            if self.type_value==0:
               self.response_main()
            elif self.type_value==1:
@@ -812,5 +812,3 @@ class opdsClient():
        
        self.opdsdb.closeDB()