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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Extras> Python cocomo API, tiny thing

Avatar

Level 3
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:



1 Reply

Avatar

Employee
Well, my Python skills only go so far 🙂

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