https://bugzilla.wikimedia.org/show_bug.cgi?id=55149
--- Comment #17 from Kunal Mehta (Legoktm) <[email protected]> --- What does you meen with .get is not necessary? For getting a content, create an object and assign it to an alias: \# rewrite branch myPage = wikipedia.Page\(wikipedia.getSite\(\), 'Helium'\) content = myPage.text myPage.text = u'This is a new content' myPage.put\(\) \# put it to the web \# trunk release myPage = wikipedia.Page\(wikipedia.getSite\(\), 'Helium'\) content = myPage.get\(\) content = u'This is a new content' myPage.put\(content\) \# put it to the web \# wikidata myData = wikipedia.DataPage\(1234\) entity = myData.get\(\) content = \{...\} myData.setitem\('changing an item', content\) \# put it to the web In all three samples you do not need to call the getter. But for that case you derived a DataPage from a Page object you have explicit to retrieve the data from the repository site before you can put any data back. Ok I guess you expect something like this should be possible: myPage = wikipedia.Page\(wikipedia.getSite\(\), 'Helium'\) myData = wikipedia.DataPage\(myPage\) content = \{...\} myData.setitem\('changing an item', content\) \# put it to the web Am I right? -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
