[Zope-CMF] CMF Plone missing edit scripts

Ot Ratsaphong ot.ratsaphong@tpg.com.au
Fri, 8 Mar 2002 23:43:46 +1100


This is a multi-part message in MIME format.

------=_NextPart_000_0025_01C1C6FB.172C3A70
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Good Evening,

I am just starting to learn about CMF. I have just installed the Plone =
0.9.9 skin onto CMF 1.2 on Zope 2.5.0. on Windows2000

I am trying to create a Document and a News Item but I find that the =
document edit form and the news edit form both do not display body text =
input area.

I looked at document_edit_form.pt and newsitem_edit_form.pt and found =
that they both call a python script to enter text:

from newsitem_edit_form:
<div class=3D"row">
<span class=3D"label">Body text</span>
<span class=3D"field" tal:define=3D"text python:request.get('text', =
here.EditableBody)">
<textarea name=3D"text:text"=20
rows=3D"20"=20
cols=3D"25"
tal:content=3D"text">News text</textarea>
</span>
<span class=3D"info">The body text of the news item.</span>
</div>


from document_edit_form:
<div class=3D"row">=20
<span class=3D"label"> Body text </span>
<span class=3D"field" tal:define=3D"text python:request.get('text', =
here.text)">
<textarea name=3D"field_text:text"=20
rows=3D"20"=20
cols=3D"25"=20
tal:content=3D"text">Document text</textarea>
</span>
<span class=3D"info">The body text of the document.</span>
</div>

Now I'm still coming to grips with ZPT but I can work out that that =
there is a Python script involved. I looked for EditableBody but could =
not find it. In both cases, how does python.request.get work. Why isn't =
this working for me?

Any help in this matter would be appreciated.

Thanks in Advance,
Ot


------=_NextPart_000_0025_01C1C6FB.172C3A70
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 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Good Evening,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am just starting to learn about CMF. =
I have just=20
installed the Plone 0.9.9 skin onto CMF 1.2 on Zope 2.5.0. on=20
Windows2000</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am trying to create a Document and a =
News Item=20
but I find that the document edit form and the news edit form both do =
not=20
display body text input area.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I looked at document_edit_form.pt and=20
newsitem_edit_form.pt and found that they both call a python script to =
enter=20
text:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>from newsitem_edit_form:</FONT></DIV>
<DIV><FONT size=3D1>&lt;div class=3D</FONT><FONT color=3D#0000f0=20
size=3D1>"row"</FONT><FONT size=3D1>&gt;</FONT></DIV>
<DIV><FONT size=3D1>&lt;span class=3D</FONT><FONT color=3D#0000f0=20
size=3D1>"label"</FONT><FONT size=3D1>&gt;Body =
text&lt;/span&gt;<BR>&lt;span=20
class=3D</FONT><FONT color=3D#0000f0 size=3D1>"field"</FONT><FONT =
size=3D1>=20
tal:define=3D</FONT><FONT color=3D#0000f0 size=3D1>"text =
python:request.get('text',=20
here.EditableBody)"</FONT><FONT size=3D1>&gt;<BR>&lt;textarea =
name=3D</FONT><FONT=20
color=3D#0000f0 size=3D1>"text:text"</FONT><FONT size=3D1> =
<BR>rows=3D</FONT><FONT=20
color=3D#0000f0 size=3D1>"20"</FONT><FONT size=3D1> =
<BR>cols=3D</FONT><FONT=20
color=3D#0000f0 size=3D1>"25"</FONT><FONT =
size=3D1><BR>tal:content=3D</FONT><FONT=20
color=3D#0000f0 size=3D1>"text"</FONT><FONT size=3D1>&gt;News=20
text&lt;/textarea&gt;<BR>&lt;/span&gt;<BR>&lt;span class=3D</FONT><FONT=20
color=3D#0000f0 size=3D1>"info"</FONT><FONT size=3D1>&gt;The body text =
of the news=20
item.&lt;/span&gt;<BR>&lt;/div&gt;<BR></DIV>
<DIV></FONT><FONT size=3D1><FONT size=3D1></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=3D1>
<DIV><FONT size=3D1><FONT face=3DArial size=3D2>from=20
document_edit_form:</FONT></FONT></DIV></FONT></DIV>
<DIV><FONT size=3D1><FONT size=3D1>&lt;div class=3D</FONT><FONT =
color=3D#0000f0=20
size=3D1>"row"</FONT><FONT size=3D1>&gt; <BR>&lt;span =
class=3D</FONT><FONT=20
color=3D#0000f0 size=3D1>"label"</FONT><FONT size=3D1>&gt; Body text=20
&lt;/span&gt;<BR>&lt;span class=3D</FONT><FONT color=3D#0000f0=20
size=3D1>"field"</FONT><FONT size=3D1> tal:define=3D</FONT><FONT =
color=3D#0000f0=20
size=3D1>"text python:request.get('text', here.text)"</FONT><FONT=20
size=3D1>&gt;<BR>&lt;textarea name=3D</FONT><FONT color=3D#0000f0=20
size=3D1>"field_text:text"</FONT><FONT size=3D1> <BR>rows=3D</FONT><FONT =
color=3D#0000f0=20
size=3D1>"20"</FONT><FONT size=3D1> <BR>cols=3D</FONT><FONT =
color=3D#0000f0=20
size=3D1>"25"</FONT><FONT size=3D1> <BR>tal:content=3D</FONT><FONT =
color=3D#0000f0=20
size=3D1>"text"</FONT><FONT size=3D1>&gt;Document=20
text&lt;/textarea&gt;<BR>&lt;/span&gt;<BR>&lt;span class=3D</FONT><FONT=20
color=3D#0000f0 size=3D1>"info"</FONT><FONT size=3D1>&gt;The body text =
of the=20
document.&lt;/span&gt;<BR>&lt;/div&gt;<BR></FONT></FONT></DIV>
<DIV><FONT size=3D1><FONT face=3DArial size=3D2>Now I'm still coming to =
grips with ZPT=20
but I can work out that that there is a Python script involved. I looked =
for=20
EditableBody but could not find it. In both cases, how does =
python.request.get=20
work. Why isn't this working for me?</FONT></FONT></DIV>
<DIV><FONT size=3D1><FONT face=3DArial =
size=3D2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=3D1><FONT face=3DArial size=3D2>Any help in this matter =
would be=20
appreciated.</FONT></FONT></DIV>
<DIV><FONT size=3D1><FONT face=3DArial =
size=3D2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=3D1><FONT face=3DArial size=3D2>Thanks in =
Advance,</FONT></FONT></DIV>
<DIV><FONT size=3D1><FONT face=3DArial size=3D2>Ot</FONT></FONT></DIV>
<DIV><FONT size=3D1>&nbsp;</DIV></FONT></BODY></HTML>

------=_NextPart_000_0025_01C1C6FB.172C3A70--