ValueError adding a Plone Survey

4 Messages Forum Options Options
Permalink
Luca-7
ValueError adding a Plone Survey
Reply Threaded More
Print post
Permalink
Hi all!

I have a problem using Plone Survey product. I tryed both 1.2 and
1.2.1beta but I get the same error (and I made test on two different
plone 2.5.5 sites).

Adding a new survey content raise

ValueError: constrainTypesMode.default_method is neither a method of
<class 'Products.PloneSurvey.content.Survey.Survey'> nor a callable

This is strange... I looked at google but I found nothing about this.

Any suggestions?

--
-- luca

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
Alex Clark-2
Re: ValueError adding a Plone Survey
Reply Threaded More
Print post
Permalink
Hi Luca,

PloneSurvey1-3-0alpha-tar.gz "works for me" on Plone 2.5.5.

If you are using buildout:

    [productdistros]
    recipe = plone.recipe.distros
    urls =
        http://plone.org/products/plone-survey/releases/1.3.0/plonesurvey1-3-0alpha-tar.gz
    nested-packages =
    version-suffix-packages =

HTH,

Alex

On 2008-07-25, Luca <lucafbb@...> wrote:

> Hi all!
>
> I have a problem using Plone Survey product. I tryed both 1.2 and
> 1.2.1beta but I get the same error (and I made test on two different
> plone 2.5.5 sites).
>
> Adding a new survey content raise
>
> ValueError: constrainTypesMode.default_method is neither a method of
><class 'Products.PloneSurvey.content.Survey.Survey'> nor a callable
>
> This is strange... I looked at google but I found nothing about this.
>
> Any suggestions?
>


--
Alex Clark · http://aclark.net
Register for Plone Conference 2008 · http://ploneconf2008.eventbrite.com


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
Luca-7
Re: ValueError adding a Plone Survey
Reply Threaded More
Print post
Permalink
Thanks Alex. In facts testing this version on another Plone 2.5.5
instance I get no error. Unluckily I need it on one of the other 2
instance, where I get this:

    *  Module ZPublisher.Publish, line 115, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 41, in call_object
    * Module Products.CMFPlone.FactoryTool, line 361, in __call__
    * Module Products.CMFPlone.FactoryTool, line 147, in __getitem__
    * Module Products.CMFPlone.PloneFolder, line 406, in invokeFactory
    * Module Products.CMFCore.TypesTool, line 934, in constructContent
    * Module Products.CMFCore.TypesTool, line 343, in constructInstance
    * Module Products.CMFCore.TypesTool, line 574, in _constructInstance
    * Module Products.PloneSurvey.content.Survey, line 8, in addSurvey
    * Module Products.ATContentTypes.content.base, line 224, in
initializeArchetype
    * Module Products.Archetypes.BaseObject, line 455, in setDefaults
    * Module Products.Archetypes.Schema, line 483, in setDefaults
    * Module Products.Archetypes.Field, line 561, in getDefault

ValueError: constrainTypesMode.default_method is neither a method of
<class 'Products.PloneSurvey.content.Survey.Survey'> nor a callable.


I really don't know what other products is in conflict with survey. If
I create a new empty plone site and (install nothing) in one of those
intances, I get the same error.

On Sun, Jul 27, 2008 at 6:03 PM, Alex Clark <aclark@...> wrote:

> Hi Luca,
>
> PloneSurvey1-3-0alpha-tar.gz "works for me" on Plone 2.5.5.
>
> If you are using buildout:
>
>    [productdistros]
>    recipe = plone.recipe.distros
>    urls =
>        http://plone.org/products/plone-survey/releases/1.3.0/plonesurvey1-3-0alpha-tar.gz
>    nested-packages =
>    version-suffix-packages =
>
> HTH,
>
> Alex
>
> On 2008-07-25, Luca <lucafbb@...> wrote:
>> Hi all!
>>
>> I have a problem using Plone Survey product. I tryed both 1.2 and
>> 1.2.1beta but I get the same error (and I made test on two different
>> plone 2.5.5 sites).
>>
>> Adding a new survey content raise
>>
>> ValueError: constrainTypesMode.default_method is neither a method of
>><class 'Products.PloneSurvey.content.Survey.Survey'> nor a callable
>>
>> This is strange... I looked at google but I found nothing about this.
>>
>> Any suggestions?
>>
>
>
> --
> Alex Clark · http://aclark.net
> Register for Plone Conference 2008 · http://ploneconf2008.eventbrite.com
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Plone-Users mailing list
> Plone-Users@...
> https://lists.sourceforge.net/lists/listinfo/plone-users
>



--
-- luca

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
Luca-7
Re: ValueError adding a Plone Survey
Reply Threaded More
Print post
Permalink
Damn! I found!

An old evil monkey patch! :-)

On Wed, Jul 30, 2008 at 11:49 AM, Luca <lucafbb@...> wrote:

> Thanks Alex. In facts testing this version on another Plone 2.5.5
> instance I get no error. Unluckily I need it on one of the other 2
> instance, where I get this:
>
>    *  Module ZPublisher.Publish, line 115, in publish
>    * Module ZPublisher.mapply, line 88, in mapply
>    * Module ZPublisher.Publish, line 41, in call_object
>    * Module Products.CMFPlone.FactoryTool, line 361, in __call__
>    * Module Products.CMFPlone.FactoryTool, line 147, in __getitem__
>    * Module Products.CMFPlone.PloneFolder, line 406, in invokeFactory
>    * Module Products.CMFCore.TypesTool, line 934, in constructContent
>    * Module Products.CMFCore.TypesTool, line 343, in constructInstance
>    * Module Products.CMFCore.TypesTool, line 574, in _constructInstance
>    * Module Products.PloneSurvey.content.Survey, line 8, in addSurvey
>    * Module Products.ATContentTypes.content.base, line 224, in
> initializeArchetype
>    * Module Products.Archetypes.BaseObject, line 455, in setDefaults
>    * Module Products.Archetypes.Schema, line 483, in setDefaults
>    * Module Products.Archetypes.Field, line 561, in getDefault
>
> ValueError: constrainTypesMode.default_method is neither a method of
> <class 'Products.PloneSurvey.content.Survey.Survey'> nor a callable.
>
>
> I really don't know what other products is in conflict with survey. If
> I create a new empty plone site and (install nothing) in one of those
> intances, I get the same error.
>
> On Sun, Jul 27, 2008 at 6:03 PM, Alex Clark <aclark@...> wrote:
>> Hi Luca,
>>
>> PloneSurvey1-3-0alpha-tar.gz "works for me" on Plone 2.5.5.
>>
>> If you are using buildout:
>>
>>    [productdistros]
>>    recipe = plone.recipe.distros
>>    urls =
>>        http://plone.org/products/plone-survey/releases/1.3.0/plonesurvey1-3-0alpha-tar.gz
>>    nested-packages =
>>    version-suffix-packages =
>>
>> HTH,
>>
>> Alex
>>
>> On 2008-07-25, Luca <lucafbb@...> wrote:
>>> Hi all!
>>>
>>> I have a problem using Plone Survey product. I tryed both 1.2 and
>>> 1.2.1beta but I get the same error (and I made test on two different
>>> plone 2.5.5 sites).
>>>
>>> Adding a new survey content raise
>>>
>>> ValueError: constrainTypesMode.default_method is neither a method of
>>><class 'Products.PloneSurvey.content.Survey.Survey'> nor a callable
>>>
>>> This is strange... I looked at google but I found nothing about this.
>>>
>>> Any suggestions?
>>>
>>
>>
>> --
>> Alex Clark · http://aclark.net
>> Register for Plone Conference 2008 · http://ploneconf2008.eventbrite.com
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Plone-Users mailing list
>> Plone-Users@...
>> https://lists.sourceforge.net/lists/listinfo/plone-users
>>
>
>
>
> --
> -- luca
>



--
-- luca

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users