本文整理匯總了Python中model.Point.deposit方法的典型用法代碼示例。如果您正苦於以下問題:Python Point.deposit方法的具體用法?Python Point.deposit怎麽用?Python Point.deposit使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類model.Point
的用法示例。
在下文中一共展示了Point.deposit方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __parse_base_atm_terminal
# 需要導入模塊: from model import Point [as 別名]
# 或者: from model.Point import deposit [as 別名]
def __parse_base_atm_terminal(self, row, point_type, coordinates, deposit=False):
point = Point()
point.prov = self.uid
point.type = point_type
point.name = normalize_text(u'№' + str(int(row[1])))
city = row[2]
if u'р-н' not in row[2]:
city = u'г. %s' % city
point.address = normalize_address(u'%s, %s' % (city, row[3]))
point.place = normalize_text(row[4])
if u'только безнал.платежи' in row[5]:
point.currency = []
if deposit:
point.deposit = False
else:
point.currency = map(strip, row[5].split(','))
if deposit:
point.deposit = True
point.time = normalize_time(row[6])
point.check_information = CHECK_OFFICIAL
point.lat, point.lng = self.__get_point_coordinate(point.address, coordinates)
if point.lat and point.lng:
point.check_coordinates = CHECK_OFFICIAL
else:
warning_not_official_coordinates(point)
return point
示例2: __parse_terminal
# 需要導入模塊: from model import Point [as 別名]
# 或者: from model.Point import deposit [as 別名]
def __parse_terminal(self, item):
point = Point()
point.prov = self.uid
point.type = TYPE_TERMINAL
point.address, point.place = split_address_place(item('td:eq(2)').text())
point.place = normalize_text(item('td:eq(1)').text())
point.currency = map(strip, item('td:eq(4)').text().split(','))
if point.currency:
point.deposit = True
else:
point.deposit = False
point.time = normalize_time(item('td:eq(3)').text())
point.check_information = CHECK_OFFICIAL
warning_not_official_coordinates(point)
return point
示例3: __parse_terminal
# 需要導入模塊: from model import Point [as 別名]
# 或者: from model.Point import deposit [as 別名]
def __parse_terminal(self, item):
point = Point()
point.prov = self.uid
point.type = TYPE_TERMINAL
point.address, point.place = split_address_place(item('td:eq(1)').text())
point.time = normalize_time(item('td:eq(2)').text())
point.deposit = u'Пополнение карточки наличными' in item('td:eq(3)').text()
point.check_information = CHECK_OFFICIAL
warning_not_official_coordinates(point)
return point
示例4: __parse_terminal
# 需要導入模塊: from model import Point [as 別名]
# 或者: from model.Point import deposit [as 別名]
def __parse_terminal(self, item):
point = Point()
point.prov = self.uid
point.type = TYPE_TERMINAL
point.name = normalize_text(item('td:eq(0)').text())
point.address, point.place = split_address_place(item('td:eq(1)').text())
point.place = point.name
point.time = normalize_time(item('td:eq(2)').text())
point.deposit = normalize_text(item('td:eq(3)').text()).lower() == u'есть'
point.check_information = CHECK_OFFICIAL
warning_not_official_coordinates(point)
return point