4 Mar
1999
4 Mar
'99
5:32 p.m.
On Thu, 4 Mar 1999, Michel Pelletier wrote:
When your debugging your DTML, it's a pain to keep deleting and creating new instances of your object in order to load the new dtml files off of the disk. This function comes in handy:
def refresh_docs(self, REQUEST): """ refresh documents from disk (for debug purposes) """
for id,title in self.defaultDocs: try: self._delObject(id) except: pass try: self.defaultDocFile(id, title, id) except: pass return self.manage_main(self, REQUEST)
I think Skip provided a better way to deal with this, but I am not sure if it has made it in the official DocumentTemplate release. Pavlos