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

Dynamically generated class properties are not accessible in Command and System #138

Open
afsafzal opened this issue Oct 22, 2018 · 0 comments
Assignees
Labels

Comments

@afsafzal
Copy link
Member

The uid property of Command is dynamically set in __init__ function of the MetaClass. But when accessed it returns a property object:

In [1]: from houston.ardu.common import ArmDisarm
In [2]: ArmDisarm.uid
Out[2]: <property at 0x7f1354389868>

But when uid is set with a string it works with no problem:

> GoTo.uid
'ardu:copter:goto'

The same thing applies to property name of class System (even if it's set with an string):

In [6]: ArduCopter.name
Out[6]: <property at 0x7f13540e1d18>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants