What exactly does the parameter 'self' in the function
confluence.append_page(self, ...)
on this page https://atlassian-python-api.readthedocs.io/confluence.html
mean? How am I supposed to call this function?
The code on line 1617 and on on this page https://github.com/atlassian-api/atlassian-python-api/blob/master/atlassian/confluence.py is not much of a help.
once you've created your Conflunce object, you can call append page like this:
result = conf.append_page(433343488, 'my title', '<p>some more text</p>', 212477418, type='page')
where conf is my confluence object
433343488 is the page id of the page you want to append to and 212477418 is the parent-page ID.
you can get the page-ID by calling get_page('my title')
HTH
@Alexander Fedotov : did you manage to solve this? because I am facing same issue with the example not helping.
As for your question: 'self' parameter in python refers to the class you are using and usually is not passed at all. simply pretend it is not there.
once you have created your connection with conf = confluence(url,user, pwd), your variable conf points at an object with all capabilities of the AtlassianConfluenceAPI class. in the definitions of the methods, 'self' is being used as an (internally) passed, but as the user you never have to give that param as it is passed in the background automatically (because it is a class's method).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I did. It was a question to a person responsible for the documentation of the SDK.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to the Atlassian Community!
In Confluence-speak, "self" almost always means "the current page". You'll need to trace that back through the code you are looking at (Sorry, I've not worked with this library, I've always coded my own direct calls, so I know this is not much help. Hopefully it gets you on the right path though)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.