Thank you so much for your response. Unfortunately, this didn't seem to work. If I comment out the last line of the function (return self.vote_results(self, self.REQUEST)) and restart Zope, then the product loads successfully. I also tried the following variations: return self.vote_results(self, REQUEST) and return self.vote_results(self) neither seemed to work. Any more help that someone could provide would be GREATLY appreciated. Thanks again, Keith -----Original Message----- From: Randall F. Kern [mailto:randy@spoke.net] Sent: Monday, February 26, 2001 8:38 PM To: Keith Alperin; Zope@zope.org Subject: RE: [Zope] DTML documents as properties of python product classes That message probably means there is a syntax error. If you select your product in the control panel, it will show you the details. As for using the DTML document, you will need to call it at the end of your function: return self.vote_results(self, self.REQUEST) -Randy -----Original Message----- From: Keith Alperin [mailto:KAlperin@ignitemedia.com] Sent: Monday, February 26, 2001 5:51 PM To: Zope@zope.org Subject: [Zope] DTML documents as properties of python product classes Greetings Zope folks. I am a bit of a newbie here and am attempting to use a DTML document as a property of a class of a python product. To do so, I have done the following (using the TutorialPoll as my example): #...snip vote_results = Globals.HTMLFile("vote_results", globals()) def castVote(self, choice): "Votes for a choice" vote_count = self.getVotesFor(choice) self._votes[choice] = vote_count + 1 return self.vote_results #the rest of my class Upon restarting Zope, I get "(This object from the TutorialPoll product is broken!)" next to my object in the management interface. Any incite that any of you can provide would be most appreciated. Thanks so much, Keith R. Alperin