Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C# to Python help
#3
Thank you for your reply, this is good but if some one could help me saving time it would be better :)

this is my python code :
class EmbedToken:
    def __init__(self, report_id, group_id, settings=None):
        self.username = '[email protected]'
        self.password = 'MyPassword'
        self.client_id = '28c7e68d-6eb1-4be3-8b97-4c0fa9cd83d6'
        self.report_id = report_id
        self.group_id = group_id
        if settings is None:
            #self.settings = {'accessLevel': 'View', 'allowSaveAs': 'false'}
            self.identitie = {'accessLevel': 'View','identities': [{'username': '[email protected]','roles': ['FranceSales'],'datasets': ['382ea16c-fbcc-4cec-bb60-470aff4aebaa']}]}
            print(self.identitie)
            self.settings = self.identitie
        else:
            self.settings = settings
When I add identities to json settings it's not working .
Reply


Messages In This Thread
C# to Python help - by SniperPro - Apr-13-2018, 11:51 AM
RE: C# to Python help - by Larz60+ - Apr-13-2018, 01:44 PM
RE: C# to Python help - by SniperPro - Apr-17-2018, 10:44 AM
RE: C# to Python help - by Larz60+ - Apr-17-2018, 11:45 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020