[Zope] Sollution: len() of unsized object error and ZSQL question (sum(amount))