I'm currently updating and app from 0.9a1 to 0.9a7 and I'm coming
across an odd traceback (appended to the end of the email).  according
to tg-admin info 0.9a1 uses Kid 0.9 and 0.9a7 uses 0.9.2.

There are only a few pages that display this error and I can't work
out why it's happening for some controller methods and not others.

Page handler: <bound method SectorTool.index of
<rdstool.control.sectors.SectorTool instance at 0x20d6d00>>
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py",
line 105, in _run
    self.main()
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py",
line 254, in main
    body = page_handler(*virtual_path, **self.params)
  File "<string>", line 3, in index
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/TurboGears-0.9a7-py2.4.egg/turbogears/controllers.py",
line 331, in expose
    output = database.run_with_transaction(
  File "<string>", line 5, in run_with_transaction
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/TurboGears-0.9a7-py2.4.egg/turbogears/database.py",
line 245, in so_rwt
    retval = func(*args, **kw)
  File "<string>", line 5, in _expose
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/TurboGears-0.9a7-py2.4.egg/turbogears/controllers.py",
line 348, in <lambda>
    mapping, fragment, *args, **kw)))
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/TurboGears-0.9a7-py2.4.egg/turbogears/controllers.py",
line 382, in _execute_func
    return _process_output(output, template, format, content_type,
mapping, fragment)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/TurboGears-0.9a7-py2.4.egg/turbogears/controllers.py",
line 74, in _process_output
    fragment=fragment)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/TurboGears-0.9a7-py2.4.egg/turbogears/view/base.py",
line 132, in render
    return engine.render(**kw)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/TurboKid-0.9.7-py2.4.egg/turbokid/kidsupport.py",
line 140, in render
    tclass = self.load_template(template)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/TurboKid-0.9.7-py2.4.egg/turbokid/kidsupport.py",
line 110, in load_template
    mod = _compile_template(package, basename, tfile, classname)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/TurboKid-0.9.7-py2.4.egg/turbokid/kidsupport.py",
line 14, in _compile_template
    mod = kid.load_template(tfile, name=classname)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.9.2-py2.4.egg/kid/__init__.py",
line 125, in load_template
    mod = importer._create_module(code, name, filename, store=cache, ns=ns)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.9.2-py2.4.egg/kid/importer.py",
line 56, in _create_module
    exec code in mod.__dict__
  File "/Users/splee/tgprojects/rdstool/rdstool/templates/sectors/index.py",
line 17, in ?
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.9.2-py2.4.egg/kid/template_util.py",
line 43, in get_base_class
    cls = kid.load_template(path).Template
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.9.2-py2.4.egg/kid/__init__.py",
line 120, in load_template
    code = compiler.compile(fo, filename, encoding)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.9.2-py2.4.egg/kid/compiler.py",
line 48, in compile
    py = kid.parser.parse(source, encoding, filename=filename)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.9.2-py2.4.egg/kid/parser.py",
line 45, in parse
    parser = KidParser(document(source, encoding=encoding,
filename=filename), encoding)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.9.2-py2.4.egg/kid/pull.py",
line 58, in document
    file = open_resource(file, 'rb')
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.9.2-py2.4.egg/kid/util.py",
line 25, in open_resource
    (scheme, rest) = splittype(uri)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/urllib.py",
line 900, in splittype
    match = _typeprog.match(url)
TypeError: expected string or buffer

-- 
Lee McFadden

blog: http://www.splee.co.uk
work: http://fireflisystems.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to