Browse Source

Handle s/Draft/Stable/ in send-updates.py

master
Jonas Schäfer 8 months ago
parent
commit
f200f3517b
  1. 2
      tools/send-updates.py
  2. 6
      tools/xeplib.py

2
tools/send-updates.py

@ -122,7 +122,7 @@ changed back to Experimental."""+STALENOTE @@ -122,7 +122,7 @@ changed back to Experimental."""+STALENOTE
SUBJECT_NONPROTO_TEMPLATE = \
"{action.value}: XEP-{info[number]:04d} ({info[title]})"
"{action.display_name}: XEP-{info[number]:04d} ({info[title]})"
def dummy_info(number):

6
tools/xeplib.py

@ -59,6 +59,12 @@ class Action(enum.Enum): @@ -59,6 +59,12 @@ class Action(enum.Enum):
Status.REJECTED: cls.REJECT,
}[status]
@property
def display_name(self):
if self == self.DRAFT:
return "STABLE"
return self.value
def load_xepinfo(el):
accepted = el.get("accepted").lower() == "true"

Loading…
Cancel
Save