Commits

Felix Geller  committed 62f983c

Also printing event identifier

  • Participants
  • Parent commits 8fa7d2b

Comments (0)

Files changed (1)

 
 item = """** %s
    :PROPERTIES:
+   :Id:       %s
    :When:     %s
    :Where:    %s
    :Who:      %s
   return '%s--%s' % tuple([strftime(tstamp, t) for t in (st, et)])
 
 def write_item(event, org_file):
+  event_id = event.id.text
   title = event.title.text
   when = date_range(event.when[0].start, event.when[0].end)
   where = event.where[0].text or 'N/A'
   who = ', '.join([x.value for x in event.who])
   description = event.content.text or 'N/A'
-  itemdata =  tuple([s.encode('UTF-8') for s in (title, when, where, who, description)])
+  itemdata =  tuple([s.encode('UTF-8') for s in (title, event_id, when, where, who, description)])
   org_file.write(item % itemdata)
 
 def authinfo_pw(login):