Skip to content

Add the update support with the least possibly modification#5

Merged
2 commits merged into
NSLS2:masterfrom
shroffk:log_update
Aug 10, 2016
Merged

Add the update support with the least possibly modification#5
2 commits merged into
NSLS2:masterfrom
shroffk:log_update

Conversation

@shroffk

Copy link
Copy Markdown

Adding the minimum update feature

I intend to do a (much needed) cleanup/rewrite of a significant portion of this library and will try to address the rest of the feature requests then.

@ghost

Copy link
Copy Markdown

👍 Let me know what you need for the rewrite, I can give you a hand. We should have done this 3 years ago when we first discussed it

@danielballan

Copy link
Copy Markdown

Thanks, Kunal Shroff (@shroffk). Looks good to me. I'll let arkilic review and merge.

Comment thread test/OlogClientTest.py
Simple test to create a ologClient
'''
client = OlogClient(url='http://localhost:8080/Olog')
client = OlogClient(url=getDefaultTestConfig('url'))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much nicer!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I look at this library and compared to the java one it needs significant work, this is just one example of cleanup

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have quite a few ideas. Let's discuss tmrw or sometime next week when you have time.

Comment thread test/_testConf.py
import os.path
import ConfigParser
dflt={'url':'https://130.199.219.79:9992/Olog'}
dflt={'url':'https://localhost:8181/Olog'}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔨

@ghost ghost merged commit 448c416 into NSLS2:master Aug 10, 2016
@danielballan

Copy link
Copy Markdown

Kunal Shroff (@shroffk) We currently use SimpleOlogClient. This change was made to OlogClient. Would adding this to SimpleOlogClient be as simple as copying the method updateLog over?

@danielballan

Copy link
Copy Markdown

Actually I think I figured it out for myself. I should have spend more time just reading the code. :- D

@shroffk

Copy link
Copy Markdown
Author

I am glad you figured it ouw, I was just looking into it...i think the simpleOlogClinet might not be using the Log objects...
I apologize you had to go thorugh the code...this was my first every python project and some of the code reads like java :)

This pull request was closed.
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.

2 participants