mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-21 07:08:51 -05:00
xepification
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@92 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
parent
213af4acec
commit
cba9804245
26
inxep.py
26
inxep.py
@ -1,12 +1,12 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
# File: protojep.py
|
# File: inxep.py
|
||||||
# Version: 0.1
|
# Version: 0.1
|
||||||
# Description: a script for announcing proto-XEPs
|
# Description: a script for announcing proto-XEPs
|
||||||
# Last Modified: 2004-09-14
|
# Last Modified: 2004-09-14
|
||||||
# Author: Peter Saint-Andre (stpeter@jabber.org)
|
# Author: Peter Saint-Andre (stpeter@jabber.org)
|
||||||
# License: public domain
|
# License: public domain
|
||||||
# HowTo: ./protojep.py filename
|
# HowTo: ./inxep.py filename
|
||||||
# (note: do not include extension!)
|
# (note: do not include extension!)
|
||||||
|
|
||||||
# IMPORTS:
|
# IMPORTS:
|
||||||
@ -32,9 +32,9 @@ def getText(nodelist):
|
|||||||
#
|
#
|
||||||
# 1. XEP filename (sans extension)
|
# 1. XEP filename (sans extension)
|
||||||
|
|
||||||
jepname = sys.argv[1];
|
xepname = sys.argv[1];
|
||||||
|
|
||||||
jepfile = 'inbox/' + jepname + '.xml'
|
xepfile = 'inbox/' + xepname + '.xml'
|
||||||
|
|
||||||
# PARSE XEP HEADERS:
|
# PARSE XEP HEADERS:
|
||||||
#
|
#
|
||||||
@ -45,17 +45,17 @@ jepfile = 'inbox/' + jepname + '.xml'
|
|||||||
# - initials
|
# - initials
|
||||||
# - remark
|
# - remark
|
||||||
|
|
||||||
thejep = parse(jepfile)
|
thexep = parse(xepfile)
|
||||||
jepNode = (thejep.getElementsByTagName("jep")[0])
|
xepNode = (thexep.getElementsByTagName("xep")[0])
|
||||||
headerNode = (jepNode.getElementsByTagName("header")[0])
|
headerNode = (xepNode.getElementsByTagName("header")[0])
|
||||||
titleNode = (headerNode.getElementsByTagName("title")[0])
|
titleNode = (headerNode.getElementsByTagName("title")[0])
|
||||||
title = getText(titleNode.childNodes)
|
title = getText(titleNode.childNodes)
|
||||||
abstractNode = (headerNode.getElementsByTagName("abstract")[0])
|
abstractNode = (headerNode.getElementsByTagName("abstract")[0])
|
||||||
abstract = getText(abstractNode.childNodes)
|
abstract = getText(abstractNode.childNodes)
|
||||||
statusNode = (headerNode.getElementsByTagName("status")[0])
|
statusNode = (headerNode.getElementsByTagName("status")[0])
|
||||||
jepstatus = getText(statusNode.childNodes)
|
xepstatus = getText(statusNode.childNodes)
|
||||||
typeNode = (headerNode.getElementsByTagName("type")[0])
|
typeNode = (headerNode.getElementsByTagName("type")[0])
|
||||||
jeptype = getText(typeNode.childNodes)
|
xeptype = getText(typeNode.childNodes)
|
||||||
revNode = (headerNode.getElementsByTagName("revision")[0])
|
revNode = (headerNode.getElementsByTagName("revision")[0])
|
||||||
versionNode = (revNode.getElementsByTagName("version")[0])
|
versionNode = (revNode.getElementsByTagName("version")[0])
|
||||||
version = getText(versionNode.childNodes)
|
version = getText(versionNode.childNodes)
|
||||||
@ -70,7 +70,7 @@ remark = getText(remarkNode.childNodes)
|
|||||||
#
|
#
|
||||||
# From: editor@jabber.org
|
# From: editor@jabber.org
|
||||||
# To: standards-jig@jabber.org
|
# To: standards-jig@jabber.org
|
||||||
# Subject: LAST CALL: XEP-$jepnum ($title)
|
# Subject: Proposed XMPP Extension: XEP-$xepnum ($title)
|
||||||
# Body:
|
# Body:
|
||||||
# The XMPP Extensions Editor has received a proposal for a new XEP.
|
# The XMPP Extensions Editor has received a proposal for a new XEP.
|
||||||
#
|
#
|
||||||
@ -78,7 +78,7 @@ remark = getText(remarkNode.childNodes)
|
|||||||
#
|
#
|
||||||
# Abstract: $abstract
|
# Abstract: $abstract
|
||||||
#
|
#
|
||||||
# URL: http://www.jabber.org/jeps/inbox/$jepname.html
|
# URL: http://www.xmpp.org/extensions/inbox/$xepname.html
|
||||||
#
|
#
|
||||||
# The XMPP Council will now consider whether to accept
|
# The XMPP Council will now consider whether to accept
|
||||||
# this proposal as a full XEP.
|
# this proposal as a full XEP.
|
||||||
@ -90,11 +90,11 @@ fromaddr = "editor@jabber.org"
|
|||||||
# for real...
|
# for real...
|
||||||
toaddrs = "standards-jig@jabber.org"
|
toaddrs = "standards-jig@jabber.org"
|
||||||
|
|
||||||
thesubject = 'proto-XEP: ' + title
|
thesubject = 'Proposed XMPP Extension: ' + title
|
||||||
introline = 'The XMPP Extensions Editor has received a proposal for a new XEP.'
|
introline = 'The XMPP Extensions Editor has received a proposal for a new XEP.'
|
||||||
titleline = 'Title: ' + title
|
titleline = 'Title: ' + title
|
||||||
abstractline = 'Abstract: ' + abstract
|
abstractline = 'Abstract: ' + abstract
|
||||||
urlline = 'URL: http://www.jabber.org/jeps/inbox/' + jepname + '.html'
|
urlline = 'URL: http://www.xmpp.org/extensions/inbox/' + xepname + '.html'
|
||||||
actionline = 'The XMPP Council will decide within 7 days (or at its next meeting) whether to accept this proposal as an official XEP.'
|
actionline = 'The XMPP Council will decide within 7 days (or at its next meeting) whether to accept this proposal as an official XEP.'
|
||||||
|
|
||||||
#msg = "From: %s\r\n" % fromaddr
|
#msg = "From: %s\r\n" % fromaddr
|
||||||
|
Loading…
Reference in New Issue
Block a user