LOL
On Apr 12, 5:20 pm, Thadeus Burgess <thade...@thadeusb.com> wrote: > lucky, I'm jealous! > -- > Thadeus > > On Mon, Apr 12, 2010 at 4:32 PM, mdipierro <mdipie...@cs.depaul.edu> wrote: > > I have no idea but you can stop to my office tomorrow and we will post > > the solution then. > > > Massimo > > > On Apr 12, 2:05 pm, "topher.baron" <topher.ba...@gmail.com> wrote: > >> I should have been more explicit in my original message. > > >> I am receiving this error after the line 'return id'. > > >> I was writing to a debug file to find out which line of the exception > >> was being thrown. I was able to write to a file in every part of the > >> function, so I think there is a problem with sending the response back > >> to the client. > > >> On Apr 12, 2:02 pm, Alexandre Andrade <alexandrema...@gmail.com> > >> wrote: > > >> > 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