[Zope-CMF] RE: CMF 1.2 and ZPT

Norm DeLisle ndelisle@msn.com
Sun, 31 Mar 2002 06:20:31 -0500


I found that the self-correcting process can be avoided by making the
changes in a customized version of the main_template.


"I've just installed CMF 1.2 running in the Zope 2.4.3 environment
with the intent of moving from dtml to zpt.

I'm experiencing what to me is strange behavior in the zmi.

As with dtml, I started to edit the page templates supplied in the
portal skins folder by selecting say index_html from zpt_generic,
making some edits, and reviewing them in the custom skins folder.

Upon review I find the changes are not in the new version. I can
change templates outside of zope with a text editor and upload
those.. when they are created as new page template objects.

Anyone have insight into this behavior. I'd hate to be forced into
always working outside of zope for even minor changes."

-----Original Message-----
From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf
Of zope-cmf-request@zope.org
Sent: Saturday, March 30, 2002 12:02 PM
To: zope-cmf@zope.org
Subject: Zope-CMF digest, Vol 1 #1047 - 6 msgs


Send Zope-CMF mailing list submissions to
	zope-cmf@zope.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.zope.org/mailman/listinfo/zope-cmf
or, via email, send a message with subject or body 'help' to
	zope-cmf-request@zope.org

You can reach the person managing the list at
	zope-cmf-admin@zope.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Zope-CMF digest..."


Today's Topics:

   1. Re: Compound elements status (Chris Withers)
   2. CMF 1.2 and ZPT (Carl Rendell)
   3. Re: anyone installed plone? (Mirna Callejas)
   4. Mailhost problem??? (Kevin Carlson)
   5. Fw: [Zope-CMF] how to get my cmf going? (Chandra)
   6. Fw: [Zope-CMF] how to get my cmf going? (Chandra)

--__--__--

Message: 1
Date: Fri, 29 Mar 2002 17:07:16 +0000
From: Chris Withers <chrisw@nipltd.com>
Organization: New Information Paradigms
To: seb bacon <seb@jamkit.com>
CC: Thomas Olsen <tol@tanghus.dk>, Philippe Jadin <all@123piano.com>,
 	zope-cmf@zope.org
Subject: Re: [Zope-CMF] Compound elements status

seb bacon wrote:
>
> When you display a page with its 'view' action, you want to display each
> of its components according to their 'view' action.  How about if you
> have a 'view comments' action for a page, which puts some copy at the
> top regarding comment threads, and then displays each component with its
> thread beneath.  Then you need a way to map between the container's
> action and those of its components.  This can only be done in a 'slot'
> type definition.

Huh? Ya lost me... take it slow... I suspect it may not be necessary ;-)

> Also, if you have slots with named components, you get to define the
> layout of the page accurately ('image_1 goes here, text_3 goes there'),
> which it is hard to do when the components are looped over in a repeat
> clause.  Of course you could extend the interface with CMFArticle to
> allow you to name elements; however, the user would then need access to
> the page layout source too.

Urm, ZPT is a pretty good templating language. I don't see why whoever needs
to
lay out a page can't do it with a simple ZPT:

<table>
<tr>
<td tal:content="here/element1" colspan="2"></td>
</tr>
<tr>
<td tal:content="here/element2"></td>
<td tal:content="here/element3"></td>
</tr>

?

> A separate design consideration is that it would be nice to be able to
> recursively compose components.  What I mean by this is the following:
> suppose you have a type which has two fixed slots, "image" and "text".
> These are displayed in the default action with the text on the left and
> image on the right.  Wouldn't it be nice to be able to add these two
> elements as a single "textandimage" component to another template?

Yup, but I don't really see why you need slots for this?

> Another consideration is that it would be nice to be able to use any
> existing Types as components without having to tinker with their source
> code: it should be possible to create new 'articles' (I call them
> 'templates') through the web.

...indeed. But I don't see how you're gonna lay out a page properly without
writing some HTML, and if ya gonna do that, why not use a ZPT?

cheers,

Chris


--__--__--

Message: 2
Date: Fri, 29 Mar 2002 10:43:44 -0800
From: Carl Rendell <cer@sol43.com>
To: zope-cmf@zope.org
Subject: [Zope-CMF] CMF 1.2 and ZPT

I posted a 'piggy back' message to one from Chris Withers, but as
he pointed out it was not appropriate so I'll add a new one.

I've just installed CMF 1.2 running in the Zope 2.4.3 environment
with the intent of moving from dtml to zpt.

I'm experiencing what to me is strange behavior in the zmi.

As with dtml, I started to edit the page templates supplied in the
portal skins folder by selecting say index_html from zpt_generic,
making some edits, and reviewing them in the custom skins folder.

Upon review I find the changes are not in the new version. I can
change templates outside of zope with a text editor and upload
those.. when they are created as new page template objects.

Anyone have insight into this behavior. I'd hate to be forced into
always working outside of zope for even minor changes.

~C


Carl E. Rendell
Solution43
Information Distribution Consulting        |   "Ahhhh the power of
cer@sol43.com                              |    acquisition"  - Chef Z



--__--__--

Message: 3
From: "Mirna Callejas" <mirnacallejas@yahoo.com>
To: <zope-cmf@zope.org>
Date: Fri, 29 Mar 2002 14:55:35 -0600
Subject: [Zope-CMF] Re: anyone installed plone?

This is a multi-part message in MIME format.

------=_NextPart_000_0008_01C1D731.C8093320
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

I installed Plone 0.99 pre-6, on a CMF 1.2 with Zope 2.4.3 and work fine.
Now I will prove traslate all to spanish.. Which changes exist with Plone
0.99 pre-4? I translated everything and, I´ve review again? Is a lot of
time, more easy, but too much time.

Mirna
Web Designer & Content Developer
Edumedia, Mexico.

------=_NextPart_000_0008_01C1D731.C8093320
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D930274820-29032002>I =
installed P<FONT=20
size=3D2>lone 0.99 pre-6, on a CMF 1.2 with Zope <FONT size=3D2>2.4.3 =
and work=20
fine.</FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D930274820-29032002>Now I =
will prove=20
traslate all to spanish.. Which changes exist with P<FONT size=3D2>lone =
0.99=20
pre-4? I translated everything and, I=B4ve review again? Is a lot of =
time, more=20
easy, but too much time.</FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D930274820-29032002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D930274820-29032002>Mirna</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D930274820-29032002>Web =
Designer &amp;=20
Content Developer</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D930274820-29032002>Edumedia,=20
Mexico.</SPAN></FONT></DIV></BODY></HTML>

------=_NextPart_000_0008_01C1D731.C8093320--


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



--__--__--

Message: 4
From: "Kevin Carlson" <khcarlso@bellsouth.net>
To: "zope-cmf group" <zope-cmf@zope.org>
Date: Fri, 29 Mar 2002 16:56:00 -0500
Subject: [Zope-CMF] Mailhost problem???

Hi,

I am using a Python script to send mail from a workflow.  The error message
is below.   The message culminates in "SMTPDataError: (503, '5.0.0 Need RCPT
(recipient)')
".  The code that I am using to send the email is:

context.MailHost.send(url, mto=to_list, mfrom=usr.getProperty('email'),
subject="New content")

To me is looks as if I am specifying the recipient in the mfrom keyword --
any ideas?

Thanks,

Kevin


-----------------------------------------------


Traceback (innermost last):
  File C:\PROGRA~1\ZopeTest\lib\python\ZPublisher\Publish.py, line 150, in
publish_module
  File C:\PROGRA~1\ZopeTest\lib\python\ZPublisher\Publish.py, line 114, in
publish
  File C:\PROGRA~1\ZopeTest\lib\python\Zope\__init__.py, line 158, in
zpublisher_exception_hook
    (Object: newFile)
  File C:\PROGRA~1\ZopeTest\lib\python\ZPublisher\Publish.py, line 98, in
publish
  File C:\PROGRA~1\ZopeTest\lib\python\ZPublisher\mapply.py, line 88, in
mapply
    (Object: content_status_modify)
  File C:\PROGRA~1\ZopeTest\lib\python\ZPublisher\Publish.py, line 39, in
call_object
    (Object: content_status_modify)
  File C:\PROGRA~1\ZopeTest\lib\python\Shared\DC\Scripts\Bindings.py, line
252, in __call__
    (Object: content_status_modify)
  File C:\PROGRA~1\ZopeTest\lib\python\Shared\DC\Scripts\Bindings.py, line
283, in _bindAndExec
    (Object: content_status_modify)
  File C:\PROGRA~1\ZopeTest\lib\python\Products\CMFCore\FSPythonScript.py,
line 115, in _exec
    (Object: content_status_modify)
    (Info: ({'script': &lt;FSPythonScript instance at 0159D550&gt;,
'context': &lt;File instance at 022B5310&gt;, 'container': &lt;CMFSite
instance at 02253610&gt;, 'traverse_subpath': []}, ('submit', ''), {},
('',)))
  File Script (Python), line 4, in content_status_modify
  File C:\PROGRA~1\ZopeTest\lib\python\Products\CMFCore\WorkflowTool.py,
line 465, in doActionFor
    (Object: portal_workflow)
  File C:\PROGRA~1\ZopeTest\lib\python\Products\CMFCore\WorkflowTool.py,
line 416, in _invokeWithNotification
    (Object: portal_workflow)
  File C:\PROGRA~1\ZopeTest\lib\python\Products\DCWorkflow\DCWorkflow.py,
line 272, in doActionFor
    (Object: default_workflow)
  File C:\PROGRA~1\ZopeTest\lib\python\Products\DCWorkflow\DCWorkflow.py,
line 437, in _changeStateOf
    (Object: default_workflow)
  File C:\PROGRA~1\ZopeTest\lib\python\Products\DCWorkflow\DCWorkflow.py,
line 542, in _executeTransition
    (Object: default_workflow)
  File C:\PROGRA~1\ZopeTest\lib\python\Shared\DC\Scripts\Bindings.py, line
252, in __call__
    (Object: email)
  File C:\PROGRA~1\ZopeTest\lib\python\Shared\DC\Scripts\Bindings.py, line
283, in _bindAndExec
    (Object: email)
  File
C:\PROGRA~1\ZopeTest\lib\python\Products\PythonScripts\PythonScript.py, line
291, in _exec
    (Object: email)
    (Info: ({'script': &lt;PythonScript instance at 023050E8&gt;, 'context':
&lt;Scripts instance at 01372448&gt;, 'container': &lt;Scripts instance at
01372448&gt;, 'traverse_subpath': []},
(&lt;Products.DCWorkflow.Expression.StateChangeInfo instance at
022DF67C&gt;,), {}, None))
  File Script (Python), line 34, in email
  File C:\PROGRA~1\ZopeTest\lib\python\Products\MailHost\MailHost.py, line
156, in send
    (Object: MailHost)
  File C:\PROGRA~1\ZopeTest\lib\python\Products\MailHost\MailHost.py, line
201, in _send
    (Object: MailHost)
  File C:\PROGRA~1\ZopeTest\bin\lib\smtplib.py, line 494, in sendmail
  File C:\PROGRA~1\ZopeTest\bin\lib\smtplib.py, line 384, in data
SMTPDataError: (503, '5.0.0 Need RCPT (recipient)')






--__--__--

Message: 5
Date: Sat, 30 Mar 2002 07:18:07 +0800
From: Chandra <goloka56@tm.net.my>
Subject: Fw: [Zope-CMF] how to get my cmf going?
To: zope-cmf@zope.org


> > Did you extract the entire CMF folder under ../lib/python/Products/ ? If
> so
> > then here is a possible solution:
> >
> > Move the entire cmf folder to your Zope root.
> > Copy or move ONLY the folders CMFCalendar, CMFCore, CMDefault, CMFTopics
> to
> > ../lib/python/Products/
> > Restart your Zope
> > Now you should see them listed under Products in the ZMI (Zope
Management
> > Interface)
> >
> > Let me know if this works :-)
>
> Roel, it worked immediately as you predicted!
> Is it ok to carry on in this mode?
> what's the reason the normal procedure (as in the documentation) did not
> work.
> Thanks for your help.
>
> Chandra
>
>
> > -----Oorspronkelijk bericht-----
> > Van: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]Namens
> > Chandra
> > Verzonden: vrijdag 29 maart 2002 4:36
> > Aan: zope-cmf@zope.org
> > Onderwerp: [Zope-CMF] how to get my cmf going?
> >
> >
> > Hello,
> > I downloaded cmf1.2, unzipped and moved the extracted CMF-1.2 folder
into
> > lib\python\products.
> > Then restarted zope under Services utility on my windows xp pro
notebook.
> > But the CMF-1.2 (and related items like CMFCalendar, CMFCore, CMDefault,
> > CMFTopics, Docs) fail to show up under Products
> > when the manage url localhost:8080/manage is called.
> > (only existing products show up).
> >
> > Repeated the unzip, move, restart process several times, still no change
> > seen under Products. Even rebooted several times.
> > Kindly tell me what to do to get the cmf recognised. Would like to
develop
> > something useful with it.
> >
> >
> > Regards,
> > Chandra
> >
> >
> >
> >
> >
> > _______________________________________________
> > Zope-CMF maillist  -  Zope-CMF@zope.org
> > http://lists.zope.org/mailman/listinfo/zope-cmf
> >
> > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
> > requests
> >
> >
> >
> > _______________________________________________
> > Zope-CMF maillist  -  Zope-CMF@zope.org
> > http://lists.zope.org/mailman/listinfo/zope-cmf
> >
> > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
> requests
>



--__--__--

Message: 6
Date: Sat, 30 Mar 2002 07:19:27 +0800
From: Chandra <goloka56@tm.net.my>
Subject: Fw: [Zope-CMF] how to get my cmf going?
To: zope-cmf@zope.org

> > The other files are there to help you I think :-)
> > Installation procedures differ from product to product
> > There is NO standard procedure :-)
>
> thanks, this warning was not there in the cmf install document.
> neither did it have the solution you gave.
>
> Regards,
> Chandra
>
>
> > -----Oorspronkelijk bericht-----
> > Van: Chandra [mailto:goloka56@tm.net.my]
> > Verzonden: vrijdag 29 maart 2002 10:37
> > Aan: roel@planetinterior.com
> > Onderwerp: Re: [Zope-CMF] how to get my cmf going?
> >
> >
> >
> > > Did you extract the entire CMF folder under ../lib/python/Products/ ?
If
> > so
> > > then here is a possible solution:
> > >
> > > Move the entire cmf folder to your Zope root.
> > > Copy or move ONLY the folders CMFCalendar, CMFCore, CMDefault,
CMFTopics
> > to
> > > ../lib/python/Products/
> > > Restart your Zope
> > > Now you should see them listed under Products in the ZMI (Zope
> Management
> > > Interface)
> > >
> > > Let me know if this works :-)
> >
> > Roel, it worked immediately as you predicted!
> > Is it ok to carry on in this mode?
> > what's the reason the normal procedure (as in the documentation) did not
> > work.
> > Thanks for your help.
> >
> > Chandra





--__--__--

_______________________________________________
Zope-CMF maillist  -  Zope-CMF@zope.org
http://lists.zope.org/mailman/listinfo/zope-cmf

http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests

End of Zope-CMF Digest