[PATCH] buglet with attachements

Vladimir Prus ghost at cs.msu.su
Thu Jul 3 12:52:06 UTC 2003


I've just updated to CVS HEAD of QMTest, and have troubles with attachements.
I get stacktrace saying that TemporaryAttachmentStore instances has no __index 
field. 

The AttachmentStore.GetIndex is called from qm/fields.py (line 1246), but I 
can't find any code that sets __index filed. The problematic place is the 
only place where GetIndex is called.

Fixing that, I get exception on saving test. The attached patch fixes both 
problems.

Changelog entry:

* qm/attachment.py
  (AttachmentStore.GetIndex): Remove.

* qm/fields.py
  (SetField.FormatValueAsHtml): Don't call GetIndex()

* qm/test/clases/xml_database.py
   (XMLDatabase. __MakeDataFilePath): Call some member on self, not on
   nonexisted self.__database.

- Volodya

-------------- next part --------------
A non-text attachment was scrubbed...
Name: attachments.diff
Type: text/x-diff
Size: 2213 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/qmtest/attachments/20030703/82ea635a/attachment.diff>


More information about the qmtest mailing list