---
** [bugs:#1642] wikipedia.py has bug on .exist **
**Status:** open
**Created:** Fri Jul 12, 2013 08:55 PM UTC by reza
**Last Updated:** Fri Jul 12, 2013 08:55 PM UTC
**Owner:** nobody
since 8 July wikipedia.py has bug in .exist() for example if we run this code
import wikipedia
Orgine_Site=wikipedia.getSite('en',fam='wikipedia')
my_page = wikipedia.Page(Orgine_Site, 'Iran')
my_data = wikipedia.DataPage(my_page)
if my_data.exists():
wikipedia.output('ok')
it shows this bug
reza@willow:~/pyreza$ python test.py
Traceback (most recent call last):
File "test.py", line 5, in <module>
if my_data.exists():
File "/home/reza/pyreza/wikipedia.py", line 1335, in exists
self.get()
File "/home/reza/pyreza/wikipedia.py", line 4693, in get
self._getentity(*args, **kwargs)
File "/home/reza/pyreza/wikipedia.py", line 4629, in _getentity
self._title = self._contents['entity'].title()
AttributeError: 'list' object has no attribute 'title'
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
---
** [bugs:#1641] Suppress warning from getcurrenttimestamp()**
**Status:** open
**Created:** Wed Jul 10, 2013 05:50 PM UTC by Nullzer0
**Last Updated:** Wed Jul 10, 2013 05:50 PM UTC
**Owner:** nobody
Since r11686, some warnings appear in my log, including "WARNING API warning (parse): No 'title' or 'contentmodel' was given, assuming wikitext." I examined and found that the text comes from getcurrenttimestamp(). Just add "contentmodel=wikitext" should suppress this message.
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Legoktm just fixed it (r11686). Thank you, though.
---
** [bugs:#1622] error when encounter API Warning (Wikidata)**
**Status:** open
**Labels:** rewrite
**Created:** Sun Apr 21, 2013 12:21 PM UTC by Nullzer0
**Last Updated:** Sun Apr 21, 2013 12:21 PM UTC
**Owner:** Russell Blau
File "/home/sorawee/rewrite/pywikibot/page.py", line 2340, in editEntity
baserevid=baserevid, \*\*kwargs\)
File "/home/sorawee/rewrite/pywikibot/site.py", line 3365, in editEntity
data = req.submit\(\)
File "/home/sorawee/rewrite/pywikibot/data/api.py", line 357, in submit
% \(mod, result\["warnings"\]\[mod\]\["\*"\]\)\)
KeyError: '\*'
So I changed api.py to "% \(mod, result\["warnings"\]\[mod\]\)\)", what I get is
WARNING: API warning \(messages\): \{u'0': \{u'type': u'warning', u'name': u'edit-no-change'\}, u'html': \{u'\*': u'<p>Your edit was ignored because no change was made to the text.\n</p>'\}\}
\----
Pywikibot branches/rewrite/ \(r11404, 2013/04/21, 09:25:43, OUTDATED\)
Python 2.7.3 \(default, Sep 26 2012, 21:53:58\)
\[GCC 4.7.2\]
unicode test: ok
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Oops, you are right. I thought there was, but it apparently has not been copied yet.
---
** [patches:#619] fix for reflinks.py**
**Status:** closed-accepted
**Created:** Mon Jul 01, 2013 04:14 PM UTC by rubin16
**Last Updated:** Fri Jul 05, 2013 12:43 AM UTC
**Owner:** Amir
patch tested and works OK. The following changes will be implemented:
- fix of ru.wiki bot, who will run the script (the previous in not active anymore)
- fix of translations
- fix of <ref name></ref> preparation - now it will be in the form <ref name="autogenerated">, not <ref name=autogenerated>: edit tab in wikis proposes this variant and wikiusers use it more
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/patches/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
- **status**: open-accepted --> closed-accepted
---
** [patches:#619] fix for reflinks.py**
**Status:** closed-accepted
**Created:** Mon Jul 01, 2013 04:14 PM UTC by rubin16
**Last Updated:** Fri Jul 05, 2013 12:43 AM UTC
**Owner:** Amir
patch tested and works OK. The following changes will be implemented:
- fix of ru.wiki bot, who will run the script (the previous in not active anymore)
- fix of translations
- fix of <ref name></ref> preparation - now it will be in the form <ref name="autogenerated">, not <ref name=autogenerated>: edit tab in wikis proposes this variant and wikiusers use it more
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/patches/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
I checked rewrite and I couldn't find any reflinks.py (or similar code) are you sure there is reflinks.py in rewrite?
---
** [patches:#619] fix for reflinks.py**
**Status:** open-accepted
**Created:** Mon Jul 01, 2013 04:14 PM UTC by rubin16
**Last Updated:** Tue Jul 02, 2013 09:15 PM UTC
**Owner:** Amir
patch tested and works OK. The following changes will be implemented:
- fix of ru.wiki bot, who will run the script (the previous in not active anymore)
- fix of translations
- fix of <ref name></ref> preparation - now it will be in the form <ref name="autogenerated">, not <ref name=autogenerated>: edit tab in wikis proposes this variant and wikiusers use it more
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/patches/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Now I can post a new comment, so I'll respond here too.
Your idea is really interesting, would be a good thing the use of the cache, either for speed and for the bandwidth.
---
** [patches:#618] WikiData: property datatype**
**Status:** open
**Created:** Fri Jun 07, 2013 10:04 AM UTC by Luca Rabinelli
**Last Updated:** Tue Jun 11, 2013 04:06 PM UTC
**Owner:** Amir
in file attached there's a simple function for determine datatype of a wikidata property via API, instead use of "isinstance".
Useful in DataPage.editclaim\(\)
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/patches/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Not merged in rewrite yet.
---
** [patches:#619] fix for reflinks.py**
**Status:** open-accepted
**Created:** Mon Jul 01, 2013 04:14 PM UTC by rubin16
**Last Updated:** Tue Jul 02, 2013 01:41 PM UTC
**Owner:** Amir
patch tested and works OK. The following changes will be implemented:
- fix of ru.wiki bot, who will run the script (the previous in not active anymore)
- fix of translations
- fix of <ref name></ref> preparation - now it will be in the form <ref name="autogenerated">, not <ref name=autogenerated>: edit tab in wikis proposes this variant and wikiusers use it more
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/patches/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
- **status**: closed-accepted --> open-accepted
---
** [patches:#619] fix for reflinks.py**
**Status:** open-accepted
**Created:** Mon Jul 01, 2013 04:14 PM UTC by rubin16
**Last Updated:** Tue Jul 02, 2013 01:41 PM UTC
**Owner:** Amir
patch tested and works OK. The following changes will be implemented:
- fix of ru.wiki bot, who will run the script (the previous in not active anymore)
- fix of translations
- fix of <ref name></ref> preparation - now it will be in the form <ref name="autogenerated">, not <ref name=autogenerated>: edit tab in wikis proposes this variant and wikiusers use it more
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/patches/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
done in r11708
---
** [patches:#619] fix for reflinks.py**
**Status:** closed-accepted
**Created:** Mon Jul 01, 2013 04:14 PM UTC by rubin16
**Last Updated:** Mon Jul 01, 2013 05:33 PM UTC
**Owner:** Amir
patch tested and works OK. The following changes will be implemented:
- fix of ru.wiki bot, who will run the script (the previous in not active anymore)
- fix of translations
- fix of <ref name></ref> preparation - now it will be in the form <ref name="autogenerated">, not <ref name=autogenerated>: edit tab in wikis proposes this variant and wikiusers use it more
---
Sent from sourceforge.net because Pywikipedia-bugs(a)lists.wikimedia.org is subscribed to https://sourceforge.net/p/pywikipediabot/patches/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pywikipediabot/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.