[Zope] ZSQL Pluggable brains broke in later Zope, can't add instance attributes
Brad Clements
bkc@murkworks.com
Thu, 5 Jul 2001 13:37:08 -0400
On 5 Jul 2001, at 13:02, Chris McDonough wrote:
> Is eventday acquired or something?
>
Sorry, here's the full class, eventtime is an SQL column
class PackageEvent:
"""Package Event Pluggable Brain"""
def __init__(self):
"""initialize"""
self.eday = self.eventday()
# setattr(self,'eday',self.eventday())
# self.__dict__['eday'] = self.eventday()
def eventday(self):
return DateTime(apply(time.mktime,self.eventtime.tuple()[:3]+(0,0,0,0,0,-1)))