[Zope3-dev] Bogus change to zope.app.rdb

Steve Alexander steve@cat-box.net
Fri, 04 Jul 2003 15:35:52 +0300


Here's a recent checkin to the zope.app.rdb package.

http://www.codeworks.lt/zope3-checkins/%3C200307032246.h63Mklk01481@cvs.baymountain.com%3E

The checkin is bogus for a number of reasons.

* The change was made without an accompanying unit test to demonstrate 
the bug that was being fixed. This is very bad, as a maintainer of the 
code now has no idea why the code is more complex than necessary.

* The use of try: except: TypeError is way too broad. There could be 
TypeErrors inside the operation of a converter. This would give very odd 
results, and would hide errors.

* The question in comments in the code is:

+## XXX Geez! This was badly broken for me, and srichter was not
+## around to explain what this code is supposed to do when
+## theres only one row/one column on the result.

Why should a one-item row or column be a different type than a mult-item 
row or column? In either case they should be sequences. There should be 
no special case for one-item rows or one-item columns.


This checkin is bogus. Please revert the change until at the very least 
you can provide a unit test for it.

--
Steve Alexander