Hi guys

Running nosetests with last version from both branches, I am getting 4
failures. They all have these in common:

==================
[cut]

  file "d:\turbogears\turbogears\controllers.py", line 45, in _process_output
    for i in turbogears.config.get("tg.include_widgets", []):
typeerror: iteration over non-sequence
==================


I have checked the test_include_widgets, from
test_form_controllers.py, and came to this patch:


def test_include_widgets():
    "Any widget Can be included everywhere by  setting tg.include_widgets"
    root = cherrypy.root
    turbogears.config.update({"global":{"tg.include_widgets" :
["turbogears.mochikit"]}})
    testutil.createRequest("/")
-    turbogears.config.update({"global":{"tg.include_widgets" : None}})
+    turbogears.config.update({"global":{"tg.include_widgets" : []}})
    print cherrypy.response.body[0]
    assert "MochiKit.js" in cherrypy.response.body[0]



Should this patch be applied ? Another solution would be to really
delete "tg.include_widgets" from the global dictionary, but I am not
sure if it is possible.


Cheers,

Roger

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to