<!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> </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> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </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:
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 line <BR>(in
~/Products, in lib/Python, everywhere that the sparse and<BR>conflicting
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> <<A
href="mailto:dev101@magma.ca">dev101@magma.ca</A>> 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" <<A
href="mailto:mnstrmr@gmail.com">mnstrmr@gmail.com</A>><BR>To: <<A
href="mailto:zope@zope.org">zope@zope.org</A>><BR>Sent: Sunday, November
05, 2006 10:28 PM <BR>Subject: [Zope] newbie -- creating a
Product<BR><BR><BR>> I'm a complete Zope novice. Forgive me if my
question is inane.<BR>><BR>> I need to be able to send an e-mail
(following a form submit) with an<BR>> attachment <BR>> (and I prefer
not to use DTML). I can send e-mails withOUT attachments,<BR>>
but<BR>> according to this:<BR>> <A
href="http://mail.zope.org/pipermail/zope/2005-May/159291.html">http://mail.zope.org/pipermail/zope/2005-May/159291.html
</A><BR>><BR>> I need to create<BR>><BR>><BR>> "a simple
product like this:<BR>><BR>> EmailTools/__init__.py<BR>>
------------------- contents ---------------------------------<BR>> from
AccessControl import allow_module, allow_class, allow_type <BR>> from
AccessControl import ModuleSecurityInfo, ClassSecurityInfo<BR>><BR>>
from email.MIMEText import MIMEText<BR>> from email.MIMEMultipart import
MIMEMultipart<BR>> from email.MIMEBase import MIMEBase <BR>> from
email.Header import Header<BR>> from MailCrypt import signmail<BR>>
from email.Encoders import encode_base64<BR>><BR>>
allow_class(BlockFormatter)<BR>> allow_class(MIMEBase)<BR>>
allow_class(MIMEText) <BR>> allow_class(MIMEMultipart)<BR>>
allow_class(Header)<BR>> allow_class(signmail)<BR>>
allow_class(encode_base64)<BR>>
---------------------------------------------------------------<BR>>
"<BR>> <BR>><BR>><BR>> This then will allow me to send
attachments using<BR>><BR>> from Products.EmailTools import<BR>>
MIMEText,MIMEBase,MIMEMultipart,Header,encode_base64<BR>><BR>> in the
python script. (Without the EmailTools product Zope tells me I am <BR>>
not<BR>> allowed to import MIME*)<BR>><BR>><BR>> This is where
my question comes in. I have tried to create the product<BR>> both
from<BR>> the ZMI (which does not allow the creation of __init__.py's)
and via <BR>> command<BR>> line (in ~/Products, in lib/Python,
everywhere that the sparse and<BR>> conflicting<BR>> information I
have been able to gather tells me). Doing the latter I can<BR>> certainly
create the __init__.py but the Product doesn't register with <BR>>
zope.<BR>><BR>><BR>> Could someone give a quick walk-through (or
point to an up-to-date source)<BR>> on<BR>> how to create this
Product?<BR>><BR>> (I am running 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
-
Zope@zope.org<BR>http://mail.zope.org/mailman/listinfo/zope<BR>**
No cross posts or HTML encoding! **<BR>(Related lists -
<BR> http://mail.zope.org/mailman/listinfo/zope-announce<BR> http://mail.zope.org/mailman/listinfo/zope-dev
)<BR></BLOCKQUOTE></BODY></HTML>