<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Here is some intro info on zope 
products:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><A 
href="http://www.zope.org/Members/maxm/HowTo/minimal_01">http://www.zope.org/Members/maxm/HowTo/minimal_01</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Jonathan</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=mnstrmr@gmail.com href="mailto:mnstrmr@gmail.com">Amanda A.</A> 
</DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=zope@zope.org 
  href="mailto:zope@zope.org">zope@zope.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, November 06, 2006 8:54 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Zope] newbie -- creating a 
  Product</DIV>
  <DIV><BR></DIV>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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><BR>----- 
    Original Message -----<BR>From: "Aidan" &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; "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; 
    "<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>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Zope maillist&nbsp; 
  -&nbsp; 
  Zope@zope.org<BR>http://mail.zope.org/mailman/listinfo/zope<BR>**&nbsp;&nbsp; 
  No cross posts or HTML encoding!&nbsp; **<BR>(Related lists - 
  <BR>&nbsp;http://mail.zope.org/mailman/listinfo/zope-announce<BR>&nbsp;http://mail.zope.org/mailman/listinfo/zope-dev 
  )<BR></BLOCKQUOTE></BODY></HTML>