AttributeError with beta 0.2.0 and plone 2.5.2

2 views
Skip to first unread message

pud...@gmail.com

unread,
May 14, 2007, 11:42:16 AM5/14/07
to eCampaigning Tool for Plone

Hi eCampaigners,

I'm trying to get eCam working with plone 2.5.2, and have installed
without problems, but get an error while trying to add either a target
person, a target organisation or the "advanced" step of configuring an
"action edition". Below are my relevant versions and products and the
full traceback. Searching known issues was hard today because the
plone.org site has been down most of the day, so I'm sorry I have not
done that. If anyone has any ideas please let me know! (btw, as far as
I know I have configured the accessrule and maildrophost correctly)

cheers,
sisi (Friends of the Earth International)

Error Type
AttributeError
Error Value
'int' object has no attribute 'startswith'

Plone version: 2.5.2, Zope version: 2.9.6-final, python 2.4.4
(possibly) relevant installed products:

ATDataMerge 0.1 installed
ATSchemaEditorNG 0.4.4 (UNRELEASED/SVN) installed
MailBoxer 3.3.1
MailHost MailHost-1-3-0
MaildropHost 1.19
PythonField 1.0
SecureMailHost 1.0.4
TALESField 1.0
TemplateFields 1.0
eCampaigning 0.2-beta installed

Traceback (innermost last):
Module ZPublisher.Publish, line 115, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 41, in call_object
Module Products.CMFCore.PortalContent, line 108, in __call__
Module Shared.DC.Scripts.Bindings, line 311, in __call__
Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
Module Products.CMFCore.FSPageTemplate, line 195, in _exec
Module Products.CacheSetup.patch_cmf, line 18, in FSPT_pt_render
Module Products.CacheSetup.patch_utils, line 9, in call_pattern
Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
Module Products.CacheSetup.patch_cmf, line 68, in PT_pt_render
Module Products.CacheSetup.patch_utils, line 9, in call_pattern
Module Products.PageTemplates.PageTemplate, line 104, in pt_render
- <FSPageTemplate at /foeiMultisiteFolder/foei/base_view used for /
foeiMultisiteFolder/foei/en/get-involved/take-action/foe-georgia-
solidarity-action/default-person-target>
Module TAL.TALInterpreter, line 238, in __call__
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 749, in do_useMacro
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 457, in do_optTag_tal
Module TAL.TALInterpreter, line 442, in do_optTag
Module TAL.TALInterpreter, line 437, in no_tag
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 780, in do_defineSlot
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 457, in do_optTag_tal
Module TAL.TALInterpreter, line 442, in do_optTag
Module TAL.TALInterpreter, line 437, in no_tag
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 728, in do_defineMacro
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 772, in do_defineSlot
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 457, in do_optTag_tal
Module TAL.TALInterpreter, line 442, in do_optTag
Module TAL.TALInterpreter, line 437, in no_tag
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 728, in do_defineMacro
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 457, in do_optTag_tal
Module TAL.TALInterpreter, line 442, in do_optTag
Module TAL.TALInterpreter, line 437, in no_tag
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 749, in do_useMacro
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 691, in do_loop_tal
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 457, in do_optTag_tal
Module TAL.TALInterpreter, line 442, in do_optTag
Module TAL.TALInterpreter, line 437, in no_tag
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 715, in do_condition
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 457, in do_optTag_tal
Module TAL.TALInterpreter, line 442, in do_optTag
Module TAL.TALInterpreter, line 437, in no_tag
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 749, in do_useMacro
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 749, in do_useMacro
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 457, in do_optTag_tal
Module TAL.TALInterpreter, line 442, in do_optTag
Module TAL.TALInterpreter, line 437, in no_tag
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 715, in do_condition
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 457, in do_optTag_tal
Module TAL.TALInterpreter, line 442, in do_optTag
Module TAL.TALInterpreter, line 437, in no_tag
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 715, in do_condition
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 457, in do_optTag_tal
Module TAL.TALInterpreter, line 442, in do_optTag
Module TAL.TALInterpreter, line 437, in no_tag
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 749, in do_useMacro
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 457, in do_optTag_tal
Module TAL.TALInterpreter, line 442, in do_optTag
Module TAL.TALInterpreter, line 437, in no_tag
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 749, in do_useMacro
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 507, in do_setLocal_tal
Module Products.PageTemplates.TALES, line 221, in evaluate
- URL: file:Archetypes/skins/archetypes/widgets/selection.pt
- Line 52, Column 6
- Expression: <PythonExpr field.Vocabulary(here)>
- Names:
{'container': <PloneSite at /foeiMultisiteFolder/foei>,
'context': <PersonTarget at /foeiMultisiteFolder/foei/en/get-
involved/take-action/foe-georgia-solidarity-action/default-person-
target>,
'default': <Products.PageTemplates.TALES.Default instance at
0xb70e3f2c>,
'here': <PersonTarget at /foeiMultisiteFolder/foei/en/get-
involved/take-action/foe-georgia-solidarity-action/default-person-
target>,
'loop': <Products.PageTemplates.TALES.SafeMapping object at
0xb1b520cc>,
'modules':
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at
0xb7082cec>,
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.TALES.SafeMapping object at
0xb1b520cc>,
'request': <HTTPRequest, URL=http://webtest.foei.org:8080/
foeiMultisiteFolder/foei/en/get-involved/take-action/foe-georgia-
solidarity-action/default-person-target>,
'root': <Application at >,
'template': <FSPageTemplate at /foeiMultisiteFolder/foei/
base_view used for /foeiMultisiteFolder/foei/en/get-involved/take-
action/foe-georgia-solidarity-action/default-person-target>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>}
Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
- __traceback_info__: field.Vocabulary(here)
Module Python expression "field.Vocabulary(here)", line 1, in
<expression>
Module Products.Archetypes.Field, line 441, in Vocabulary
Module Products.Archetypes.utils, line 161, in mapply
Module Products.CMFCore.FSPythonScript, line 108, in __call__
Module Shared.DC.Scripts.Bindings, line 311, in __call__
Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
Module Products.CMFCore.FSPythonScript, line 164, in _exec
Module None, line 37, in localizedCountryVocabulary
- <FSPythonScript at /foeiMultisiteFolder/foei/
localizedCountryVocabulary used for /foeiMultisiteFolder/foei/en/get-
involved/take-action/foe-georgia-solidarity-action/default-person-
target>
- Line 37
Module AccessControl.ZopeGuards, line 180, in next
Module Products.Archetypes.BaseFolder, line 169, in __getitem__
Module Products.Archetypes.BaseObject, line 427, in __getitem__
AttributeError: 'int' object has no attribute 'startswith'

Petri Savolainen

unread,
May 15, 2007, 4:15:34 PM5/15/07
to eCampaigning Tool for Plone
Hello,

and thanks for the report. Based on the trackback, it seems a call to
localizedCountryVocabulary.py is failing when adding a target etc.

I cannot figure the issue out from the trackback, so we're making some
simple manual tests to see if we could replicate the issue and work
from there. If you could outline exactly the sequence of steps you did
prior to running
into the problem, starting from creating an edition, that would help;
could you do that?

It sounds like you're not letting the tool (pre-) create templates,
targets etc. for you when adding an edition? Do things work when you
do?

Regards,

Petri

si si

unread,
May 16, 2007, 6:50:23 AM5/16/07
to eCampaig...@googlegroups.com
Hi Petri,

Thanks for answering me!

I did two things, A. add a campaign action and then add an action. and
B. add an action edition without first adding a campaign action.
sequence of steps for A:
the first thing I did was add a campaign action. There's nothing about
templates here, and I just filled everything in as normal (let me know
if you need more detail about what I filled in.)

Once this is saved, if I try to add a target organisation or a target
person to this campaign action (as outlined in the basic steps
documentation) I get the error.
So, this time around I tried to add an action edition within the
campaign action. The action edition is created and I choose yes to
have the Action Elements created and linked. I change it to a simple
eLetter, and I insert the campaign action I just created as the parent
action.

On the advocacy page I kept everything as it was, using the templates
that were already made. The same for the thank you page. Moving on to
the "advanced" page I get that same error. I also get that same error
when I try to save the action edition.

sequence of steps for B:
When that did not work, I tried to start from scratch with an action
edition, and rather than add a campaign action and then an action
edition, I add an action edition, and go through all the steps as in
A, but get the same errors.
I tried to make an ePetition instead, but got the same error. If I go
to the campaign action and click on a link to one of the action
editions that I created, I get that same error!

I have only followed the above steps, reading the basic set up from
the docs. The only other config I have done for eCam is to get it
installed. So it might be I'm missing a step? I'm going to search the
docs now for everything to do with template creation, see if there is
a step I'm missing. Let me know if you need anything else from, like a
full list of my products etc.

Cheers,
sisi

Duane Raymond - FairSay

unread,
May 16, 2007, 7:16:24 AM5/16/07
to eCampaig...@googlegroups.com
Hi Sisi,

I've been running this version of the eCampaigning Tool on the
fairsay.com site for the eCampaigning Forum registration and the
Participation 2007 event (so I could test them) and didn't
encounter the problems you have found - so I'm not sure where the
problem is coming from.

If you want to temporarily set up an account for me to log-in and
try a few things out on your server I can do that - but I haven't
been able to replicate your problems on my end yet.

Would also be good to know if this was a fresh install or an
upgrade - and if an upgrade, did you 'Update Schema' via the ZMI
> Archetype_tool ?

Cheers,

Duane

si si

unread,
May 16, 2007, 9:46:33 AM5/16/07
to eCampaig...@googlegroups.com
Hi Duane,

I'd love to give you a login but I can't just now because I'm testing
it on a box inside the office with no outside access I'm afraid. Maybe
with ssh -X or something?

I did not know I had to update the schema but I have tried that and it
does not help :(
Are you using plone2.5.2? I'll keep testing anyway. (I'm trying to
debug rss at the same time :)

Grts,
sisi

Petri Savolainen

unread,
Jun 18, 2007, 11:53:41 AM6/18/07
to eCampaigning Tool for Plone
Thanks for digging into this. I've committed the fix into trunk & 0.2
branch (including the bundle) and documented the issue (#13) at
http://plone.org/products/ecampaigning-tool/issues/13.

Cheers,

Petri

Reply all
Reply to author
Forward
0 new messages