TypeError: 'NoneType' object is not callable usually is a object not instancied.
Verify your objects and put "try" around to help to debug or flow your code. 2010/4/12 topher.baron <topher.ba...@gmail.com> > Traceback (most recent call last): > File "gluon/main.py", line 478, in wsgibase > File "gluon/main.py", line 193, in serve_controller > File "gluon/compileapp.py", line 435, in run_controller_in > TypeError: 'NoneType' object is not callable > > > > I make a jquery ajax call to a url that calls the following function : > > def addNewick(): > > try: > import applications.tred.modules.newick as newick > reload(newick) > node = newick.parse( request.vars.newickString ) > except: > return 'parseError' > > if auth.is_logged_in(): > id=db.userNewick.insert( user_id = auth.user.id, name = > request.vars.newickName, newick = request.vars.newickString, comments > = request.vars.newickComment ) > > else : > id = ''.join( [ 's', str(len(session.trees)) ] ) > session.trees.append( { 'id': id, > 'name': request.vars.newickName, > 'string': request.vars.newickString, > 'comment': > request.vars.newickComment } ); > > return id > > > I've written to a debug file during each part of the function. The > return line is being executed and somewhere something is going wrong. > If anyone could help out that would be great. > > > -- > To unsubscribe, reply using "remove me" as the subject. > -- Atenciosamente -- ========================= Alexandre Andrade Hipercenter.com