Hi, I'm writing a facebook app with django and it is running on google app engine. Part of the application is calculating the strength of a relationship between friends, and classifying it as 1 (weak), 2 (acquaintance), or 3 (close bond). A copy of the relevant code is http://pastebin.com/AtQZDu65 Lines 11 and 12 are the relevant method calls. Looking at calc_strength (which runs perfectly locally, but does take about 5 seconds on my home connection), the only possible values that could be returned are 1, 2, or 3. This should pass as the strength to connectNodes, or if it is not called then connectNodes should have a default strength of 1. However, on execution on my app engine server, the values in the matrix (which connectNodes is supposed to modify) remain 0, which is their initial value. This means that either a) calc_strength is returning 0, or b) that connectNodes is never being called. calc_strength does handle a significant amount of data, but I don't believe that it takes more than about 3 seconds to complete on the app engine server. The view that these methods are called in returns a redirect, could the view possibly move on to the next line of code before calc_strength completes? Any other ideas why this isn't working?
Relevantly, this works as expected (matrix has values of 1) when calc_strength is set to immediately return 1. Help would be much appreciated, thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.