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
In methods, getting 'self' argument, check 'self' argument #81
Labels
Comments
Gerold103
added
good first issue
Good for newcomers
refactoring
Code refactoring
labels
Mar 12, 2018
Gerold103
changed the title
In methods, getting 'self' argument, check this argument
In methods, getting 'self' argument, check 'self' argument
Mar 19, 2018
For example see netbox connection call. It raise usage error when called |
Khatskevich
added a commit
that referenced
this issue
Jun 1, 2018
Changes: 1. `check_self_arg` function wrapper added to utils. Its mechanics: * check that the first argument is of table type * return result of a real function 2. Check, that self argument is passed to all replicaset and replica object methods. Closes: #81
Khatskevich
added a commit
that referenced
this issue
Jun 1, 2018
Changes: 1. `check_self_arg` function wrapper added to utils. Its mechanics: * check that the first argument is of table type * return result of a real function 2. Check, that self argument is passed to all replicaset and replica object methods. Closes: #81
Khatskevich
added a commit
that referenced
this issue
Jun 2, 2018
Changes: 1. `check_self_arg` function wrapper added to utils. Its mechanics: * check that the first argument is of table type * return result of a real function 2. Check, that self argument is passed to all replicaset and replica object methods. Closes: #81
Khatskevich
added a commit
that referenced
this issue
Jun 4, 2018
Changes: 1. `check_self_arg` function wrapper added to utils. Its mechanics: * check that the first argument has expected metatable * return result of a real function 2. Check, that self argument is passed to all replicaset and replica object methods. Closes: #81
Khatskevich
added a commit
that referenced
this issue
Jun 4, 2018
Changes: 1. `check_self_arg` function wrapper added to utils. Its mechanics: * check that the first argument has expected metatable * return result of a real function 2. Check, that self argument is passed to all replicaset and replica object methods. Closes: #81
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example,
replicaset.callro
must be called asreplicaset:callro(...)
, notreplicaset.callro
. The first argument in such methods must be checked to beself
.The text was updated successfully, but these errors were encountered: