|
|
|
@ -79,9 +79,7 @@
|
|
|
|
|
(if (form/valid? form-def req)
|
|
|
|
|
(let [form-data (form/form-data form-def req)
|
|
|
|
|
form-instance (forms-inst/form-data->instance form-data attrs)
|
|
|
|
|
instance (assoc form-instance :uuid uuid)
|
|
|
|
|
_ (clojure.pprint/pprint instance)]
|
|
|
|
|
(clojure.pprint/pprint (files/persist-files! instance))
|
|
|
|
|
instance (assoc form-instance :uuid uuid)]
|
|
|
|
|
(db/edit! instance (domain/to-revision instance))
|
|
|
|
|
(resp/redirect (path :instance-show instance)))
|
|
|
|
|
(route-show! uuid req))))
|
|
|
|
@ -155,7 +153,7 @@
|
|
|
|
|
; (clojure.pprint/pprint names)
|
|
|
|
|
; (clojure.pprint/pprint instances)
|
|
|
|
|
; (clojure.pprint/pprint source-uuid)
|
|
|
|
|
#_ (clojure.pprint/pprint
|
|
|
|
|
#_(clojure.pprint/pprint
|
|
|
|
|
(map (fn [[target-schema target-instances]]
|
|
|
|
|
{:link-name (get names target-schema)
|
|
|
|
|
:instances target-instances})
|
|
|
|
|