Thanks, I will try the external method.<br><br>However, what I was really hoping for was an explanation of the<br>Product creation part -- if I can create and get this very simple<br>Product to work, I can begin to understand this facet of Zope and make
<br>more complex Products.<br><br>OK, forget the email attachment detail of my question. I am confused<br>here: &nbsp;I have tried to create the product both from the ZMI (which<br>does not allow the creation of __init__.py's) and via command &nbsp;line
<br>(in ~/Products, in lib/Python, everywhere that the sparse and<br>conflicting &nbsp;information I have been able to gather tells me). Doing<br>the latter I can certainly create the __init__.py but the Product<br>doesn't register with zope.
<br><br>Thanks.<br><br><div><span class="gmail_quote">On 11/6/06, <b class="gmail_sendername">Jonathan</b> &lt;<a href="mailto:dev101@magma.ca">dev101@magma.ca</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>----- Original Message -----<br>From: &quot;Aidan&quot; &lt;<a href="mailto:mnstrmr@gmail.com">mnstrmr@gmail.com</a>&gt;<br>To: &lt;<a href="mailto:zope@zope.org">zope@zope.org</a>&gt;<br>Sent: Sunday, November 05, 2006 10:28 PM
<br>Subject: [Zope] newbie -- creating a Product<br><br><br>&gt; I'm a complete Zope novice. Forgive me if my question is inane.<br>&gt;<br>&gt; I need to be able to send an e-mail (following a form submit) with an<br>&gt; attachment
<br>&gt; (and I prefer not to use DTML). I can send e-mails withOUT attachments,<br>&gt; but<br>&gt; according to this:<br>&gt; <a href="http://mail.zope.org/pipermail/zope/2005-May/159291.html">http://mail.zope.org/pipermail/zope/2005-May/159291.html
</a><br>&gt;<br>&gt; I need to create<br>&gt;<br>&gt;<br>&gt; &quot;a simple product like this:<br>&gt;<br>&gt; EmailTools/__init__.py<br>&gt; ------------------- contents ---------------------------------<br>&gt; from AccessControl import allow_module, allow_class, allow_type
<br>&gt; from AccessControl import ModuleSecurityInfo, ClassSecurityInfo<br>&gt;<br>&gt; from email.MIMEText import MIMEText<br>&gt; from email.MIMEMultipart import MIMEMultipart<br>&gt; from email.MIMEBase import MIMEBase
<br>&gt; from email.Header import Header<br>&gt; from MailCrypt import signmail<br>&gt; from email.Encoders import encode_base64<br>&gt;<br>&gt; allow_class(BlockFormatter)<br>&gt; allow_class(MIMEBase)<br>&gt; allow_class(MIMEText)
<br>&gt; allow_class(MIMEMultipart)<br>&gt; allow_class(Header)<br>&gt; allow_class(signmail)<br>&gt; allow_class(encode_base64)<br>&gt; ---------------------------------------------------------------<br>&gt; &quot;<br>&gt;
<br>&gt;<br>&gt;<br>&gt; This then will allow me to send attachments using<br>&gt;<br>&gt; from Products.EmailTools import<br>&gt; MIMEText,MIMEBase,MIMEMultipart,Header,encode_base64<br>&gt;<br>&gt; in the python script. (Without the EmailTools product Zope tells me I am
<br>&gt; not<br>&gt; allowed to import MIME*)<br>&gt;<br>&gt;<br>&gt; This is where my question comes in. I have tried to create the product<br>&gt; both from<br>&gt; the ZMI (which does not allow the creation of __init__.py's) and via
<br>&gt; command<br>&gt; line (in ~/Products, in lib/Python, everywhere that the sparse and<br>&gt; conflicting<br>&gt; information I have been able to gather tells me). Doing the latter I can<br>&gt; certainly create the __init__.py but the Product doesn't register with
<br>&gt; zope.<br>&gt;<br>&gt;<br>&gt; Could someone give a quick walk-through (or point to an up-to-date source)<br>&gt; on<br>&gt; how to create this Product?<br>&gt;<br>&gt; (I am running&nbsp;&nbsp;Zope 2.8.6-final, python 2.4.3
, linux2)<br><br>For a single task like you have described it may be easier to create a<br>simple external method.<br><br><br>Jonathan<br><br><br></blockquote></div><br>