2023-03-26 18:13:07 +02:00
|
|
|
import secrets, string
|
|
|
|
|
|
|
|
class Etykieta:
|
2023-05-25 19:59:54 +02:00
|
|
|
def __init__(self, nadawca, adres, imie, nazwisko, telefon, priorytet):
|
2023-03-26 18:13:07 +02:00
|
|
|
self.nadawca = nadawca
|
|
|
|
self.adres = adres
|
|
|
|
self.imie = imie
|
|
|
|
self.nazwisko = nazwisko
|
|
|
|
self.telefon = telefon
|
2023-05-25 19:59:54 +02:00
|
|
|
self.priorytet = priorytet
|
2023-04-30 23:18:17 +02:00
|
|
|
self.id = ''.join(secrets.choice(string.ascii_uppercase + string.digits) for _ in range(9))
|