python-redmine icon indicating copy to clipboard operation
python-redmine copied to clipboard

OpenProject support?

Open The-Alchemist opened this issue 6 years ago • 1 comments

I was wondering if anyone has tried using python-redmine with OpenProject, a fork of Redmine. I get a lot of :

>>> redmine.project.get('project_name')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.7/site-packages/redminelib/managers/base.py", line 83, in get
    return self.to_resource(self.redmine.engine.request('get', self.url, params=self.params)[self.container])
KeyError: 'project'

The-Alchemist avatar Oct 15 '19 19:10 The-Alchemist

Hi,

I've checked their API docs and they've changed A LOT. They not only changed the response structure, they're also using hal+json instead of just json, so Python-Redmine will not work out of the box, a lot of work has to be done to make Python-Redmine work with OpenProject.

maxtepkeev avatar Oct 16 '19 05:10 maxtepkeev