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

1528Re: [Cheetahtemplate-discuss] #set global

Expand Messages
  • Mike Orr
    Oct 2, 2002
      On Tue, Oct 01, 2002 at 06:24:33PM -0600, Mike Warren wrote:
      > iron@... (Mike Orr) writes:
      >
      > > You can also put $searchList in the template to see what the searchList
      > > contains. The first item should be the dictionary of globals (i.e., it
      > > should have a 'mike' key).
      >
      > I just get ``[{}, <Cheetah.Parser.GenTemplate instance at
      > 0x844bbec>]'' if I put ``$searchList'' in my included
      > template.

      Sure enough, the included file is not picking up the main searchList.
      I added $searchList in the main template and labels above each of them.
      I'll look at it some more tonight. In the meantime, maybe Tavis will
      have some insight.

      Main searchList:
      [{'newswire': <MyClass.MyOtherClass instance at 0x8245afc>},
      <__main__.main instance at 0x81346d4>]

      <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
      <html>
      <head>
      </head>

      <body text="black" link="blue" vlink="blue" alink="#9999ff"
      leftmargin="0" marginheight="0" marginwidth="0"
      topmargin="0">

      <!-- head.tmpl -->

      Included searchList:
      [{}, <Cheetah.Parser.GenTemplate instance at 0x824ab94>]

      I think this is supposed to be identical to the main searchList, but
      the MyOtherClass instance is also missing, and the 'self' is different.

      --
      -Mike (Iron) Orr, iron@... (if mail problems: mso@...)
      http://iron.cx/ English * Esperanto * Russkiy * Deutsch * Espan~ol


      -------------------------------------------------------
      This sf.net email is sponsored by:ThinkGeek
      Welcome to geek heaven.
      http://thinkgeek.com/sf
      _______________________________________________
      Cheetahtemplate-discuss mailing list
      Cheetahtemplate-discuss@...
      https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
    • Show all 10 messages in this topic