Minor tweak to node_type_has_method

This commit is contained in:
2016-01-28 12:59:38 +01:00
parent a8225cf5a3
commit 9f939e9319

View File

@@ -94,7 +94,8 @@ class Project(List, Find, Create, Post, Update, Delete, Replace):
return next((item for item in self.node_types if item.name \
and item['name'] == node_type_name), None)
def node_type_has_method(self, node_type_name, method, api):
def node_type_has_method(self, node_type_name, method, api=None):
"""Utility method that checks if a given node_type has the requested
method.
"""