Skip to content
Snippets Groups Projects
Commit ed2cbe3a authored by Bryan Tong Minh's avatar Bryan Tong Minh
Browse files

Fix readme.

parent 0bf5e4ce
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ print 'Text in sandbox:', text.encode('utf-8')
page.save(text + u'\nExtra data', summary = 'Test edit')
# Printing imageusage
image = page.Images['Example.jpg']
image = site.Images['Example.jpg']
print 'Image', image.name.encode('utf-8'), 'usage:'
for page in image.imageusage():
print 'Used:', page.name.encode('utf-8'), '; namespace', page.namespace
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment