Esempio n. 1
0
from scrapy_test.libs.python_utils.types.enum import enum

DeletedListingReasonEnum = enum(
  #did we manually delete it?
  AdminDeleted=1,
  #was the listing no longer alive? Was it returning 404 or did it convey the apartment was no longer available?
  DeadListing=2,
  #notified unavailable by external party
  NotifiedUnavailable=3,
)

DeletedListingReasonChoices = (
  (DeletedListingReasonEnum.AdminDeleted, 'Admin Deleted'),
  (DeletedListingReasonEnum.DeadListing, 'Dead Listing'),
  (DeletedListingReasonEnum.NotifiedUnavailable, 'Notified Unavailable'),
)
Esempio n. 2
0
from scrapy_test.libs.python_utils.types.enum import enum

AvailabilityStatusEnum = enum(
  Available='available',
  Unavailable='unavailable',
  #another tenant found this apartment to be unavailable
  DifferentUserNotifiedUnavailable='different_user_notified_unavailable',
  UnknownAvailability='unknown_availability',
  AllListingsDeleted='all_listings_deleted',
)
Esempio n. 3
0
from scrapy_test.libs.python_utils.types.enum import enum

ApartmentUnavailableReasonEnum = enum(
  AllListingsDeleted='All Listings Deleted',
  NotifiedUnavailable='Notified Unavailable',
)