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

Changeset 1274

Show
Ignore:
Timestamp:
08/24/06 01:35:47
Author:
fumanchu
Message:

Made all imports absolute "just in case" for Python 2.5.

Files:

Legend:

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

    r1249 r1274  
    55import logging as _logging 
    66 
    7 from _cperror import HTTPError, HTTPRedirect, InternalRedirect, NotFound 
    8 from _cperror import WrongConfigValue, TimeoutError 
    9 import config 
    10  
    11 import _cptools 
     7from cherrypy._cperror import HTTPError, HTTPRedirect, InternalRedirect, NotFound 
     8from cherrypy._cperror import WrongConfigValue, TimeoutError 
     9from cherrypy import config 
     10 
     11from cherrypy import _cptools 
    1212tools = _cptools.default_toolbox 
    1313 
    14 import _cptree 
     14from cherrypy import _cptree 
    1515tree = _cptree.Tree() 
    16 from _cptree import Application 
    17 import _cpengine 
     16from cherrypy from _cptree import Application 
     17from cherrypy import _cpengine 
    1818engine = _cpengine.Engine() 
    19 import _cpserver 
     19from cherrypy import _cpserver 
    2020server = _cpserver.Server() 
    2121 
     
    148148    """ 
    149149    if traceback: 
    150         import _cperror 
     150        from cherrypy import _cperror 
    151151        msg += _cperror.format_exc() 
    152152    logfunc = config.get('log_function', _log_message) 
  • trunk/cherrypy/_cpserver.py

    r1219 r1274  
    3333            httpserver = conf('server.instance', None) 
    3434        if httpserver is None: 
    35             import _cpwsgi 
     35            from cherrypy import _cpwsgi 
    3636            httpserver = _cpwsgi.WSGIServer() 
    3737        if isinstance(httpserver, basestring): 
  • trunk/cherrypy/lib/cptools.py

    r1270 r1274  
    22 
    33import cherrypy 
    4 import http as _http 
     4from cherrypy import http as _http 
    55 
    66 
  • trunk/cherrypy/lib/profiler.py

    r1219 r1274  
    66You can profile any of your pages as follows: 
    77 
    8     from cherrypy.lib import profile 
     8    from cherrypy.lib import profiler 
    99     
    1010    class Root: 
  • trunk/cherrypy/test/helper.py

    r1253 r1274  
    2525import cherrypy 
    2626from cherrypy.lib import http, profiler 
    27 import webtest 
     27from cherrypy.test import webtest 
    2828 
    2929 
  • trunk/cherrypy/test/modpy.py

    r1249 r1274  
    3232import time 
    3333 
    34 import test 
     34from cherrypy import test 
    3535 
    3636 
     
    125125     
    126126    def _run(self, conf): 
    127         import webtest 
     127        from cherrypy import webtest 
    128128        webtest.WebCase.PORT = self.port 
    129129        print 
  • trunk/cherrypy/test/test.py

    r1266 r1274  
    1313import sys 
    1414import os, os.path 
    15 import webtest 
     15from cherrypy.test import webtest 
    1616import getopt 
    1717 
     
    5656        # helper must be imported lazily so the coverage tool 
    5757        # can run against module-level statements within cherrypy. 
    58         # Also, we have to do a relative import here, not 
    59         # "from cherrypy.test import helper", because the latter 
     58        # Also, we have to do "from cherrypy.test import helper", 
     59        # exactly like each test module does, because a relative import 
    6060        # would stick a second instance of webtest in sys.modules, 
    6161        # and we wouldn't be able to globally override the port anymore. 
    62         import helper 
     62        from cherrypy.test import helper 
    6363        webtest.WebCase.PORT = self.port 
    6464        print 
     
    267267         
    268268        if self.server == 'cpmodpy': 
    269             import modpy 
     269            from cherrypy.test import modpy 
    270270            m = modpy.ModPythonTestHarness(self.tests, self.server, 
    271271                                           self.protocol, self.port) 
     
    273273            m.run(conf) 
    274274        elif self.server == 'modpygw': 
    275             import modpy 
     275            from cherrypy.test import modpy 
    276276            m = modpy.ModPythonTestHarness(self.tests, self.server, 
    277277                                           self.protocol, self.port) 
  • trunk/cherrypy/test/test_caching.py

    r1263 r1274  
    1 import test 
     1from cherrypy.test import test 
    22test.prefer_parent_path() 
    33 
     
    6666 
    6767 
    68 import helper 
     68from cherrypy.test import helper 
    6969 
    7070class CacheTest(helper.CPWebCase): 
  • trunk/cherrypy/test/test_config.py

    r1096 r1274  
    11"""Tests for the CherryPy configuration system.""" 
    2 import test 
     2from cherrypy.test import test 
    33test.prefer_parent_path() 
    44 
     
    6464#                             Client-side code                             # 
    6565 
    66 import helper 
     66from cherrypy.test import helper 
    6767 
    6868class ConfigTests(helper.CPWebCase): 
  • trunk/cherrypy/test/test_conn.py

    r1264 r1274  
    1 import test 
     1from cherrypy.test import test 
    22test.prefer_parent_path() 
    33 
     
    4646 
    4747 
    48 import helper 
     48from cherrypy.test import helper 
    4949 
    5050class ConnectionTests(helper.CPWebCase): 
  • trunk/cherrypy/test/test_core.py

    r1272 r1274  
    11"""Basic tests for the CherryPy core: request handling.""" 
    22 
    3 import test 
     3from cherrypy.test import test 
    44test.prefer_parent_path() 
    55 
     
    390390#                             Client-side code                             # 
    391391 
    392 import helper 
     392from cherrypy.test import helper 
    393393 
    394394class CoreRequestHandlingTest(helper.CPWebCase): 
  • trunk/cherrypy/test/test_decodingencoding.py

    r1114 r1274  
    1 import test 
     1from cherrypy.test import test 
    22test.prefer_parent_path() 
    33 
     
    2929 
    3030 
    31 import helper 
     31from cherrypy.test import helper 
    3232 
    3333 
  • trunk/cherrypy/test/test_etags.py

    r1267 r1274  
    1 import test 
     1from cherrypy.test import test 
    22test.prefer_parent_path() 
    33 
     
    2929        }) 
    3030 
    31 import helper 
     31from cherrypy.test import helper 
    3232 
    3333class ETagTest(helper.CPWebCase): 
  • trunk/cherrypy/test/test_gzip.py

    r1114 r1274  
    1 import test 
     1from cherrypy import test 
    22test.prefer_parent_path() 
    33 
     
    3636 
    3737 
    38 import helper 
     38from cherrypy.test import helper 
    3939 
    4040europoundUtf8 = u'\x80\xa3'.encode('utf-8') 
  • trunk/cherrypy/test/test_http.py

    r1140 r1274  
    66""" 
    77 
    8 import test 
     8from cherrypy.test import test 
    99test.prefer_parent_path() 
    1010 
     
    4545 
    4646 
    47 import helper 
     47from cherrypy.test import helper 
    4848 
    4949class HTTPTests(helper.CPWebCase): 
  • trunk/cherrypy/test/test_objectmapping.py

    r1224 r1274  
    1 import test 
     1from cherrypy.test import test 
    22test.prefer_parent_path() 
    33 
     
    145145 
    146146 
    147 import helper 
     147from cherrypy.test import helper 
    148148 
    149149class ObjectMappingTest(helper.CPWebCase): 
  • trunk/cherrypy/test/test_proxy.py

    r1233 r1274  
    1 import test 
     1from cherrypy.test import test 
    22test.prefer_parent_path() 
    33 
     
    2929 
    3030 
    31 import helper 
     31from cherrypy.test import helper 
    3232 
    3333class ProxyTest(helper.CPWebCase): 
  • trunk/cherrypy/test/test_response_headers.py

    r1256 r1274  
    1 import test 
     1from cherrypy.test import test 
    22test.prefer_parent_path() 
    33 
     
    3030 
    3131 
    32 import helper 
     32from cherrypy.test import helper 
    3333 
    3434class ResponseHeadersTest(helper.CPWebCase): 
  • trunk/cherrypy/test/test_session.py

    r1232 r1274  
    1 import test 
     1from cherrypy.test import test 
    22test.prefer_parent_path() 
    33 
     
    5151    }) 
    5252 
    53 import helper 
     53from cherrypy.test import helper 
    5454 
    5555class SessionTest(helper.CPWebCase): 
  • trunk/cherrypy/test/test_sessionauthenticate.py

    r1114 r1274  
    1 import test 
     1from cherrypy.test import test 
    22test.prefer_parent_path() 
    33 
     
    2929 
    3030 
    31 import helper 
     31from cherrypy.test import helper 
    3232 
    3333class SessionAuthenticateTest(helper.CPWebCase): 
  • trunk/cherrypy/test/test_states.py

    r1231 r1274  
    44import time 
    55 
    6 import test 
     6from cherrypy.test import test 
    77test.prefer_parent_path() 
    88 
     
    6666 
    6767 
    68 import helper 
     68from cherrypy.test import helper 
    6969 
    7070class ServerStateTests(helper.CPWebCase): 
  • trunk/cherrypy/test/test_static.py

    r1209 r1274  
    1 import test 
     1from cherrypy.test import test 
    22test.prefer_parent_path() 
    33 
     
    5656        }) 
    5757 
    58 import helper 
     58from cherrypy.test import helper 
    5959 
    6060class StaticTest(helper.CPWebCase): 
  • trunk/cherrypy/test/test_tools.py

    r1261 r1274  
    33import gzip, StringIO 
    44import types 
    5 import test 
     5from cherrypy.test import test 
    66test.prefer_parent_path() 
    77 
     
    183183#                             Client-side code                             # 
    184184 
    185 import helper 
     185from cherrypy.test import helper 
    186186 
    187187 
  • trunk/cherrypy/test/test_tutorials.py

    r1249 r1274  
    1 import test 
     1from cherrypy.test import test 
    22test.prefer_parent_path() 
    33 
     
    55 
    66import cherrypy 
    7 import helper 
     7from cherrypy.test import helper 
    88 
    99 
  • trunk/cherrypy/test/test_virtualhost.py

    r1114 r1274  
    11 
    2 import test 
     2from cherrypy.test import test 
    33test.prefer_parent_path() 
    44 
     
    4646    }) 
    4747 
    48 import helper 
     48from cherrypy.test import helper 
    4949 
    5050class VirtualHostTest(helper.CPWebCase): 
  • trunk/cherrypy/test/test_wsgiapps.py

    r1260 r1274  
    1 import test 
     1from cherrypy.test import test 
    22test.prefer_parent_path() 
    33 
     
    5959    cherrypy.tree.graft(reversing_middleware(app), '/hosted/app2') 
    6060 
    61 import helper 
     61from cherrypy.test import helper 
    6262 
    6363 
  • trunk/cherrypy/test/test_xmlrpc.py

    r1172 r1274  
    1 import test 
     1from cherrypy.test import test 
    22test.prefer_parent_path() 
    33import xmlrpclib 
     
    6666 
    6767 
    68 import helper 
     68from cherrypy.test import helper 
    6969 
    7070class XmlRpcTest(helper.CPWebCase): 

Hosted by WebFaction

Log in as guest/cpguest to create tickets