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

How to get Web Link from get_content() on a page ? #27

Open
pallyndr opened this issue Mar 19, 2020 · 2 comments
Open

How to get Web Link from get_content() on a page ? #27

pallyndr opened this issue Mar 19, 2020 · 2 comments

Comments

@pallyndr
Copy link

Hello,

I want to have the URL for the end-user to be able to click to the Wiki page.
Seems the info is in _links.webui, but cannot retrieve that on a Content object.
Limited to Attachement ? seems to be so in code.

Can you please help here ?

@pallyndr
Copy link
Author

In class Content, init

    if self.type == ContentType.ATTACHMENT:
        self.links = json['_links']  # type: Dict[str, Any]

Why such a limitation to Attachments ?

@mcmx
Copy link

mcmx commented Sep 11, 2020

don't see why such restriction.

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

No branches or pull requests

2 participants