template indt
This commit is contained in:
parent
c738d324fa
commit
51a55d1968
BIN
book/templates/template-GOTHIC-two column range left.indt
(Stored with Git LFS)
Normal file
BIN
book/templates/template-GOTHIC-two column range left.indt
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
book/templates/template-MINUSCULE-two column range left.indt
(Stored with Git LFS)
Normal file
BIN
book/templates/template-MINUSCULE-two column range left.indt
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
import json, os
|
||||
import json, os, logging
|
||||
import xml.etree.ElementTree as et
|
||||
import export.utils
|
||||
import config
|
||||
@ -14,11 +14,13 @@ def export_generate_path(tag):
|
||||
now = datetime.now()
|
||||
return os.path.join(config.export['path'], tag + "_[now].xml")
|
||||
|
||||
def emit_mail_xml(msg, xmlel):
|
||||
def emit_mail_xml(msg, li, xmlel):
|
||||
|
||||
global nn
|
||||
nn += 1
|
||||
|
||||
logging.info("export xml: " + li)
|
||||
|
||||
mail = et.SubElement(xmlel, 'mail')
|
||||
|
||||
subject = et.SubElement(mail, 'subject')
|
||||
@ -44,7 +46,7 @@ def emit_mail_xml(msg, xmlel):
|
||||
followups = export.utils.index_follow_up(msg)
|
||||
followups.sort(key=lambda tup: tup[0])
|
||||
for d, f in followups:
|
||||
emit_mail_xml(f, xmlel)
|
||||
emit_mail_xml(f, li, xmlel)
|
||||
|
||||
|
||||
#------------------------------------------------------------
|
||||
@ -69,7 +71,7 @@ def export_single_tag(t, sel, fout):
|
||||
chapter_mails = et.SubElement(chapter, 'mails')
|
||||
|
||||
for m in ch['lists']:
|
||||
emit_mail_xml(m, chapter_mails)
|
||||
emit_mail_xml(m, m['list'], chapter_mails)
|
||||
|
||||
fout.write(export.utils.remove_invalid_xml_characters(et.tostring(chapter).decode('utf-8', 'ignore')))
|
||||
|
||||
|
||||
@ -239,6 +239,7 @@ def commit_dump(li, url, tag):
|
||||
if tag not in list(dump.keys()):
|
||||
dump[tag] = {"desc": desc, "lists": []}
|
||||
|
||||
m['list'] = li
|
||||
dump[tag]['lists'].append(m)
|
||||
|
||||
with open(sel_dump, 'w+', encoding='utf-8') as fout:
|
||||
|
||||
@ -1,125 +0,0 @@
|
||||
{
|
||||
"cyberfeminism": [
|
||||
{
|
||||
"list": "nettime-l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-9706/msg00111.html"
|
||||
}
|
||||
],
|
||||
"end2end": [],
|
||||
"net.art": [
|
||||
{
|
||||
"list": "crumb",
|
||||
"url": "https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind1406&L=new-media-curating&F=&S=&P=15160"
|
||||
},
|
||||
{
|
||||
"list": "crumb",
|
||||
"url": "https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind1406&L=new-media-curating&F=&S=&P=40578"
|
||||
},
|
||||
{
|
||||
"list": "crumb",
|
||||
"url": "https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind1406&L=new-media-curating&F=&S=&P=41637"
|
||||
},
|
||||
{
|
||||
"list": "crumb",
|
||||
"url": "https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind1406&L=new-media-curating&F=&S=&P=42354"
|
||||
},
|
||||
{
|
||||
"list": "crumb",
|
||||
"url": "https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind1406&L=new-media-curating&F=&S=&P=43292"
|
||||
},
|
||||
{
|
||||
"list": "crumb",
|
||||
"url": "https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind1406&L=new-media-curating&F=&S=&P=47543"
|
||||
},
|
||||
{
|
||||
"list": "crumb",
|
||||
"url": "https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind1406&L=new-media-curating&F=&S=&P=48346"
|
||||
},
|
||||
{
|
||||
"list": "crumb",
|
||||
"url": "https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind1406&L=new-media-curating&F=&S=&P=54012"
|
||||
},
|
||||
{
|
||||
"list": "nettime-l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-9708/msg00010.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime-l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-9708/msg00009.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime-l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-9703/msg00038.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime-l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-9703/msg00060.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime-l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-9703/msg00096.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime-l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-9610/msg00029.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime-l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-9705/msg00053.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime-l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-9705/msg00003.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime-l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-9707/msg00014.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime-l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-0102/msg00109.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime-l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-0102/msg00117.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime-l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-0102/msg00084.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime-l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-0102/msg00162.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime-l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-0102/msg00153.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime-l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-0102/msg00202.html"
|
||||
},
|
||||
{
|
||||
"list": "crumb",
|
||||
"url": "https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind1310&L=new-media-curating&F=&S=&P=2942"
|
||||
},
|
||||
{
|
||||
"list": "empyre",
|
||||
"url": "http://lists.cofa.unsw.edu.au/pipermail/empyre/2016-September/009250.html"
|
||||
},
|
||||
{
|
||||
"list": "empyre",
|
||||
"url": "http://lists.cofa.unsw.edu.au/pipermail/empyre/2016-September/009253.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime-l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-0009/msg00209.html"
|
||||
}
|
||||
],
|
||||
"new media art": [
|
||||
{
|
||||
"list": "nettime-l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-0905/msg00038.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@ -5,43 +5,40 @@
|
||||
},
|
||||
"net.art": {
|
||||
"lists": [
|
||||
{
|
||||
"list": "crumb",
|
||||
"url": "https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind1207&L=new-media-curating&F=&S=&P=1869"
|
||||
},
|
||||
{
|
||||
"list": "nettime_l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-9703/msg00094.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime_l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-9703/msg00060.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime_l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-9703/msg00088.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime_l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-9703/msg00089.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime_l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-9703/msg00096.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime_l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-9704/msg00000.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime_l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-9912/msg00099.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime_l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-9912/msg00106.html"
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-0210/msg00040.html"
|
||||
}
|
||||
],
|
||||
"desc": "something"
|
||||
"desc": "..."
|
||||
},
|
||||
"Tactical Media": {
|
||||
"desc": "...",
|
||||
"lists": [
|
||||
{
|
||||
"list": "nettime_l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-0207/msg00013.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime_l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-0207/msg00072.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime_l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-0211/msg00002.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime_l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-0606/msg00001.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime_l",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-l-1909/msg00038.html"
|
||||
},
|
||||
{
|
||||
"list": "nettime_bold",
|
||||
"url": "https://nettime.org/Lists-Archives/nettime-bold-0010/msg00383.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user