Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DMS support and docs/examples #278

Open
vergelli opened this issue Apr 12, 2021 · 5 comments
Open

DMS support and docs/examples #278

vergelli opened this issue Apr 12, 2021 · 5 comments
Assignees
Labels

Comments

@vergelli
Copy link

Hello, I'm working on a project that uses the DMSf plugin for Redmine, so I was wondering if there is a chance to take controll of this plugin with Python-Redmine. It seems that it is possible since I already asked them and their answer was pretty much positive. Seems there is no documentation anywhere from which I can start working with. I am seeking for example codes or anything that can help me.

@maxtepkeev maxtepkeev self-assigned this Apr 13, 2021
@maxtepkeev
Copy link
Owner

maxtepkeev commented Apr 13, 2021

@vergelli Hi, in order for Python-Redmine to work with any plugin, this plugin has to have a REST API, unfortunately I didn't find any information in their docs regarding whether they have a REST API or not. If they do, you can follow our documentation and create a custom resource or several resources which will represent entities of the plugin, so Python-Redmine knows how to work with their data responses.

@Olli-Lolli
Copy link

Hi,
I am interested in the support of the DMSf plugin in Python-Redmine, too. FYI: the plugin has a REST API which can be found here.
Thank you for mentioning the custom ressources. I will take a look into it.

@vergelli
Copy link
Author

@Tom-Black Hi, did you find a way to take control of dms? I was touching a bit of it, with no luck. I was hoping to find a solution of this kind:

project = redmine.project.get( id)
proj_dms = project.dmsf

I have tried several ways but with no luck. I wonder if there is a way to work around it. Since as it was mentioned, it supports external Redmine plugin API.

@vergelli
Copy link
Author

vergelli commented Apr 16, 2021

@maxtepkeev Could there be a way to list all the resources? hoping to find any reference that brings me to dmsf

Update: I found that:

import redminelib
dir(redminelib.resources)

does just that

which returns:

['Attachment',
 'BaseResource',
 'CustomField',
 'Enumeration',
 'File',
 'Group',
 'Issue',
 'IssueCategory',
 'IssueJournal',
 'IssueRelation',
 'IssueStatus',
 'News',
 'Project',
 'ProjectMembership',
 'Query',
 'Role',
 'TimeEntry',
 'Tracker',
 'User',
 'Version',
 'WikiPage',
 '__builtins__',
 '__cached__',
 '__doc__',
 '__file__',
 '__loader__',
 '__name__',
 '__package__',
 '__path__',
 '__spec__',
 'base',
 'registry',
 'standard']

Nothing seems useful anyway

@maxtepkeev
Copy link
Owner

@vergelli

As the plugins REST API uses a separate dmsf endpoint i.e. /projects/12/dmsf.json the only way to use it is to implement it as a custom resource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants