Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Extras> Python cocomo API, tiny thing

Avatar

Avatar
Validate 1
Level 2
coulix
Level 2

Like

1 like

Total Posts

65 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
coulix
Level 2

Like

1 like

Total Posts

65 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
coulix
Level 2

29-01-2009

I got some problem to login using cocomo.py until i realised
it was because of a string checking on a unicode object.

The given Python example is built around google engine which
in this case uses string.

When i tried cocomo.py with Django (unicode aware) i just had
to change a line to be able to log in with the account manager



Line 89:

if type(data) == str:



to

if type(data) == str or type(data) == unicode:



Replies

Avatar

Avatar
Boost 50
Employee
Raff_
Employee

Likes

80 likes

Total Posts

758 posts

Correct Reply

75 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Employee
Raff_
Employee

Likes

80 likes

Total Posts

758 posts

Correct Reply

75 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Raff_
Employee

29-01-2009

Well, my Python skills only go so far 🙂

Thanks for finding this. I'll get it fixed for the next SDK
release.