Bugs item #3016653, was opened at 2010-06-15 18:19 Message generated for change (Settings changed) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3016653...
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: None Priority: 5 Private: No Submitted By: chanueting (chanueting) Assigned to: xqt (xqt) Summary: upload.py "Invalid input filename given. Try again."
Initial Comment: Could not check the address correctly if the filename is previously wrongly input.
I think the proper command on line 100 of function urlOK should be:
return self.url != len(url) and ('://' in self.url or os.path.exists(self.url))
instead of '' since '' is always False.
----------------------------------------------------------------------
Comment By: SourceForge Robot (sf-robot)
Date: 2010-07-02 02:20
Message: This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2010-06-17 12:59
Message: I would prefer
return len(self.url) > 0 and ('://' in self.url or os.path.exists(self.url))
but it should work as the given expression. Again: What is your command line or what is the filename you typed in?
----------------------------------------------------------------------
Comment By: chanueting (chanueting) Date: 2010-06-17 11:13
Message: Sorry about the typo. The command should be: return len(self.url) and ('://' in self.url or os.path.exists(self.url))
I thought that is a bug since I could only have that works on my machine. May be there is a problem on my machine?
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2010-06-16 10:41
Message: url != len(url) is always True
What is your command line or what is the filename you typed in?
Try to input the file as follows if you are dealing wiht windows os: "C:\My Documents\My Pictures\My Picture.jpg"
----------------------------------------------------------------------
Comment By: chanueting (chanueting) Date: 2010-06-15 18:21
Message: python version.py missed: http://pywiki.pastey.net/137714
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3016653...
pywikipedia-bugs@lists.wikimedia.org