Try Chameleon 1.X instead of 2.X (easy_install chameleon<1.99).

Note that you need to subscribe to the list in order to post.

- C


On Sat, 2011-03-26 at 13:39 +0000, repoze-dev-ow...@lists.repoze.org
wrote:
> As list administrator, your authorization is requested for the
> following mailing list posting:
> 
>     List:    Repoze-dev@lists.repoze.org
>     From:    demm...@gmail.com
>     Subject: Chameleon unexpected error
>     Reason:  Post by non-member to a members-only list
> 
> At your convenience, visit:
> 
>     http://lists.repoze.org/admindb/repoze-dev
>         
> to approve or deny the request.
> email message attachment
> > -------- Forwarded Message --------
> > From: Dmitry Shamov <demm...@gmail.com>
> > To: repoze-dev@lists.repoze.org
> > Subject: Chameleon unexpected error
> > Date: Sat, 26 Mar 2011 16:42:15 +0300
> > 
> > I try to use BFG. My template have this code:
> > <li tal:repeat="item params.menu">
> > <!--                <span
> > tal:content="repeat.item.number">123</span> -->
> >                 <a tal:condition="not: item.current"
> > href="/${item.name}">${item.title}</a>
> >                 <span
> > tal:condition="item.current">${item.title}</span>
> >                 <span tal:condition="params.edit"> 
> >                                 <a href="/page_up?name=
> > ${item.name}">&uarr;</a> 
> >                                 <a href="/page_down?name=
> > ${item.name}">&darr;</a> 
> >                 </span>
> >         </li>
> > Withh commented line all work good.
> > But if i uncomment i got strange error:
> > Re-GET Page
> > URL: http://127.0.0.1:6543/titulnaya-stranitsa
> > Module paste.evalexception.middleware:306 in respond         
> > >>  app_iter = self.application(environ, detect_start_response)
> > Module repoze.tm:23 in __call__         
> > >>  result = self.application(environ, save_status_and_headers)
> > Module repoze.bfg.router:137 in __call__         
> > >>  response = view_callable(context, request)
> > Module repoze.bfg.configuration:2396 in _rendered_view         
> > >>  response = view(context, request)
> > Module fortuna.views:41 in view_page         
> > >>  return
> > root.templates[context.templateName].render_to_response(request,page,params=params)
> > Module fortuna.models:96 in render_to_response         
> > >>  request=request)
> > Module repoze.bfg.renderers:110 in render_to_response         
> > >>  return renderer.render_to_response(value, None, request=request)
> > Module repoze.bfg.renderers:290 in render_to_response         
> > >>  result = self.render(value, system_values, request=request)
> > Module repoze.bfg.renderers:286 in render         
> > >>  result = renderer(value, system_values)
> > Module repoze.bfg.chameleon_zpt:62 in __call__         
> > >>  result = self.template(**system)
> > Module chameleon.template:121 in __call__         
> > >>  return self.render(**kwargs)
> > Module chameleon.zpt.template:104 in render         
> > >>  return super(PageTemplate, self).render(**k)
> > Module chameleon.template:155 in render         
> > >>  self._render(stream, econtext, rcontext)
> > Module default_3616acbd2b42f34657d7d9b47361fd7e9ffa3f67:628 in
> > render         
> > >>  _content = convert(_content)
> > TypeError: 'NoneType' object is not callable
> > extra data
> > 
> > 
> > Who knows what it is it?
> > 
> > -- 
> > С уважением, Дмитрий
> > 
> email message attachment
> > -------- Forwarded Message --------
> > From: repoze-dev-requ...@lists.repoze.org
> > Subject: confirm f1aec2dedc0221f11dd316ea64d02f453385b496
> > Date: Sat, 26 Mar 2011 13:39:33 +0000
> > 
> > If you reply to this message, keeping the Subject: header intact,
> > Mailman will discard the held message.  Do this if the message is
> > spam.  If you reply to this message and include an Approved: header
> > with the list password in it, the message will be approved for posting
> > to the list.  The Approved: header can also appear in the first line
> > of the body of the reply.


_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to