1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en"><head><title>Add an Object Factory</title></head>
<body bgcolor="#FFFFFF" link="#000099" vlink="#555555" alink="#77003B">
<h2>Add a Plug-In Factory</h2>
<!-- rem dtml-var "HelpSys.HelpButton('Zope-Factory_Add.stx','OFSP')" -->
<P>A Plug-In Factory allows you to place entries in Plug-in Containers'
add lists.</P>
<P>In the form below the <EM>Add list name</EM> is the name under which
your entry will appear in the appropriate add list, and the <EM>Plug-in
Kind</EM> is the name of the interface your plug-in supports. Your
plug-in will only appear on tabs which support plug-ins of that kind.</P>
<P>The <EM>Methods</EM> are the methods that will be invoked when a
user adds a new object. The "Form" method is used to display an "add"
form for the Plug-In, and the "Constructor" method is used to actually
create the Plug-In. Both methods must be objects in this
product, typically DTML Documents.
</P>
<dtml-if objectIds>
<form action="manage_addPlugInFactory" method="POST">
<table cellspacing="2">
<tr>
<th align="LEFT" valign="TOP">Id</th>
<td align="LEFT" valign="TOP"><input type="TEXT" name="id"
size="40"></td>
</tr>
<tr>
<th align="LEFT" valign="TOP">Title</th>
<td align="LEFT" valign="TOP"><input type="TEXT" name="title"
size="40"></td>
</tr>
<tr>
<th align="LEFT" valign="TOP">Add list name</th>
<td align="LEFT" valign="TOP"><input type="TEXT" name="meta_type"
size="40"></td>
</tr>
<tr>
<th align="LEFT" valign="TOP">Plug-in Kind</th>
<td align="LEFT" valign="TOP"><input type="TEXT" name="kind"
size="40"></td>
</tr>
<tr><th ALIGN="LEFT">Method (Form)</th>
<td ALIGN="LEFT"><select name="initial">
<dtml-in objectItems>
<dtml-if "meta_type not in ('Zope Factory','PlugIn Factory')">
<option><dtml-var sequence-key></option>
</dtml-if>
</dtml-in>
</select></td></tr>
<tr><th ALIGN="LEFT">Method (Constructor)</th>
<td ALIGN="LEFT"><select name="constructor">
<dtml-in objectItems>
<dtml-if "meta_type not in ('Zope Factory','PlugIn Factory')">
<option><dtml-var sequence-key></option>
</dtml-if>
</dtml-in>
</select></td></tr>
<tr><td></td><td><br><input type="SUBMIT" value="Generate"></td></tr>
</table></form>
<dtml-else>
Before you can define a factory, you have to define one or more "methods",
such as Document or other objects that do the factory's work.
</dtml-if>
</body></html>
|