I fixed this error, using the work around suggested in
http://trac.turbogears.org/ticket/2222

    from turbogears.identity import saprovider
    def _get_user(self):
        if self.visit_link is None:
            return None
        return
saprovider.user_class.query.get(self.visit_link.user_id)
    saprovider.SqlAlchemyIdentity.user = property(_get_user)

j

On Jun 3, 3:41 pm, jose soares <[email protected]> wrote:
> Hi all,
>
> My errorhandler don't work anymore, I don't know the reason, I think I
> upgrade some module and it stopped to work.
>
> def send_error_page(self, status, data):
>     # send error page using matching template from self._error_templates.
>     body = controllers._process_output(
>                     output=data,
>
> template=self._error_templates.get('kid:error_template'),
>                     format=self.output_format,
>                     content_type=self.content_type
>                     )
>    cherrypy.response.headers['Content-Length'] = len(body)
>    cherrypy.response.body = body
>
> it returns an  "Unrecoverable error in the server" message
>
> I'm using KID as default template engine.
>
> ----------------------------------
> my configuration is:
>
> turbogears 1.1.1
> cherrypy 2.3.0
> sqlalchemy 0.6.0
> TurboKid 1.0.5
> Kid 0.9.6
>
> Any help should by very appreciated.
>
> j

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en.

Reply via email to