変換中に文字列を DateTime に変換する必要があります。このようなもの:
[set-startDate]
blueprint = collective.transmogrifier.sections.inserter
condition = python: item.has_key('startDate')
key = string:startDate
value = python: <conversion to DateTime>
どうすればこれを達成できますか?
変換中に文字列を DateTime に変換する必要があります。このようなもの:
[set-startDate]
blueprint = collective.transmogrifier.sections.inserter
condition = python: item.has_key('startDate')
key = string:startDate
value = python: <conversion to DateTime>
どうすればこれを達成できますか?
collective.transmogrifierのドキュメントを見ると、私の答えが見つかりました。
[set-startDate]
blueprint = collective.transmogrifier.sections.inserter
condition = python: item.has_key('startDate')
key = string:startDate
value = python: modules['DateTime'].DateTime(item['startDate'])