Loading ...
Sorry, an error occurred while loading the content.

Re: [Cheetahtemplate-discuss] Docs: Calling superclass methods

Expand Messages
  • Tavis Rudd
    Hi Oleg, you re right. I have no idea why Mike wrote it like that and he can t remember himself. I ll update the document. The broken multi-page doc is my
    Message 1 of 2 , Feb 3, 2005
    • 0 Attachment
      Hi Oleg, you're right. I have no idea why Mike wrote it like that and he
      can't remember himself. I'll update the document. The broken multi-page
      doc is my fault.
      Cheers,
      Tavis

      On Mon, 31 Jan 2005, Oleg Broytmann wrote:

      > Hello! I am new user of Cheetah. It seems I am just in time - as a
      > Russian user I need #encoding koi8-r, and #encoding started to work only
      > since 0.9.16a2. Thank you! (-:
      >
      > There is a comment in the user guide, in the section "13.4 Calling
      > superclass methods":
      >
      > from Cheetah.Template import Template
      > from Cheetah.Servlet import Servlet
      > class MyClass(Template):
      > def awake(self, trans):
      > Servlet.awake(self, trans)
      > ... great and exciting features written by me ...
      >
      > [ @@MO: Need to test this. .awake is in Servlet, which is a superclass of Template. Do we
      > really need both imports? Can we call Template.awake? ]
      >
      > Well, I can assure you can! So the code should be just
      >
      > from Cheetah.Template import Template
      > class MyClass(Template):
      > def awake(self, trans):
      > Template.awake(self, trans)
      >
      > BTW, multipage user guide was generated badly - I can see only index,
      > content, and about pages.
      >
      > Oleg.
      > --
      > Oleg Broytmann http://phd.pp.ru/ phd@...
      > Programmers don't die, they just GOSUB without RETURN.
      >
      >
      > -------------------------------------------------------
      > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
      > Tool for open source databases. Create drag-&-drop reports. Save time
      > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
      > Download a FREE copy at http://www.intelliview.com/go/osdn_nl
      > _______________________________________________
      > Cheetahtemplate-discuss mailing list
      > Cheetahtemplate-discuss@...
      > https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
      >


      -------------------------------------------------------
      This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
      Tool for open source databases. Create drag-&-drop reports. Save time
      by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
      Download a FREE copy at http://www.intelliview.com/go/osdn_nl
      _______________________________________________
      Cheetahtemplate-discuss mailing list
      Cheetahtemplate-discuss@...
      https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
    Your message has been successfully submitted and would be delivered to recipients shortly.