Home | Trees | Index | Help |
---|
|
1 ############################################################################## 2 # 3 # Zope Public License (ZPL) Version 1.0 4 # ------------------------------------- 5 # 6 # Copyright (c) Digital Creations. All rights reserved. 7 # 8 # This license has been certified as Open Source(tm). 9 # 10 # Redistribution and use in source and binary forms, with or without 11 # modification, are permitted provided that the following conditions are 12 # met: 13 # 14 # 1. Redistributions in source code must retain the above copyright 15 # notice, this list of conditions, and the following disclaimer. 16 # 17 # 2. Redistributions in binary form must reproduce the above copyright 18 # notice, this list of conditions, and the following disclaimer in 19 # the documentation and/or other materials provided with the 20 # distribution. 21 # 22 # 3. Digital Creations requests that attribution be given to Zope 23 # in any manner possible. Zope includes a "Powered by Zope" 24 # button that is installed by default. While it is not a license 25 # violation to remove this button, it is requested that the 26 # attribution remain. A significant investment has been put 27 # into Zope, and this effort will continue if the Zope community 28 # continues to grow. This is one way to assure that growth. 29 # 30 # 4. All advertising materials and documentation mentioning 31 # features derived from or use of this software must display 32 # the following acknowledgement: 33 # 34 # "This product includes software developed by Digital Creations 35 # for use in the Z Object Publishing Environment 36 # (http://www.zope.org/)." 37 # 38 # In the event that the product being advertised includes an 39 # intact Zope distribution (with copyright and license included) 40 # then this clause is waived. 41 # 42 # 5. Names associated with Zope or Digital Creations must not be used to 43 # endorse or promote products derived from this software without 44 # prior written permission from Digital Creations. 45 # 46 # 6. Modified redistributions of any form whatsoever must retain 47 # the following acknowledgment: 48 # 49 # "This product includes software developed by Digital Creations 50 # for use in the Z Object Publishing Environment 51 # (http://www.zope.org/)." 52 # 53 # Intact (re-)distributions of any official Zope release do not 54 # require an external acknowledgement. 55 # 56 # 7. Modifications are encouraged but must be packaged separately as 57 # patches to official Zope releases. Distributions that do not 58 # clearly separate the patches from the original work must be clearly 59 # labeled as unofficial distributions. Modifications which do not 60 # carry the name Zope may be packaged in any form, as long as they 61 # conform to all of the clauses above. 62 # 63 # 64 # Disclaimer 65 # 66 # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY 67 # EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 68 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 69 # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL CREATIONS OR ITS 70 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 71 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 72 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 73 # USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 74 # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 75 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 76 # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 77 # SUCH DAMAGE. 78 # 79 # 80 # This software consists of contributions made by Digital Creations and 81 # many individuals on behalf of Digital Creations. Specific 82 # attributions are listed in the accompanying credits file. 83 # 84 ############################################################################## 85 __doc__='''Machinery to support through-the-web editing 86 87 $Id: DT_UI.py 694 2003-04-16 02:53:50Z sc $''' 88 __version__='$Revision: 694 $'[11:-2] 89 90 from DT_HTML import HTML 91 92 FactoryDefaultString="Factory Default" 93 94 HTML.document_template_edit_header='<h2>Edit Document</h2>' 95 HTML.document_template_form_header='' 96 HTML.document_template_edit_footer=( 97 """<FONT SIZE="-1"> 98 <I><A HREF="http://www.digicool.com/products/copyright.html"> 99 © 1997 Digital Creations, L.L.C.</A></I></FONT>""") 100 101 HTML.document_template_edit_width=58 102 103 HTML._manage_editForm = HTML( 104 """<HTML> 105 <HEAD> 106 <TITLE>HTML Template Editor</TITLE> 107 </HEAD> 108 <BODY bgcolor="#FFFFFF"> 109 <!--#var document_template_edit_header--> 110 111 <FORM name="editform" ACTION="<!--#var URL1-->/manage_edit" METHOD="POST"> 112 <!--#var document_template_form_header--> 113 Document template source: 114 <center> 115 <br> 116 <TEXTAREA NAME="data:text" cols="<!--#var document_template_edit_width-->" 117 rows="20"><!--#var __str__--></TEXTAREA> 118 119 <br> 120 <INPUT NAME=SUBMIT TYPE="SUBMIT" VALUE="Change"> 121 <INPUT NAME=SUBMIT TYPE="RESET" VALUE="Reset"> 122 <INPUT NAME="dt_edit_name" TYPE="HIDDEN" 123 VALUE="<!--#var URL1-->"> 124 <!--#if FactoryDefaultString--> 125 <INPUT NAME=SUBMIT TYPE="SUBMIT" 126 VALUE="<!--#var FactoryDefaultString-->"> 127 <!--#/if FactoryDefaultString--> 128 <INPUT NAME=SUBMIT TYPE="SUBMIT" VALUE="Cancel"> 129 <!--#if HTTP_REFERER--> 130 <INPUT NAME="CANCEL_ACTION" TYPE="HIDDEN" 131 VALUE="<!--#var HTTP_REFERER-->"> 132 <!--#else HTTP_REFERER--> 133 <!--#if URL1--> 134 <INPUT NAME="CANCEL_ACTION" TYPE="HIDDEN" 135 VALUE="<!--#var URL1-->"> 136 <!--#/if URL1--> 137 <!--#/if HTTP_REFERER--> 138 </center> 139 </FORM> 140 141 <BR CLEAR="ALL"> 142 <!--#var document_template_edit_footer--> 143 144 </BODY> 145 </HTML>""",) 146 147 HTML.editConfirmation=HTML( 148 """<html><head><title>Change Successful</title></head><body> 149 <!--#if CANCEL_ACTION--> 150 <form action="<!--#var CANCEL_ACTION-->" method="POST"> 151 <center> 152 <em><!--#var dt_edit_name--></em><br>has been changed.<br><br> 153 <input type=submit name="SUBMIT" value="OK"> 154 </center> 155 </form></body></html> 156 <!--#else CANCEL_ACTION--> 157 <center> 158 <em><!--#var dt_edit_name--></em><br>has been changed. 159 </center> 160 <!--#/if CANCEL_ACTION-->""") 161
Home | Trees | Index | Help |
---|
Generated by Epydoc 3.0alpha2 on Fri Sep 28 01:01:07 2007 | http://epydoc.sf.net |