Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Xi py preparation #3

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Xi py preparation #3

wants to merge 8 commits into from

Conversation

atigyi
Copy link

@atigyi atigyi commented Feb 8, 2016

[ JIRA ]
Release the Python Library
https://jira.3amlabs.net/browse/XB-27

[ Reviewer ]

[ Description ]
removing features before xiPy release:

  • control topic
  • device status updates
  • duplicated certificates

[ QA ]
Conforms to writings in https://github.com/xively/xiPy-deprecated and in http://developer.xively.com/tutorials/pub-and-sub-from-python/

[ Release Notes ]

…is the certs one-by-one the other was a list of these (this is deleted)
* master:
  [feat] added pi estimation for pub demo
  [fix] added .gitignore for tmp files and folders
  [feat] added separate version for pub and sub operations

# Conflicts:
#	.gitignore
…acks (like on_connect_finish)

Exception:
File "/Users/atigyi/git/xi/xc/xively-getting-started/xi_client/xively_callback_handler.py", line 46, in on_message_received
    self.delegate.on_message_received(self.delegate, message)
TypeError: on_message_received() takes 2 positional arguments but 3 were given

This was because default callbacks were member function but callbacks set by user are probably standalone function. The difference is the first argument: "self". In case of a member function python automagically adds a first "self" attribute for standalone functions doesn't. Thus for e.g. default on_connect_finish callback there were three arguments: self, client, result instead of 2.
Solved with modifying default callbacks to be @staticmethods.
* master:
  [forward] forwarded changes from xively client repository
  [fix] added join function call in case Py2 used

# Conflicts:
#	xi_client/xively_client.py
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants