DTML documents as properties of python product classes
27 Feb
2001
27 Feb
'01
1:51 a.m.
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
9168
Age (days ago)
9168
Last active (days ago)
0 comments
1 participants
participants (1)
-
Keith Alperin