hydraplatform / hydra-server

GNU Lesser General Public License v3.0
5 stars 0 forks source link

Method upload_template_xml from called from hydra-server doesn't exist #18

Closed robhoney closed 4 years ago

robhoney commented 5 years ago

The method referenced in template.py below (_template.upload_templatexml) does not exist in hydra base. It looks as if it has been renamed there (_import_templatexml), so either it needs to be renamed to match in hydra server or the one in hydra base (_import_templatexml) should be renamed back to _upload_templatexml.

@rpc(Unicode, _returns=Template)
    def upload_template_xml(ctx, template_xml):
        """
            Add the template, type and typeattrs described
            in an XML file.
            Delete type, typeattr entries in the DB that are not in the XML file
            The assumption is that they have been deleted and are no longer required.
        """
        tmpl_i = template.upload_template_xml(template_xml,
                                              **ctx.in_header.__dict__)
knoxsp commented 4 years ago

This has been replaced by 'import_template_xml'