Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 586

Show
Ignore:
Timestamp:
09/01/05 20:25:25
Author:
mikerobi
Message:

fixed a small bug in _cpcgifs, that was introduced in the last commit

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/_cpcgifs.py

    r585 r586  
    1111        self.__local = local() 
    1212        self.__local.value = value 
     13     
     14    def setValue(self, value): 
     15        self.__local.value = value 
    1316 
    1417    def __int__(self): 
     
    2023    def __str__(self): 
    2124        return str(self.__local.value) 
    22      
     25 
     26cgi.maxlen = LocalInt(0) 
     27 
    2328class FieldStorage(cgi.FieldStorage): 
    2429    def __init__(self, *args, **kwds): 
    2530        maxlen = cherrypy.config.get('server.maxRequestSize') 
    26         cgi.maxlen = LocalInt(maxlen) 
    27          
     31        cgi.maxlen.setValue(maxlen) 
    2832        try: 
    2933            cgi.FieldStorage.__init__(self, *args, **kwds) 

Hosted by WebFaction

Log in as guest/cpguest to create tickets