from BeautifulSoup import BeautifulSoup, NavigableString
from urllib2 import urlopen
from urllib import urlencode
-import settings
from datetime import datetime, time
from textwrap import wrap
import argparse
import sys
import os.path
+from gotovienna import defaults
+
POSITION_TYPES = ('stop', 'address', 'poi')
TIMEFORMAT = '%H:%M'
DEBUGLOG = os.path.expanduser('~/gotoVienna.debug')
not destination_type in POSITION_TYPES:
raise ParserError('Invalid position type')
- post = settings.search_post
+ post = defaults.search_post
post['name_origin'] = origin
post['type_origin'] = origin_type
post['name_destination'] = destination
post['itdDateDayMonthYear'] = dtime.strftime('%d.%m.%Y')
post['itdTime'] = dtime.strftime('%H:%M')
params = urlencode(post)
- url = '%s?%s' % (settings.action, params)
+ url = '%s?%s' % (defaults.action, params)
try:
f = open(DEBUGLOG, 'a')