19 Apr
1999
19 Apr
'99
10:15 p.m.
On 19 Apr 1999, Kent Polk wrote:
Question #2: ------------
How do I point a DTML method at the correct object ?
summary_dtml = """<!--#in colNames --> <!--#var id-->, <!--#var title--><BR> <!--#/in --> """
def summary (self): return HTML(self.summary_dtml)
psys.example.XMP.SAMPLES.colNames() ['ID', 'SAMPLE', 'DATE', 'VIAL', 'SAMPLE', 'TYPE', 'PROJ', 'COMMNT', 'PNTR']
(I obviously don't have things wired up correctly...)
I am not sure I understand what you want to do but one thing that might help (assuming you are running the above from ZPublisher) is to replace: def summary (self): return HTML(self.summary_dtml) with summary=HTML(self.summary_dtml) in your class definition. I hope it helps Pavlos