Skip to content

Instantly share code, notes, and snippets.

LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'syslog': {
'format': "%(asctime)s.%(msecs)03d %(levelname).3s [%(name)s:%(line\
no)s] "
"%(message)s",
'datefmt': "%y%m%d %H%M%S"
},
@renejsum
renejsum / LOGGING
Created August 14, 2018 18:49
Standard LOGGING conf
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'syslog': {
'format': "%(asctime)s.%(msecs)03d %(levelname)-8s [%(name)s:%(lineno)s] "
"%(message)s",
'datefmt': "%y%m%d %H%M%S"
},
},
import string
from docx import Document
document = Document('test.docx')
print document.core_properties.author
# Our DMS has added the edocs.* custom props
print "Version=%s" % document.custom_properties["edocs.Version"]
print "Date=%s" % document.custom_properties["edocs.Date"]
print "case=%s" % document.custom_properties["edocs.Case"]