Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #245 (closed defect: fixed)

Opened 14 years ago

Last modified 13 years ago

SelectField causes crash, claims no attribute 'options'

Reported by: anonymous Owned by: anonymous
Priority: normal Milestone: 0.9
Component: TG Widgets Version:
Severity: normal Keywords:
Cc:

Description

This has been happening in the last several nightly tarballz. It happens in the widget browser too...

Here's the traceback (note it still does this even if you do provide it with options):

Traceback (most recent call last):

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py", line 271, in run

main()

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py", line 502, in main

body = page_handler(*args, cherrypy.request.paramMap)

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/TurboGears-0.9a0dev_r341-py2.4.egg/turbogears/controllers.py", line 196, in newfunc

html, *args, kw)

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/TurboGears-0.9a0dev_r341-py2.4.egg/turbogears/database.py", line 174, in run_with_transaction

retval = func(*args, kw)

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/TurboGears-0.9a0dev_r341-py2.4.egg/turbogears/controllers.py", line 225, in _execute_func

return _process_output(tg_format, output, html)

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/TurboGears-0.9a0dev_r341-py2.4.egg/turbogears/controllers.py", line 60, in _process_output

output = view.render(output, tg_format, template=template)

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/TurboGears-0.9a0dev_r341-py2.4.egg/turbogears/view.py", line 107, in render

return t.serialize(encoding=defaultencoding, output=format, fragment=fragment)

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/init.py", line 232, in serialize

return serializer.serialize(self, encoding, fragment)

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/serialization.py", line 51, in serialize

text = list(self.generate(stream, encoding, fragment))

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/serialization.py", line 149, in generate

for ev, item in self.apply_filters(stream):

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/serialization.py", line 77, in balancing_filter

for ev, item in stream:

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/pull.py", line 203, in _coalesce

for ev, item in stream:

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/filter.py", line 21, in transform_filter

for ev, item in apply_matches(stream, template, templates, apply_func):

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/filter.py", line 31, in apply_matches

item = stream.expand()

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/pull.py", line 95, in expand

for ev, item in self._iter:

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/pull.py", line 164, in _track

for p in stream:

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/pull.py", line 203, in _coalesce

for ev, item in stream:

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/TurboGears-0.9a0dev_r341-py2.4.egg/turbogears/toolbox/widgets.py", line 144, in _pull File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/filter.py", line 21, in transform_filter

for ev, item in apply_matches(stream, template, templates, apply_func):

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/filter.py", line 25, in apply_matches

for ev, item in stream:

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/pull.py", line 164, in _track

for p in stream:

File "/Library/Frameworks/Python?.framework/Versions/2.4/lib/python2.4/site-packages/kid-0.8-py2.4.egg/kid/pull.py", line 203, in _coalesce

for ev, item in stream:

File "<string>", line 33, in _pull

AttributeError?: 'SelectField?' object has no attribute 'options'

Change History

comment:1 Changed 13 years ago by alberto

  • Status changed from new to closed
  • Resolution set to fixed

This ticket addresses the old API, this is is working fine in the new one

Note: See TracTickets for help on using tickets.