Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New session_context argument for TM1Service, RESTService #61

Merged
merged 1 commit into from
Sep 4, 2018

Conversation

MariusWirtz
Copy link
Collaborator

@MariusWirtz MariusWirtz commented Aug 19, 2018

New optional parameter for TM1Service session_context, that controls what is displayed in the session column in Arc / Pulse / TM1top. Default value is "TM1py".
Default Can be overwritten as follows:


import configparser

from TM1py.Services import TM1Service

config = configparser.ConfigParser()
config.read('..\config.ini')

APP_NAME = "My TM1py Application"

with TM1Service(**config['tm1srv01'], session_context=APP_NAME) as tm1:
    dimensions = tm1.dimensions.get_all_names()
    for dim in dimensions:
        print(dim)

Resolves #59

@rclapp
Copy link
Collaborator

rclapp commented Aug 21, 2018

Excellent, this is exactly what we need.

@vviau vviau merged commit 6cc2a02 into cubewise-code:master Sep 4, 2018
@MariusWirtz MariusWirtz deleted the SessionContext branch November 18, 2018 19:52
@MariusWirtz MariusWirtz added this to the 1.2.0 milestone Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants