Hi all.
i see more topic on Turbogears and yui but nothing for this problem.

I want to install YUI on my turbogears project.
I read the doc (link http://turbogears.org/2.1/docs/main/GlobalJSLib.html),
I installed the extension for ToscaWidget (link 
http://toscawidgets.org/download),
and I write in my example/lib/base.py this:
from tw.yui import connection_js
class BaseController(TGController):

    def __call__(self, environ, start_response):
        """Invoke the Controller"""
        # TGController.__call__ dispatches to the Controller method
        # the request is routed to. This routing information is
        # available in environ['pylons.routes_dict']


        connection_js.inject()

        request.identity = request.environ.get('repoze.who.identity')
        tmpl_context.identity = request.identity
        return TGController.__call__(self, environ, start_response)


When i refresh my browser i have this error:

TypeError: unbound method inject() must be called with connection_js
instance as first argument (got nothing instead)

has anyone ever had this error?

Turbogears 2.1
SqlAlchemy 0.6.6

Thanks

-- 
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