<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Using z3c.form for our forms in Plone</title>
	<atom:link href="http://kayeva.wordpress.com/2008/07/16/using-z3cform-for-our-forms-in-plone/feed/" rel="self" type="application/rss+xml" />
	<link>http://kayeva.wordpress.com/2008/07/16/using-z3cform-for-our-forms-in-plone/</link>
	<description>Solutions &#62; Technology &#62; Open Source &#62; python.zope.plone</description>
	<lastBuildDate>Sun, 22 Nov 2009 20:29:14 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: kamon</title>
		<link>http://kayeva.wordpress.com/2008/07/16/using-z3cform-for-our-forms-in-plone/#comment-19</link>
		<dc:creator>kamon</dc:creator>
		<pubDate>Fri, 12 Sep 2008 20:06:20 +0000</pubDate>
		<guid isPermaLink="false">http://kayeva.wordpress.com/?p=20#comment-19</guid>
		<description>cjai: Since your content would inherit from CMF/Plone base content classes, I think you have to provide your special &quot;add&quot; handle method, similar to the handle_send() in my second example (ContactForm), and you need to use the entry point that CMFPlone offers to create an object, &quot;the CMFPlone way&quot;::

from Products.CMFPlone.utils import _createObjectByType

_createObjectByType(&#039;MyContact&#039;, self.context, id=id, 
                            title= data[&#039;firstname&#039;] + &#039; &#039; + data[&#039;lastname&#039;], )

Note that this is in theory ; I have previously found a bug with _createObjectByType unable to create correctly Z3-based content type objects (which is the case of plone.app.content-based types), because of the way their factory work, and I used a patch to make it work (as an example, if you face the same problem, you can see here: http://tinyurl.com/47u8yf).</description>
		<content:encoded><![CDATA[<p>cjai: Since your content would inherit from CMF/Plone base content classes, I think you have to provide your special &#8220;add&#8221; handle method, similar to the handle_send() in my second example (ContactForm), and you need to use the entry point that CMFPlone offers to create an object, &#8220;the CMFPlone way&#8221;::</p>
<p>from Products.CMFPlone.utils import _createObjectByType</p>
<p>_createObjectByType(&#8216;MyContact&#8217;, self.context, id=id,<br />
                            title= data['firstname'] + &#8216; &#8216; + data['lastname'], )</p>
<p>Note that this is in theory ; I have previously found a bug with _createObjectByType unable to create correctly Z3-based content type objects (which is the case of plone.app.content-based types), because of the way their factory work, and I used a patch to make it work (as an example, if you face the same problem, you can see here: <a href="http://tinyurl.com/47u8yf)" rel="nofollow">http://tinyurl.com/47u8yf)</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cjai</title>
		<link>http://kayeva.wordpress.com/2008/07/16/using-z3cform-for-our-forms-in-plone/#comment-18</link>
		<dc:creator>cjai</dc:creator>
		<pubDate>Fri, 12 Sep 2008 07:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://kayeva.wordpress.com/?p=20#comment-18</guid>
		<description>Hello, do you have any example how to create content with plone.app.content? I use item class from plone.app.content instead OFS. My code is like this :

from plone.app.content import item
class MyContact(item.Item):
...
... 

That code is instead of :

import OFS
class MyContact(OFS.SimpleItem.SimpleItem):
...
... 

But I got error in this url : http://paste.plone.org/23747

Do you have any clue how to solve it? Thank you.</description>
		<content:encoded><![CDATA[<p>Hello, do you have any example how to create content with plone.app.content? I use item class from plone.app.content instead OFS. My code is like this :</p>
<p>from plone.app.content import item<br />
class MyContact(item.Item):<br />
&#8230;<br />
&#8230; </p>
<p>That code is instead of :</p>
<p>import OFS<br />
class MyContact(OFS.SimpleItem.SimpleItem):<br />
&#8230;<br />
&#8230; </p>
<p>But I got error in this url : <a href="http://paste.plone.org/23747" rel="nofollow">http://paste.plone.org/23747</a></p>
<p>Do you have any clue how to solve it? Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nouri</title>
		<link>http://kayeva.wordpress.com/2008/07/16/using-z3cform-for-our-forms-in-plone/#comment-16</link>
		<dc:creator>nouri</dc:creator>
		<pubDate>Fri, 25 Jul 2008 09:50:21 +0000</pubDate>
		<guid isPermaLink="false">http://kayeva.wordpress.com/?p=20#comment-16</guid>
		<description>This wasn&#039;t supposed to be a smiley ;-) in that code but a closing parenthesis.  Also, it&#039;s &#039;ContactAddForm&#039;, not &#039;form&#039; as the first argument:

  # my.example/my/example/browser.py
  from plone.app.z3cform import layout
  ContactAddFormView = layout.wrap_form(
    ContactAddForm, label=”Contact Add Form”)</description>
		<content:encoded><![CDATA[<p>This wasn&#8217;t supposed to be a smiley <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  in that code but a closing parenthesis.  Also, it&#8217;s &#8216;ContactAddForm&#8217;, not &#8216;form&#8217; as the first argument:</p>
<p>  # my.example/my/example/browser.py<br />
  from plone.app.z3cform import layout<br />
  ContactAddFormView = layout.wrap_form(<br />
    ContactAddForm, label=”Contact Add Form”)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nouri</title>
		<link>http://kayeva.wordpress.com/2008/07/16/using-z3cform-for-our-forms-in-plone/#comment-15</link>
		<dc:creator>nouri</dc:creator>
		<pubDate>Fri, 25 Jul 2008 09:46:58 +0000</pubDate>
		<guid isPermaLink="false">http://kayeva.wordpress.com/?p=20#comment-15</guid>
		<description>Since plone.app.z3cform 0.3, you need to define your form wrapping view like this:

  # my.example/my/example/browser.py
  from plone.app.z3cform import layout
  ContactAddFormView = layout.wrap_form(form, label=&quot;Contact Add Form&quot;)

This is instead of:

  # my.example/my/example/browser.py
  class ContactAddFormView(base.FormWrapper):
      form = ContactAddForm
      label= &quot;Contact Add Form&quot;

Note the change from plone.z3cform to plone.app.z3cform.  The how-to on plone.org has been updated with these changes.

For more details about the changes, please refer to http://plone.org/support/forums/addons#nabble-td580600</description>
		<content:encoded><![CDATA[<p>Since plone.app.z3cform 0.3, you need to define your form wrapping view like this:</p>
<p>  # my.example/my/example/browser.py<br />
  from plone.app.z3cform import layout<br />
  ContactAddFormView = layout.wrap_form(form, label=&#8221;Contact Add Form&#8221;)</p>
<p>This is instead of:</p>
<p>  # my.example/my/example/browser.py<br />
  class ContactAddFormView(base.FormWrapper):<br />
      form = ContactAddForm<br />
      label= &#8220;Contact Add Form&#8221;</p>
<p>Note the change from plone.z3cform to plone.app.z3cform.  The how-to on plone.org has been updated with these changes.</p>
<p>For more details about the changes, please refer to <a href="http://plone.org/support/forums/addons#nabble-td580600" rel="nofollow">http://plone.org/support/forums/addons#nabble-td580600</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A variation on my previous z3c.form example &#171; Kamon Ayeva : Yet Another Blog</title>
		<link>http://kayeva.wordpress.com/2008/07/16/using-z3cform-for-our-forms-in-plone/#comment-14</link>
		<dc:creator>A variation on my previous z3c.form example &#171; Kamon Ayeva : Yet Another Blog</dc:creator>
		<pubDate>Sat, 19 Jul 2008 10:49:15 +0000</pubDate>
		<guid isPermaLink="false">http://kayeva.wordpress.com/?p=20#comment-14</guid>
		<description>[...] A variation on my previous z3c.form&#160;example  Another example of form logic, adding to the one discussed in my previous post. [...]</description>
		<content:encoded><![CDATA[<p>[...] A variation on my previous z3c.form&nbsp;example  Another example of form logic, adding to the one discussed in my previous post. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
