roles = ['admin', 'pi', 'tech']
- accepted_fields = Row.accepted_fields(can_update, [Node.fields,Node.tags])
+ accepted_fields = Row.accepted_fields(can_update,Node.fields)
+ accepted_fields.update(Node.tags)
accepts = [
Auth(),
[native,tags,rejected]=Row.split_fields(node_fields,[Node.fields,Node.tags])
+ # type checking
+ native = Row.check_fields (native, self.accepted_fields)
if rejected:
raise PLCInvalidArgument, "Cannot add Node with column(s) %r"%rejected