Python redmine: wiki page text
Question: I use [python-redmine](https://github.com/maxtepkeev/python-redmine/) and want
to get wiki page text, but get error - attribute isn't exists (but text
exists), here is my code:

    
    
    from redmine import Redmine
    
    redmine = Redmine('http://redmine.example.com', username='user', password='1234')
    projects = redmine.project.all()
    
    for project in projects:
        print('Project: '+project.name)
        try:
            for page in project.wiki_pages:
                try:
                    print('Title: '+page.title)
                except:
                    print('Title: none')
    
                try:
                    print('Content: '+page.text)
                except:
                    print('Content: none')
                print('\n===========================\n')
        except:
            print('None')
    

How can I get text from wiki page? Help me pease!

pS: Python 3, python-redmine installed by pip


Answer: Rails wraps attribute to methods so it is hard to say where you use attribute
where it is just a method.

[Here](https://github.com/redmine/redmine/blob/2.4-stable/app/models/wiki_page.rb#L25)
you can see that `wiki_page` has one content and
[here](https://github.com/redmine/redmine/blob/2.4-stable/app/models/wiki_page.rb#L139)
you can see method definition for `text` (attribute `text` belongs to
content!).

I don't have experience to work with `python-redmine` but I can suppose that
you need to call `page.content.text` not `page.text`. Or fetch `page.content`
some other way.

