confluence-python-lib icon indicating copy to clipboard operation
confluence-python-lib copied to clipboard

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

Open pallyndr opened this issue 4 years ago • 2 comments

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 avatar Mar 19 '20 11:03 pallyndr

In class Content, init

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

Why such a limitation to Attachments ?

pallyndr avatar Mar 19 '20 11:03 pallyndr

don't see why such restriction.

mcmx avatar Sep 11 '20 21:09 mcmx