On Fri, Sep 08, 2006 at 09:43:54PM -0000, cefstat wrote: > > I deployed today a preliminary version of a TG application on a Debian > system with Python 2.3.5. Unfortunately, request urls of the form > .../page?id=1 do not work. The problem is in the function "to_kw" in > turbogears/util.py. In particular, the following > > kw.update(izip(islice(argnames, start, len(argnames) - len(defaults)), > args)) > > does not work because in Python 2.3 update can not take an iterable as > argument. This can be easily corrected by using > > kv_pairs = izip(islice(argnames, start, len(argnames) - len(defaults)), > args) > for k,v in kv_pairs: > kw[k] = v
Thanks! I got the same problem this Thursday. My project did work on my laptop with 2.4 but it didn't on a development machine with 2.3. I thoght I'll have to investigate that next week, but now I know the answer =) -- Timur Izhbulatov OILspace, 26 Leninskaya sloboda, bld. 2, 2nd floor, 115280 Moscow, Russia P:+7 495 105 7245 + ext.205 F:+7 495 105 7246 E:[EMAIL PROTECTED] Building Successful Supply Chains - One Solution At A Time. www.oilspace.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 -~----------~----~----~----~------~----~------~--~---

