f.write(json.dumps(includes))
f.close()
+ lib._fileadd(resolve('parts'))
+
# update the parts cache
PartCache.update_cache(docid, current.owner,\
stored_includes, includes)
f = lib._fileopen(resolve('xml'), 'w+')
f.write(data)
f.close()
-
+
+ ndoc = None
ndoc = current.invoke_and_commit(\
xml_update_action, lambda d: (msg, current.owner) )
try:
# return the new revision number
- return response.SuccessAllOk.django_response({
+ return response.SuccessAllOk().django_response({
"document": ndoc.id,
"subview": "xml",
"previous_revision": current.revision,
- "updated_revision": ndoc.revision
+ "updated_revision": ndoc.revision,
+ "url": reverse("doctext_view", args=[ndoc.id, ndoc.revision])
})
except Exception, e:
if ndoc: lib._rollback()
"parent_user_resivion": udoc.revision,
"parent_revision": doc.revision,
"revision": udoc.revision,
- })
+ })
body {
margin: 0;
- font: 10pt Helvetica, Verdana, sans-serif;
+ font: 12px Helvetica, Verdana, sans-serif;
overflow: hidden;
background: #AAA;
}
top: 2.4em; left: 0px; right: 0px; bottom: 0px;
overflow: auto;
background-color: white;
- padding: 0.2em 1em;
}
+/*
ul {
margin: 20px;
padding: 0;
margin: 0;
padding: 0;
list-style: none;
-}
+} */
a {
text-decoration: none;
/* ========== */
#panels {
- position: absolute;
- bottom: 0px; left: 0px; right: 0px; top: 0px;
+ height: 100%;
+ width: 100%;
}
.panel-wrap {
margin: 0.5em;
}
- .CodeMirror-line-numbers
- {
- text-align: right;
- padding-top: 0.4em;
- padding-right: 2px;
- width: 28px;
- font-size: 10pt;
- background: black;
- color: white;
- }
+ /* ======= */
+ /* = New = */
+ /* ======= */
+ #splitview {
+ width: 100%;
+ height: 100%;
+ padding: 0;
+ margin: 0;
+ }
+
+ .splitview-splitbar {
+ width: 5px;
+ border-left: 1px solid #999;
+ border-right: 1px solid #999;
+ height: 100%;
+ background-color: #CCC;
+ z-index: 100;
+ }
+
+ .splitview-overlay {
+ z-index: 90;
+ background: #FFF;
+ opacity: 0.5;
+ }
+
+ .panel-container {
+ height: 100%;
+ position: relative;
+ }
+
+ .content-view {
+ position: absolute;
+ top: 20px;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ overflow: none;
+ }
+
+ .xmlview {
+ height: 100%;
+ }
+
+ .view-overlay {
+ z-index: 1000;
+ background: #FFF;
+ opacity: 0.8;
+ text-align: center;
+ text-valign: center;
+ }
+
+ .view-overlay p {
+ display: block;
+ position: relative;
+ top: auto;
+ bottom: auto;
+ height: 40px;
+ }
+
+ .buttontoolbarview {
+ display: block;
+ background-color: #CCC;
+ }
+
+ .buttontoolbarview a {
+ color: #000;
+ text-decoration: none;
+ }