+2007-12-27:
+Evan Battaglia <gtoevan@gmx.net>
+ * Minor fixes/debugging to gcget. Add gcget-perl
+ * Full screen mode.
+
2007-12-27:
Guilhem Bonnefille <guilhem.bonnefille@gmail.com>:
* Add GpxWritingOptions to control GPX file writing
#
#
try:
- opts, args = getopt.gnu_getopt(sys.argv[1:], "u:p:", ["help"])
+ opts, args = getopt.gnu_getopt(sys.argv[1:], "u:p:d", ["help"])
except getopt.GetoptError:
# print help information and exit:
help()
sys.exit(2)
+DEBUG = False
+
for o, a in opts:
if o == "-p":
PASS = a
if o == "--help" or o == "-h":
help()
sys.exit()
+ if o == "-d":
+ DEBUG = True
if len(args) < 2:
help()
b.select_form("form4")
except:
print >> sys.stderr, "Invalid username/password"
+ if DEBUG:
+ f=open("gcget.badlogin.html","w")
+ f.write(b.response().get_data())
+ f.close()
+ print >> sys.stderr, "Dumping last HTML page recieved into gcget.badlogin.html"
sys.exit()
+
b["origin_lat"] = lat
b["origin_long"] = lon
b["dist"] = maxdist