[zopeorg-checkins] CVS: Products/ParsedXML/dtml - DOMTree.dtml:1.1 documentAdd.dtml:1.1 persEdit.dtml:1.1 transEdit.dtml:1.1
Sidnei da Silva
sidnei at x3ng.com.br
Fri May 30 11:17:30 EDT 2003
Update of /cvs-zopeorg/Products/ParsedXML/dtml
In directory cvs.zope.org:/tmp/cvs-serv19195/ParsedXML/dtml
Added Files:
DOMTree.dtml documentAdd.dtml persEdit.dtml transEdit.dtml
Log Message:
Adding products needed for migration of NZO
=== Added File Products/ParsedXML/dtml/DOMTree.dtml ===
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<p class="form-help">
You can view the DOM tree which represents your XML document by using
the controls below. Clicking on a node will allow you to edit the contents
of the node.
</p>
<dtml-if "not REQUEST.has_key('showAttr')">
<dtml-call "REQUEST.set('showAttr',0)">
</dtml-if>
<dtml-if "not REQUEST.has_key('showText')">
<dtml-call "REQUEST.set('showText',0)">
</dtml-if>
<!--<P>
<dtml-if showAttr>
<a href="<dtml-var URL0>?expand_all=1&showAttr=1">Expand entire tree</a> |
<a href="<dtml-var URL0>?collapse_all=1&showAttr=1">Collapse tree</a> |
<dtml-else>
<a href="<dtml-var URL0>?expand_all=1">Expand entire tree</a> |
<a href="<dtml-var URL0>?collapse_all=1">Collapse tree</a> |
</dtml-if>
<dtml-if showAttr>
<a href="<dtml-var URL0>">Show/Hide Attributes</a>
<dtml-else>
<a href="<dtml-var URL0>?showAttr=1">Show/Hide Attributes</a>
</dtml-if>
</P>-->
<P>
<a href="<dtml-var URL0>?expand_all=1<dtml-if showAttr>&showAttr=1</dtml-if><dtml-if showText>&showText=1</dtml-if>">Expand entire tree</a> |
<a href="<dtml-var URL0>?collapse_all=1<dtml-if showAttr>&showAttr=1</dtml-if><dtml-if showText>&showText=1</dtml-if>">Collapse tree</a> |
<dtml-comment>
no for... in attributes until issue (15) resolved
<dtml-if showAttr>
<a href="<dtml-var URL0><dtml-if showText>?showText=1</dtml-if>">Show/Hide Attributes</a> |
<dtml-else>
<a href="<dtml-var URL0>?showAttr=1<dtml-if showText>&showText=1</dtml-if>">Show/Hide Attributes</a> |
</dtml-if>
</dtml-comment>
<dtml-if showText>
<a href="<dtml-var URL0><dtml-if showAttr>?showAttr=1</dtml-if>">Show/Hide text node values</a>
<dtml-else>
<a href="<dtml-var URL0>?showText=1<dtml-if showAttr>&showAttr=1</dtml-if>">Show/Hide text node values</a>
</dtml-if>
</P>
<dtml-if "nodeType!=9">
<strong><dtml-var nodeName></strong><br>
<dtml-comment>
<dtml-if "attributes and showAttr">
<dtml-in "attributes">
<dtml-var name> =</td><td>"<em><dtml-var value></em>"<br>
</dtml-in>
</dtml-if>
</dtml-comment>
</dtml-if>
<dtml-tree>
<dtml-if "nodeType==3 and showText">
<strong>
<a href='<dtml-var tree-item-url>/manage_workspace'>O</a>
<font size="-3"><dtml-var nodeValue></font>
</strong>
<dtml-else>
<strong>
<a href='<dtml-var tree-item-url>/manage_workspace'><dtml-var nodeName></a>
</strong>
</dtml-if>
</a>
<dtml-comment>
<dtml-if "attributes and showAttr">
<Table align"left">
<dtml-in "attributes">
<dtml-let sheetid="ownerElement.propertysheets.get(namespaceURI).id">
<tr>
<td align='right'>
<a href='<dtml-var tree-item-url>/propertysheets/<dtml-var sheetid>/manage'>
<dtml-var name>
</a> =
</td>
<td>"<em><dtml-var value></em>"</td>
</tr>
</dtml-let>
</dtml-in>
</Table>
</dtml-if>
</dtml-comment>
</dtml-tree>
<dtml-var manage_page_footer>
=== Added File Products/ParsedXML/dtml/documentAdd.dtml ===
<dtml-var manage_page_header>
<dtml-var "manage_form_title(this(), _,
form_title='Add Parsed XML Document',
help_product='ParsedXML',
help_topic=''
)">
<p class="form-help">
A Parsed XML document can contain any well-formed XML text. You can use a Parsed XML document to hold and manipulate structured data in XML format.
</p>
<p class="form-help">
You may create a new Parsed XML document using the form below.
You may also choose to upload an existing html file from your
local computer by clicking the <I>Browse</I> button.
</p>
<form action="manage_addParsedXML" method="post" enctype="multipart/form-data">
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="left" valign="top">
<div class="form-label">
Id
</div>
</td>
<td align="left" valign="top">
<input type="text" name="id" size="40" />
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-optional">
Title
</div>
</td>
<td align="left" valign="top">
<input type="text" name="title" size="40" />
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-optional">
File
</div>
</td>
<td align="left" valign="top">
<input type="file" name="file:string" size="25" value="" />
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-optional">Content-type</div>
</td>
<td>
<input type="text" name="contentType" size="20" value="text/xml">
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-optional">Parsing with namespaces</div>
</td>
<td>
yes
<input type="radio" name="useNamespaces:int" value="1" checked>
no
<input type="radio" name="useNamespaces:int" value="0">
</td>
</tr>
<tr>
<td align="left" valign="top">
</td>
<td align="left" valign="top">
<div class="form-element">
<input class="form-element" type="submit" name="submit"
value=" Add " />
<input class="form-element" type="submit" name="submit"
value=" Add and Edit " />
</div>
</td>
</tr>
</table>
</form>
<dtml-var manage_page_footer>
=== Added File Products/ParsedXML/dtml/persEdit.dtml ===
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<dtml-comment>
This form is for a persistent proxy node. It would be cleaner to just
include a section specific to the persistent/transient node, but DTML
can be tricky.
</dtml-comment>
<p class="form-help">
You may edit the source for this document using the form below. You
may also upload the source for this document from a local file. Click
the <em>browse</em> button to select a local file to upload.
</p>
<form action="manage_edit" method="post">
<table cellpadding="2" cellspacing="0" width="100%" border="0">
<dtml-if "nodeType == 9">
<dtml-comment>this is the document</dtml-comment>
<tr>
<td align="left" valign="top">
<div class="form-optional">
Title
</div>
</td>
<td align="left" valign="top">
<input type="text" name="title" size="20"
value="<dtml-if title><dtml-var title></dtml-if>">
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-optional">Content-type</div>
</td>
<td>
<input type="text" name="contentType" size="20"
value="<dtml-var contentType>">
</td>
<td align="left" valign="top">
<div class="form-optional">Parsing with namespaces</div>
</td>
<td>
yes
<input type="radio" name="useNamespaces:int" value="1"
<dtml-unless noNamespaces>checked</dtml-unless>>
no
<input type="radio" name="useNamespaces:int" value="0"
<dtml-if noNamespaces>checked</dtml-if>>
</td>
</tr>
<dtml-else>
<dtml-comment>not at the document, some things not editable</dtml-comment>
<dtml-if title>
<tr>
<td align="left" valign="top">
<div class="form-optional">Title</div>
</td>
<td align="left" valign="top">
<dtml-var title>
</td>
</tr>
</dtml-if>
<tr>
<td align="left" valign="top">
<div class="form-optional">Content-type</div>
</td>
<td><dtml-var contentType></td>
<td align="left" valign="top">
<div class="form-optional">Parsing with namespaces:</div>
</td>
<td>
<dtml-with ownerDocument>
<dtml-if noNamespaces>
no
<dtml-else>
yes
</dtml-if noNamespaces>
</dtml-with ownerDocument>
</td>
</tr>
</dtml-if nodeType>
</table>
<table cellpadding="2" cellspacing="0" width="100%" border="0">
<tr>
<td align="left" valign="top" colspan="2">
<div style="width: 100%;">
<textarea name="data:text" wrap="soft" style="width: 100%;"<dtml-if
dtpref_cols> cols="<dtml-var dtpref_cols>"<dtml-else
> cols="50"</dtml-if><dtml-if dtpref_rows> rows="<dtml-var
dtpref_rows>"<dtml-else> rows="20"</dtml-if>><dtml-var textareaStr></textarea>
</div>
</td>
</tr>
<tr>
<td align="left" valign="top" colspan="2">
<div class="form-element">
<input class="form-element" type="submit" name="SUBMIT" value="Save Changes">
<input class="form-element" type="submit" name="SUBMIT" value="PrettyPrint">
<input class="form-element" type="submit" name="SUBMIT" value="Taller">
<input class="form-element" type="submit" name="SUBMIT" value="Shorter">
<input class="form-element" type="submit" name="SUBMIT" value="Wider">
<input class="form-element" type="submit" name="SUBMIT" value="Narrower">
</div>
</td>
</tr>
</table>
</form>
<form action="manage_upload" method="POST" enctype="multipart/form-data">
<table cellpadding="2" cellspacing="0" border="0">
<tr>
<td align="left" valign="top">
<div class="form-label">
File
</div>
</td>
<td align="left" valign="top">
<input type="file" name="file" size="25" value="">
</td>
</tr>
<tr>
<td></td>
<td align="left" valign="top">
<div class="form-element">
<input class="form-element" type="submit" value="Upload File">
</div>
</td>
</tr>
</table>
</form>
<dtml-var manage_page_footer>
=== Added File Products/ParsedXML/dtml/transEdit.dtml ===
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<dtml-comment>
This form is for a transient proxy node, so some actions aren't
present. It would be cleaner to just include a section specific to
the persistent/transient node, but DTML can be tricky.
</dtml-comment>
<dtml-if "nodeType != 9">
<p class="form-help">
You may edit the source for this document using the form below. You
may also upload the source for this document from a local file. Click
the <em>browse</em> button to select a local file to upload.
</p>
<dtml-else>
<dtml-comment>this is the document</dtml-comment>
<p>
<font color="red">
This is a transient proxy of the DOM Document node; unlike subnodes,
the transient Document can't be edited. The persistent Document proxy
can be edited.
<dtml-if getPersistentDoc>
The persistent Document can be traversed to at
<a href='<dtml-var "getPersistentDoc.absolute_url()">/manage_editForm'>
<dtml-var "getPersistentDoc.absolute_url()">/manage_editForm
</a>.
</dtml-if getPersistentDoc>
</font>
</p>
</dtml-if nodeType>
<form action="manage_edit" method="post">
<table cellpadding="2" cellspacing="0" width="100%" border="0">
<dtml-if title>
<tr>
<td align="left" valign="top">
<div class="form-optional">Title</div>
</td>
<td align="left" valign="top">
<dtml-var title>
</td>
</tr>
</dtml-if>
<tr>
<td align="left" valign="top">
<div class="form-optional">Content-type</div>
</td>
<td><dtml-var contentType></td>
<td align="left" valign="top">
<div class="form-optional">Parsing with namespaces:</div>
</td>
<td>
<dtml-with ownerDocument>
<dtml-if noNamespaces>
no
<dtml-else>
yes
</dtml-if noNamespaces>
</dtml-with ownerDocument>
</td>
</tr>
</table>
<table cellpadding="2" cellspacing="0" width="100%" border="0">
<tr>
<td align="left" valign="top" colspan="2">
<div style="width: 100%;">
<textarea name="data:text" wrap="soft" style="width: 100%;"<dtml-if
dtpref_cols> cols="<dtml-var dtpref_cols>"<dtml-else
> cols="50"</dtml-if><dtml-if dtpref_rows> rows="<dtml-var
dtpref_rows>"<dtml-else> rows="20"</dtml-if>><dtml-var textareaStr></textarea>
</div>
</td>
</tr>
<dtml-if "nodeType != 9">
<tr>
<td align="left" valign="top" colspan="2">
<div class="form-element">
<input class="form-element" type="submit" name="SUBMIT" value="Save Changes">
<input class="form-element" type="submit" name="SUBMIT" value="PrettyPrint">
<input class="form-element" type="submit" name="SUBMIT" value="Taller">
<input class="form-element" type="submit" name="SUBMIT" value="Shorter">
<input class="form-element" type="submit" name="SUBMIT" value="Wider">
<input class="form-element" type="submit" name="SUBMIT" value="Narrower">
</div>
</td>
</tr>
</dtml-if nodeType>
</table>
</form>
<dtml-if "nodeType != 9">
<form action="manage_upload" method="POST" enctype="multipart/form-data">
<table cellpadding="2" cellspacing="0" border="0">
<tr>
<td align="left" valign="top">
<div class="form-label">
File
</div>
</td>
<td align="left" valign="top">
<input type="file" name="file" size="25" value="">
</td>
</tr>
<tr>
<td></td>
<td align="left" valign="top">
<div class="form-element">
<input class="form-element" type="submit" value="Upload File">
</div>
</td>
</tr>
</table>
</form>
</dtml-if nodeType>
<dtml-var manage_page_footer>
More information about the zopeorg-checkins
mailing list