[zopeorg-checkins] CVS: Products/PythonMethod/www - XXXmethodAdd.dtml:1.1 methodAdd.dtml:1.1 methodEdit.dtml:1.1 methodProxy.dtml:1.1 pymethod.gif:1.1 xpymethod.gif:1.1

Sidnei da Silva sidnei at x3ng.com.br
Fri May 30 11:17:47 EDT 2003


Update of /cvs-zopeorg/Products/PythonMethod/www
In directory cvs.zope.org:/tmp/cvs-serv19195/PythonMethod/www

Added Files:
	XXXmethodAdd.dtml methodAdd.dtml methodEdit.dtml 
	methodProxy.dtml pymethod.gif xpymethod.gif 
Log Message:
Adding products needed for migration of NZO

=== Added File Products/PythonMethod/www/XXXmethodAdd.dtml ===
<html>
<head>
<title>Add XXX Python Method</title>
</head>
<body bgcolor="#FFFFFF" link="#000099" vlink="#555555" alink="#77003B">

<h2>Add XXX Python Method</h2>

<P>
XXX Python Methods allow you to add functionality to Zope by writing Python
functions which are exposed as callable Zope objects.
</P>

<P>
Use the form below to add a Python Method. The <EM>Parameter list</EM>
should be a standard Python parameter list (without the parens), and can
include default values, as well as *tuple and **keyword arguments.
</P>

<form action="manage_addXXXPythonMethod" method="POST">
<table cellspacing="2">
<tr>
  <th align="left" valign="top">ID</th>
  <th align="left" valign="top"><input type="text" name="id" size="50"></th>
</tr>
<tr>
  <th align="left" valign="top"><em>Title</em></th>
  <td align="left" valign="top"><input type="text" name="title" size="50"></td>
</tr>
<tr>	<th align="left">Parameter list</th>
	<td align="left"><input name="params" size="50"></td></tr>
<tr>	<th align="left">Python function body</th>
	<td ALIGN="LEFT"><textarea name="body:text" cols="50" rows="10"></textarea>
</td></tr>
<tr>
<td></td>
<td><br><input type="submit" value="Add"></td>
</tr>
</table>
</form>
</body>
</html>


=== Added File Products/PythonMethod/www/methodAdd.dtml ===
<html>
<head>
<title>Add Python Method</title>
</head>
<body bgcolor="#FFFFFF" link="#000099" vlink="#555555" alink="#77003B">

<h2>Add Python Method</h2>

<P>
Python Methods allow you to add functionality to Zope by writing Python
functions which are exposed as callable Zope objects.
</P>

<P>
Use the form below to add a Python Method. The <EM>Parameter list</EM>
should be a standard Python parameter list, and can include default
values, as well as *tuple and **keyword arguments.
</P>

<form action="manage_addPythonMethod" method="POST">
<table cellspacing="2">
<tr>
  <th align="left" valign="top">ID</th>
  <th align="left" valign="top"><input type="text" name="id" size="50"></th>
</tr>
<tr>
  <th align="left" valign="top"><em>Title</em></th>
  <td align="left" valign="top"><input type="text" name="title" size="50"></td>
</tr>
<tr>	<th align="left">Parameter list</th>
	<td align="left"><input name="params" size="50"></td></tr>
<tr>	<th align="left">Python function body</th>
	<td ALIGN="LEFT"><textarea name="body:text" cols="50" rows="10"></textarea>
</td></tr>
<tr>
<td></td>
<td><br><input type="submit" value="Add"></td>
</tr>
</table>
</form>
</body>
</html>


=== Added File Products/PythonMethod/www/methodEdit.dtml ===
<html>
<head>
<title>Edit <dtml-var title_or_id></title>
</head>
<body bgcolor="#ffffff" link="#000099" vlink="#555555" alink="#77003b">
<dtml-var manage_tabs>

<h2>Edit <dtml-var title_or_id></h2>

<form action="manage_edit" method="POST">
<table cellspacing="2">
<tr>
  <th align="left" valign="top">Id</th>
  <td align="left" valign="top"><dtml-var id></td>
</tr>
<tr>
  <th align="left" valign="top"><em>Title</em></th>
  <td align="left" valign="top">
    <input type="text" name="title" size="50" value="&dtml-title;">
  </td>
</tr>
<tr>	<th align="left">Parameter&nbsp;list</th>
	<td align="left"><input name="params" size="30" value="&dtml-params;">
</td></tr>
<tr>
  <th align="left" valign="top"><em>Size</em></th>
  <td align="left" valign="top"><dtml-var get_size thousands_commas> bytes</td>
</tr>
<tr>
  <th align="left" valign="top"><em>Last&nbsp;modified</em></th>
  <td align="left" valign="top"><dtml-var bobobase_modification_time></td>
</tr>
<tr>
  <td align="center" valign="top">
    <input name=submit type="submit" value="Change"><br>
    <b>Height</b><br>
    <input name=height type="submit" value="+">
    <input name=height type="submit" value="-"><br>
    <b>Width</b><br>
    <input name=width type="submit" value="+">
    <input name=width type="submit" value="-">
  </td>
  <td align="left">
    <textarea name="body:text" wrap="off"
        cols=<dtml-if dtpref_cols>"&dtml-dtpref_cols;"<dtml-else>"50"</dtml-if>
        rows=<dtml-if dtpref_rows>"&dtml-dtpref_rows;>"<dtml-else>"20"</dtml-if>
    ><dtml-var body html_quote></textarea>
  </td>
</tr>
</table>
</form>
</body>
</html>


=== Added File Products/PythonMethod/www/methodProxy.dtml ===
<html>
<head>
<title>Edit</title>
</head>
<body bgcolor="#FFFFFF" link="#000099" vlink="#555555">
<dtml-var manage_tabs>
<p>
Proxy Roles allow a Method to access 
restricted Zope resources. Normally a Method
can only access resources for which the user is authorized.
By adding Proxy Roles, you allow the Method
to act with additional roles, beyond what the user may have.
</p>

<p>Use the form below to select which roles this Method will have.</p>

  <form action="manage_proxy" method="POST">
    <table cellspacing="2">
      <tr>
	<th align="left" valign="top">Id</th>
	<td align="left" valign="top"><dtml-var id></td>
      </tr>
      <tr>
	<th align="left" valign="top"><em>Title</em></th>
	<td align="left" valign="top"><dtml-var title></td>
      </tr>
      <tr>
	<th align="left" valign="top">Proxy Roles</th>
        <td valign="top">
           <select name="roles:list" size="7" multiple>
             <dtml-in valid_roles>
                <dtml-if expr="_vars['sequence-item'] != 'Shared'">
                   <option
                   <dtml-if expr="manage_haveProxy(_vars['sequence-item'])">
                      selected<!--#/if-->
                   ><dtml-var sequence-item></option>
                </dtml-if>
             </dtml-in valid_roles-->
           </select>
        </td>
      </tr>
      <tr>
	<td></td>
	<td>
	<input name=submit type="submit" value="Change">
	</td>
      </tr>
    </table>
  </form>
</body>
</html>



=== Added File Products/PythonMethod/www/pymethod.gif ===
  <Binary-ish file>

=== Added File Products/PythonMethod/www/xpymethod.gif ===
  <Binary-ish file>




More information about the zopeorg-checkins mailing list