Bugs item #3536400, was opened at 2012-06-19 12:52
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536400&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Pending
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: betacommand (betacommand)
Assigned to: xqt (xqt)
Summary: Invalid Title in flickrripper
Initial Comment:
Betacommand multichill: I know you wrote flickrripper.py and Im trying to fix an issue with it, and thought it might be easier for you to fix
Betacommand lines 157-161 where it grabs the description and uses it for the file name
Betacommand when you start working with non-latin descriptions it doesnt handle multi-byte characters well, it ended up with a title over 320 bytes
Betacommand the max mediawiki lets you have is 255
multichill Lol
Betacommand multichill: really rather a pain
multichill So the check shoul probably encode it and than see how long it is?
Betacommand correct
multichill Or just lower the limit a bit?
Betacommand thai letters for example are 3 bytes
Betacommand notes it was discovered with flickrripper.py -autonomous -user_id:40561337@N07 -addcategory:"Files from Abhisit Vejjajiva Flickr stream"
multichill Betacommand: Could you file a bug for this?
Betacommand multichill: you would need to cut it down to 85 to be safe
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-06-20 07:17
Message:
fix committed in r10387, please check
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-06-20 00:08
Message:
an idea for getFilename (could anybody test it whether it works)
if not title:
#find the max length for a mw title
maxBytes = 240 - len(project.encode('utf-8')) \
- len(username.encode('utf-8'))
description = photoInfo.find('photo').find('description').text
if description:
descBytes = len(description.encode('utf-8'))
if descBytes > maxBytes:
# maybe we cut more than needed, anyway we do it
items = max(0, len(description) - maxBytes + descBytes)
description = description[:items]
title = cleanUpTitle(description)
else:
title = u''
# Should probably have the id of the photo as last resort.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-06-19 23:03
Message:
I guess the title is cutted by mw and not the slice operator since it works
correct for unicode strings. len() also gives the number of characters not
the number bytes. Do we have any size(object) method?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536400&group_…
Bugs item #3536400, was opened at 2012-06-19 12:52
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536400&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: betacommand (betacommand)
Assigned to: xqt (xqt)
Summary: Invalid Title in flickrripper
Initial Comment:
Betacommand multichill: I know you wrote flickrripper.py and Im trying to fix an issue with it, and thought it might be easier for you to fix
Betacommand lines 157-161 where it grabs the description and uses it for the file name
Betacommand when you start working with non-latin descriptions it doesnt handle multi-byte characters well, it ended up with a title over 320 bytes
Betacommand the max mediawiki lets you have is 255
multichill Lol
Betacommand multichill: really rather a pain
multichill So the check shoul probably encode it and than see how long it is?
Betacommand correct
multichill Or just lower the limit a bit?
Betacommand thai letters for example are 3 bytes
Betacommand notes it was discovered with flickrripper.py -autonomous -user_id:40561337@N07 -addcategory:"Files from Abhisit Vejjajiva Flickr stream"
multichill Betacommand: Could you file a bug for this?
Betacommand multichill: you would need to cut it down to 85 to be safe
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-06-20 07:17
Message:
fix committed in r10387, please check
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-06-20 00:08
Message:
an idea for getFilename (could anybody test it whether it works)
if not title:
#find the max length for a mw title
maxBytes = 240 - len(project.encode('utf-8')) \
- len(username.encode('utf-8'))
description = photoInfo.find('photo').find('description').text
if description:
descBytes = len(description.encode('utf-8'))
if descBytes > maxBytes:
# maybe we cut more than needed, anyway we do it
items = max(0, len(description) - maxBytes + descBytes)
description = description[:items]
title = cleanUpTitle(description)
else:
title = u''
# Should probably have the id of the photo as last resort.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-06-19 23:03
Message:
I guess the title is cutted by mw and not the slice operator since it works
correct for unicode strings. len() also gives the number of characters not
the number bytes. Do we have any size(object) method?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536400&group_…
Bugs item #3536604, was opened at 2012-06-20 06:53
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536604&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: interwiki
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: YFdyh000 (yfdyh000)
>Assigned to: xqt (xqt)
Summary: Missing namespace in family file namespace['en'][442]
Initial Comment:
WARNING: Family file wikipedia contains version number 1.20wmf4, but it should b
e 1.20wmf5
WARNING: Missing namespace in family file wikipedia: namespace['en'][442] (it is
set to 'Course')
WARNING: Missing namespace in family file wikipedia: namespace['en'][443] (it is
set to 'Course talk')
WARNING: Missing namespace in family file wikipedia: namespace['en'][444] (it is
set to 'Institution')
WARNING: Missing namespace in family file wikipedia: namespace['en'][445] (it is
set to 'Institution talk')
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-06-20 08:01
Message:
done in r10388/10389
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536604&group_…
Bugs item #3536400, was opened at 2012-06-19 12:52
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536400&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: betacommand (betacommand)
Assigned to: xqt (xqt)
>Summary: Invalid Title in flickrripper
Initial Comment:
Betacommand multichill: I know you wrote flickrripper.py and Im trying to fix an issue with it, and thought it might be easier for you to fix
Betacommand lines 157-161 where it grabs the description and uses it for the file name
Betacommand when you start working with non-latin descriptions it doesnt handle multi-byte characters well, it ended up with a title over 320 bytes
Betacommand the max mediawiki lets you have is 255
multichill Lol
Betacommand multichill: really rather a pain
multichill So the check shoul probably encode it and than see how long it is?
Betacommand correct
multichill Or just lower the limit a bit?
Betacommand thai letters for example are 3 bytes
Betacommand notes it was discovered with flickrripper.py -autonomous -user_id:40561337@N07 -addcategory:"Files from Abhisit Vejjajiva Flickr stream"
multichill Betacommand: Could you file a bug for this?
Betacommand multichill: you would need to cut it down to 85 to be safe
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-06-20 07:17
Message:
fix committed in r10387, please check
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-06-20 00:08
Message:
an idea for getFilename (could anybody test it whether it works)
if not title:
#find the max length for a mw title
maxBytes = 240 - len(project.encode('utf-8')) \
- len(username.encode('utf-8'))
description = photoInfo.find('photo').find('description').text
if description:
descBytes = len(description.encode('utf-8'))
if descBytes > maxBytes:
# maybe we cut more than needed, anyway we do it
items = max(0, len(description) - maxBytes + descBytes)
description = description[:items]
title = cleanUpTitle(description)
else:
title = u''
# Should probably have the id of the photo as last resort.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-06-19 23:03
Message:
I guess the title is cutted by mw and not the slice operator since it works
correct for unicode strings. len() also gives the number of characters not
the number bytes. Do we have any size(object) method?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536400&group_…
Bugs item #3536604, was opened at 2012-06-20 06:53
Message generated for change (Tracker Item Submitted) made by yfdyh000
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536604&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: YFdyh000 (yfdyh000)
Assigned to: Nobody/Anonymous (nobody)
Summary: Missing namespace in family file namespace['en'][442]
Initial Comment:
WARNING: Family file wikipedia contains version number 1.20wmf4, but it should b
e 1.20wmf5
WARNING: Missing namespace in family file wikipedia: namespace['en'][442] (it is
set to 'Course')
WARNING: Missing namespace in family file wikipedia: namespace['en'][443] (it is
set to 'Course talk')
WARNING: Missing namespace in family file wikipedia: namespace['en'][444] (it is
set to 'Institution')
WARNING: Missing namespace in family file wikipedia: namespace['en'][445] (it is
set to 'Institution talk')
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536604&group_…
Bugs item #3536561, was opened at 2012-06-20 04:10
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536561&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Private: No
Submitted By: JAn (jandudik)
>Assigned to: xqt (xqt)
Summary: -movelog
Initial Comment:
Option -movelog behaviors incorrectly. When I give interwiki.py -movelog bot works with titles *before* moving, which are in most cases deleted. It should work with *new* titles...
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-06-20 04:46
Message:
just use -movelog -initialredirect
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536561&group_…
Bugs item #3536561, was opened at 2012-06-20 04:10
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536561&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: JAn (jandudik)
Assigned to: Nobody/Anonymous (nobody)
Summary: -movelog
Initial Comment:
Option -movelog behaviors incorrectly. When I give interwiki.py -movelog bot works with titles *before* moving, which are in most cases deleted. It should work with *new* titles...
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-06-20 04:46
Message:
just use -movelog -initialredirect
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536561&group_…
Bugs item #3536561, was opened at 2012-06-20 04:10
Message generated for change (Tracker Item Submitted) made by jandudik
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536561&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: JAn (jandudik)
Assigned to: Nobody/Anonymous (nobody)
Summary: -movelog
Initial Comment:
Option -movelog behaviors incorrectly. When I give interwiki.py -movelog bot works with titles *before* moving, which are in most cases deleted. It should work with *new* titles...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536561&group_…
Bugs item #3536400, was opened at 2012-06-19 12:52
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536400&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: betacommand (betacommand)
>Assigned to: xqt (xqt)
Summary: Invalid Title
Initial Comment:
Betacommand multichill: I know you wrote flickrripper.py and Im trying to fix an issue with it, and thought it might be easier for you to fix
Betacommand lines 157-161 where it grabs the description and uses it for the file name
Betacommand when you start working with non-latin descriptions it doesnt handle multi-byte characters well, it ended up with a title over 320 bytes
Betacommand the max mediawiki lets you have is 255
multichill Lol
Betacommand multichill: really rather a pain
multichill So the check shoul probably encode it and than see how long it is?
Betacommand correct
multichill Or just lower the limit a bit?
Betacommand thai letters for example are 3 bytes
Betacommand notes it was discovered with flickrripper.py -autonomous -user_id:40561337@N07 -addcategory:"Files from Abhisit Vejjajiva Flickr stream"
multichill Betacommand: Could you file a bug for this?
Betacommand multichill: you would need to cut it down to 85 to be safe
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-06-20 00:08
Message:
an idea for getFilename (could anybody test it whether it works)
if not title:
#find the max length for a mw title
maxBytes = 240 - len(project.encode('utf-8')) \
- len(username.encode('utf-8'))
description = photoInfo.find('photo').find('description').text
if description:
descBytes = len(description.encode('utf-8'))
if descBytes > maxBytes:
# maybe we cut more than needed, anyway we do it
items = max(0, len(description) - maxBytes + descBytes)
description = description[:items]
title = cleanUpTitle(description)
else:
title = u''
# Should probably have the id of the photo as last resort.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-06-19 23:03
Message:
I guess the title is cutted by mw and not the slice operator since it works
correct for unicode strings. len() also gives the number of characters not
the number bytes. Do we have any size(object) method?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536400&group_…
Bugs item #3536400, was opened at 2012-06-19 12:52
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536400&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: betacommand (betacommand)
Assigned to: Nobody/Anonymous (nobody)
Summary: Invalid Title
Initial Comment:
Betacommand multichill: I know you wrote flickrripper.py and Im trying to fix an issue with it, and thought it might be easier for you to fix
Betacommand lines 157-161 where it grabs the description and uses it for the file name
Betacommand when you start working with non-latin descriptions it doesnt handle multi-byte characters well, it ended up with a title over 320 bytes
Betacommand the max mediawiki lets you have is 255
multichill Lol
Betacommand multichill: really rather a pain
multichill So the check shoul probably encode it and than see how long it is?
Betacommand correct
multichill Or just lower the limit a bit?
Betacommand thai letters for example are 3 bytes
Betacommand notes it was discovered with flickrripper.py -autonomous -user_id:40561337@N07 -addcategory:"Files from Abhisit Vejjajiva Flickr stream"
multichill Betacommand: Could you file a bug for this?
Betacommand multichill: you would need to cut it down to 85 to be safe
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-06-19 23:03
Message:
I guess the title is cutted by mw and not the slice operator since it works
correct for unicode strings. len() also gives the number of characters not
the number bytes. Do we have any size(object) method?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3536400&group_…