[ZCM] [ZC] 1097/ 1 Request "ReStructuredText Document lacks __call__() method"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Mon Oct 27 13:10:36 EST 2003


Issue #1097 Update (Request) "ReStructuredText Document lacks __call__() method"
 Status Pending, Zope/feature low
To followup, visit:
  http://zope.org/Collectors/Zope/1097

==============================================================
= Request - Entry #1 by JeffK on Oct 27, 2003 1:10 pm

When using CompositePage, ZReST documents used as slots render their source text, not the rendered html. It would be useful and consistent to have RestructuredText Documents behave like pagetemplates, scripts, images, etc. in this context.

hathawsh (when asked): "My guess is that ZReST has a __str__ method and an index_html method but not a __call__ method. If one were added, it would work."

Adding __call__ to ZRest is apparently not as simple as imitating the __str__ method. This doesn't change the behavior:

    def __str__(self):
        ''' Stringfy .. return the source
        '''
        return self.quotedHTML(self.source)

    def __call__(self):
        ''' Stringfy .. return the source
        '''
        return self.quotedHTML(self.source)



==============================================================




More information about the Zope-Collector-Monitor mailing list