By: Sakit Atakishiyev user 08 Jun 2017 at 2:44 a.m. CDT

6 Responses
Sakit Atakishiyev gravatar
Hi, I am trying to import `GluuCustomPerson` class to my custom script ``` from org.gluu.oxtrust.model import GluuCustomPerson ``` But I got the error. Please check error log

By Mohib Zico staff 08 Jun 2017 at 4:22 a.m. CDT

Mohib Zico gravatar
Hi Sakit, According to log, it can't load your python script. What kind of script you are trying to develop?

By Sakit Atakishiyev user 08 Jun 2017 at 4:25 a.m. CDT

Sakit Atakishiyev gravatar
I just copied existing `basic` script and add this line ``` from org.gluu.oxtrust.model import GluuCustomPerson ```

By Mohib Zico staff 08 Jun 2017 at 4:34 a.m. CDT

Mohib Zico gravatar
Every line of code has a purpose there, what's your target?

By Sakit Atakishiyev user 08 Jun 2017 at 4:39 a.m. CDT

Sakit Atakishiyev gravatar
ok let me explain. As you know I opened a [ticket](https://support.gluu.org/customization/4179/can-not-set-custom-attributes/). During authorization I could not set my custom attributes. When I check my new created attributes I saw this attribute type is `gluuCustomPerson`. So that I want to try this class and check that can I set my custom attribute or not

By Mohib Zico staff 08 Jun 2017 at 4:45 a.m. CDT

Mohib Zico gravatar
Thanks for clarification. If [this](https://support.gluu.org/customization/4179/can-not-set-custom-attributes/) is a problem and we can't resolve it, doesn't matter what we try... you can't 'save' any kind of attribute in ldap. I think we should better wait on QA team to give us a result, I can see that this task is in their ToDo list.

By Sakit Atakishiyev user 08 Jun 2017 at 4:48 a.m. CDT

Sakit Atakishiyev gravatar
Ok. I will try to test on myside also.