def new_nodes_allowed_for_layer(self):
if not self.pk and self.layer and not self.layer.new_nodes_allowed:<EOL><INDENT>raise ValidationError(_('<STR_LIT>'))<EOL><DEDENT>
ensure new nodes are allowed for this layer