Traceback (most recent call last):
  File "/home/mark/work/common/web/application.py", line 241, in process
    return self.handle()
  File "/home/mark/work/common/web/application.py", line 232, in handle
    return self._delegate(fn, self.fvars, args)
  File "/home/mark/work/common/web/application.py", line 411, in _delegate
    return handle_class(cls)
  File "/home/mark/work/common/web/application.py", line 386, in
handle_class
    return tocall(*args)
  File "/home/mark/work/pop/code.py", line 1496, in GET
    return web.render('subclass.html')
  File "/home/mark/work/common/web/cheetah.py", line 96, in render
    compiled_tmpl = _compiletemplate(template, base=base, isString=isString)
  File "/home/mark/work/common/web/utils.py", line 338, in __call__
    self.cache[key] = self.func(*args, **keywords)
  File "/home/mark/work/common/web/cheetah.py", line 42, in
__compiletemplate
    tmpl_compiler.addImportedVarNames(execspace.keys())
  File "/usr/lib/python2.5/site-packages/Cheetah/Compiler.py", line 1709, in
addImportedVarNames
    if self._methodBodyChunks and raw_statement and not
settings.get('useLegacyImportMode'):
  File "/usr/lib/python2.5/site-packages/Cheetah/Compiler.py", line 1609, in
__getattr__
    raise AttributeError, name
AttributeError: _methodBodyChunks


On Fri, May 22, 2009 at 10:41 AM, paul jobs <[email protected]> wrote:

>
> class inh:
>     def GET(self):
>         base = web.render('base.tmpl', base='base')
>         return web.render('subclass.html')
>
> render(template, terms=None, asTemplate=False, base=None, isString=False,
> filter
> =<class 'Cheetah.Filters.EncodeUnicode'>)
>     Renders a template, caching where it can.
>
>
>
>     If the template is a potential base template (that is, something other
> templ
> ates)
>     can extend, then base should be a string with the name of the template.
> The
>     template will be cached and made available for future calls to
> `render`.
>
> Why does this not work?
>
>
> On 5/22/09, paul jobs <[email protected]> wrote:
>>
>> Hey guys
>> I m trying to figure out how to Precompile cheetah base templates
>> and get Cheetah inheritance workin in webpy
>> ie the basic mechanics
>>
>> Please share the basic boiler plate or base code to get started
>>
>> Thanks
>> Paul
>>
>
>
>
> --
> BidEgg - Worlds best low price Auction site
> http://bidegg.com




-- 
BidEgg - Worlds best low price Auction site
http://bidegg.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to