-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate handling for extend and modify
- Loading branch information
Showing
4 changed files
with
58 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,9 +23,22 @@ | |
# | ||
# | ||
# Author: Komal Thareja ([email protected]) | ||
import enum | ||
from enum import Enum | ||
|
||
|
||
class ReservationOperation(enum.Enum): | ||
Create = enum.auto(), | ||
Modify = enum.auto(), | ||
Extend = enum.auto() | ||
|
||
def __repr__(self): | ||
return self.name | ||
|
||
def __str__(self): | ||
return self.name | ||
|
||
|
||
class ReservationStates(Enum): | ||
""" | ||
Reservation states | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
# | ||
# Author: Komal Thareja ([email protected]) | ||
from __future__ import annotations | ||
|
||
from typing import TYPE_CHECKING | ||
|
||
from fabric_cf.actor.core.common.constants import Constants | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters