本文整理汇总了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