<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1607" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=448520416-14042008><FONT size=2>I've recently upgraded my Zope
version from 2.7.6 to 2.9.8. I've recently discovered that older File objects
are generating an AttributeError: alt whenever I call manage_changeProperties()
on those File object instances. I'm aware of the change to
lib/python/OFS/Image.py that removed the alt class attr from the File class. I
thought my File objects would have automatically updated too but, apparently
not. I just tried doing the following:</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><SPAN class=448520416-14042008><FONT face=LucidaGrande size=2>
<P>objs = context.ZopeFind(context.this(), obj_metatypes=['File'],
search_sub=1)</FONT></SPAN></P></DIV><SPAN class=448520416-14042008>
<P align=left><FONT size=2>for k,v in objs:<BR><SPAN
class=448520416-14042008> </SPAN>if hasattr('alt',v):<BR><SPAN
class=448520416-14042008>
</SPAN>delattr('alt',v)</FONT></P></BLOCKQUOTE>
<P dir=ltr align=left><SPAN class=448520416-14042008><FONT size=2>The above code
didn't seem to do anything to fix the issue. Any suggestions would be greatly
appreciated.</FONT></SPAN></P>
<P dir=ltr align=left><SPAN class=448520416-14042008><FONT
size=2>Sincerely,</FONT></SPAN></P>
<P dir=ltr align=left><SPAN class=448520416-14042008><FONT size=2>Tom
Palermo</FONT></SPAN></P>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"></SPAN> </DIV>
<DIV><SPAN class=448520416-14042008><FONT
size=2></FONT></SPAN> </DIV></BODY></HTML>