Kate Legere wrote at 2006-12-9 13:54 -0500:
Module None, line 45, in copy_of_stats_output_branch <PythonScript at copy_of_stats_output_branch> Line 45
for j in self.sql.sqlGetStatDetailsSum(date1=i.date, branch1=i.branch, category1=i.category, timeCheck1=k):
if str(j.sum_renewals)== 'None': line 45 --> j.sum_renewals = 0
The rows in "ZSQL Method" results are special objects ("Record.Record" instances). They only allow assignment to existing attributes. Trying to assign to a non existing attribut results in an "AttributeError". The problem you report, however, does not seem to come from the code you quote. Please always provide full error information in your problem reports. This includes the full traceback, the error type and error value. -- Dieter