ImportError                               Traceback (most recent call last)

/home/mark/work/pop/<ipython console> in <module>()

/home/mark/work/common/web/cheetah.pyc in render(template, terms,
asTemplate, base, isString, filter)
     94     #    compiled_tmpl = __compiletemplate(template, base=base,
isString=isString)
     95     #else:
---> 96     compiled_tmpl = _compiletemplate(template, base=base,
isString=isString)
     97     if filter:
     98         compiled_tmpl = compiled_tmpl(searchList=terms,
filter=filter)

/home/mark/work/common/web/utils.pyc in __call__(self, *args, **keywords)
    336         key = (args, tuple(keywords.items()))
    337         if key not in self.cache:
--> 338             self.cache[key] = self.func(*args, **keywords)
    339         return self.cache[key]
    340

/home/mark/work/common/web/cheetah.pyc in __compiletemplate(template, base,
isString)
     41     tmpl_compiler = Compiler(source=text,
mainClassName='GenTemplate')
     42     tmpl_compiler.addImportedVarNames(execspace.keys())
---> 43     exec str(tmpl_compiler) in execspace
     44     if base:
     45         _compiletemplate.bases[base] = execspace['GenTemplate']

/home/mark/work/pop/<string> in <module>()

ImportError: No module named mafbase

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