Commits

Jason R. Coombs committed fedcfd6

Fixed example to work with openpack 1.0

  • Participants
  • Parent commits 1db3ce5

Comments (0)

Files changed (1)

File paradocx/package.py

 		""").lstrip() % (sys.version, zen)
 	op = WordPackage()
 	op.start_part.data = body.decode('utf-8')
-	op.core_properties = cp = CoreProperties(op, '/docProps/core.xml')
+	cp = CoreProperties(op, '/docProps/core.xml')
 	cp.encoding = 'utf-8'
-	op[cp.name] = cp
-	op.content_types.add_override(cp)
+	op.add(cp)
 	op.relate(cp)
 	cp.creator = "Testy McTest"
 	op.save('test.docx')