Singing & dancing fail when sending newsletter.

9 views
Skip to first unread message

bauer

unread,
Nov 16, 2009, 3:17:57 AM11/16/09
to singing...@googlegroups.com

Plone 3.2.3
* CMF 2.1.2
* Zope (Zope 2.10.7-final, python 2.4.6, linux2)
* Python 2.4.6 (#2, Mar 19 2009, 10:00:53) [GCC 4.3.3]
* PIL 1.1.6
*

AttributeError: form_instance
2009-11-16 08:52:52 ERROR Zope.SiteErrorLog
http://localhost:9020/jagtdanmark/news/tilbud-paa-usa-varer/kss_z3cform_inline_validation/validate_input
Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module <wrapper>, line 5, in wrapper
Module kss.core.actionwrapper, line 238, in apply
Module plone.app.z3cform.kss.validation, line 40, in validate_input
AttributeError: form_instance
2009-11-16 08:53:58 INFO collective.singing Formatting item:
(<collective.dancing.composer.FullFormatWrapper object at 0x108eb08c>,
<h3>form</h3><table><tr valign="top"
align="left"><th>crud-edit.default-channel.widgets.select-empty-marker</th><td>u'1'</td></tr><tr valign="top" align="left"><th>crud-edit.default-channel.widgets.select</th><td>[u'selected']</td></tr><tr valign="top" align="left"><th>crud-edit.form.buttons.process_jobs</th><td>u'Behandl job....

ee

unread,
Nov 27, 2009, 6:23:11 PM11/27/09
to Singing & Dancing


On 16 Nov., 09:17, bauer <l...@bauerdata.dk> wrote:
> Plone 3.2.3
>       * CMF 2.1.2
>       * Zope (Zope 2.10.7-final, python 2.4.6, linux2)
>       * Python 2.4.6 (#2, Mar 19 2009, 10:00:53) [GCC 4.3.3]
>       * PIL 1.1.6
>       *
>
> AttributeError: form_instance
> 2009-11-16 08:52:52 ERROR Zope.SiteErrorLoghttp://localhost:9020/jagtdanmark/news/tilbud-paa-usa-varer/kss_z3cfo...
> Traceback (innermost last):
>   Module ZPublisher.Publish, line 119, in publish
>   Module ZPublisher.mapply, line 88, in mapply
>   Module ZPublisher.Publish, line 42, in call_object
>   Module <wrapper>, line 5, in wrapper
>   Module kss.core.actionwrapper, line 238, in apply
>   Module plone.app.z3cform.kss.validation, line 40, in validate_input
> AttributeError: form_instance

I have the same problem, with Plone 3.3.2 / Zope 2.10.9. Any solution
known?

Daniel Widerin

unread,
Nov 28, 2009, 7:45:41 AM11/28/09
to Singing & Dancing
We have to pin the plone.z3cform version. I'm not sure but i think <
0.5.8 should work...
i use:

[buildout]
...
versions = versions

[versions]
plone.z3cform = 0.5.6

...

saily

Daniel Nouri

unread,
Nov 29, 2009, 12:11:00 PM11/29/09
to singing...@googlegroups.com, Daniel Widerin
On Sat, Nov 28, 2009 at 1:45 PM, Daniel Widerin
<daniel....@kombinat.at> wrote:
> We have to pin the plone.z3cform version. I'm not sure but i think <
> 0.5.8 should work...
> i use:
>
> [buildout]
> ...
> versions = versions
>
> [versions]
> plone.z3cform = 0.5.6

If people can confirm that this fixes it, would you add this to the
online extends file?

Thanks,
Daniel

> On 28 Nov., 00:23, ee <eggert.eh...@berlin.de> wrote:
>> On 16 Nov., 09:17, bauer <l...@bauerdata.dk> wrote:
>>
>>
>>
>> > Plone 3.2.3
>> >       * CMF 2.1.2
>> >       * Zope (Zope 2.10.7-final, python 2.4.6, linux2)
>> >       * Python 2.4.6 (#2, Mar 19 2009, 10:00:53) [GCC 4.3.3]
>> >       * PIL 1.1.6
>> >       *
>>
>> > AttributeError: form_instance
>> > 2009-11-16 08:52:52 ERROR Zope.SiteErrorLoghttp://localhost:9020/jagtdanmark/news/tilbud-paa-usa-varer/kss_z3cfo...
>> > Traceback (innermost last):
>> >   Module ZPublisher.Publish, line 119, in publish
>> >   Module ZPublisher.mapply, line 88, in mapply
>> >   Module ZPublisher.Publish, line 42, in call_object
>> >   Module <wrapper>, line 5, in wrapper
>> >   Module kss.core.actionwrapper, line 238, in apply
>> >   Module plone.app.z3cform.kss.validation, line 40, in validate_input
>> > AttributeError: form_instance
>>
>> I have the same problem, with Plone 3.3.2 / Zope 2.10.9. Any solution
>> known?
>
> --
> To post to the "Singing & Dancing" group, send email to singing...@googlegroups.com
> To unsubscribe from this group, send email to
> singing-danci...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/singing-dancing

bobatbanyantrees

unread,
Dec 8, 2009, 12:51:31 PM12/8/09
to Singing & Dancing
I had same problem with Plone 3.3.2

Added
plone.z3cform = 0.5.6

and error went away

Thanks for a great product,
Bob
On Nov 29, 9:11 am, Daniel Nouri <daniel.no...@gmail.com> wrote:
> On Sat, Nov 28, 2009 at 1:45 PM, Daniel Widerin
>

toutpt

unread,
Dec 10, 2009, 8:38:01 AM12/10/09
to Singing & Dancing
I have made a fix for this, thanks to vincent fretin.

Here is the paste of the diff:

svn diff
Index: collective/dancing/browser/sendnewsletter.py
===================================================================
--- collective/dancing/browser/sendnewsletter.py (révision
106362)
+++ collective/dancing/browser/sendnewsletter.py (copie de
travail)
@@ -191,17 +191,14
@@

class SendAsNewsletterView
(plone.z3cform.layout.FormWrapper):

- form_class =
SendAsNewsletterForm
-
+ form = SendAsNewsletterForm
+ request_layer = collective.singing.interfaces.IFormLayer
+
def label(self):
site_encoding = self.context.plone_utils.getSiteEncoding()
return _(u'Send ${item} as newsletter',
mapping=dict(item=self.context.Title().decode
(site_encoding)))

- def contents(self):
- z2.switch_on(self,
-
request_layer=collective.singing.interfaces.IFormLayer)
- return self.form_class(self.context, self.request)()



@@ -222,4 +219,4 @@
return fields

class SendAsNewsletterViewWithCustomSubject(SendAsNewsletterView):
- form_class = SendAsNewsletterFormWithCustomSubject
+ form = SendAsNewsletterFormWithCustomSubject
jmf@linux-laep: ~/workspace/nmd/buildout/src/collective.dancing
14:35:00>
svn commit -m 'fix http://groups.google.com/group/singing-dancing/browse_thread/thread/efa07c2f5b246540?fwc=2&pli=1'
Envoi collective/dancing/browser/sendnewsletter.py
Transmission des données .
Révision 106380 propagée.
Reply all
Reply to author
Forward
0 new messages