Modify

Ticket #166 (closed defect: fixed)

Opened 5 years ago

Last modified 19 months ago

comment: unsupported operand type

Reported by: denis Owned by: andycat
Priority: minor Milestone: 4.1
Component: SiteTools Severity:
Keywords: Cc:
Who will test this:

Description

I have an error when i submit a comment:

 This site encountered an error trying to fulfill your request. The errors were:

Error Type
    TypeError
Error Value
    unsupported operand type(s) for +: 'instancemethod' and 'str'

The log inside Plone-2.5.5/zeocluster/client1/log/event.log

2008-07-01T21:40:28 ERROR Zope.SiteErrorLog 
http://plumi.domainepublic.net:8080/test/Members/Plumi/videos/Le_pacte_des_Gnous30Mo.avi/talkback/1214915358/discussion_publish_comment
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.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 20, in discussion_publish_comment
   - <FSPythonScript at /test/discussion_publish_comment used for /test/Members/Plumi/videos/Le_pacte_des_Gnous30Mo.avi/talkback/1214915358>
   - Line 20
  Module Products.qPloneComments.utils, line 43, in manage_mails
  Module Products.qPloneComments.utils, line 31, in sendMails
  Module Products.qPloneComments.utils, line 158, in send_email
  Module Products.qPloneComments.utils, line 52, in getMsg
  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 /test/notify_comment_template used for /test/Members/Plumi/videos/Le_pacte_des_Gnous30Mo.avi/talkback/1214915358>
  Module TAL.TALInterpreter, line 238, in __call__
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 455, in do_optTag_tal
  Module TAL.TALInterpreter, line 437, in no_tag
  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 617, in do_insertTranslation
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 575, in do_i18nVariable
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - URL: file:PlumiSkin/skins/plumi_qplonecomments/notify_comment_template.pt
   - Line 15, Column 24
   - Expression: <PythonExpr obj.absolute_url+'/view'>
   - Names:
      {'container': <PloneSite at /test>,
       'context': <DiscussionItem at /test/Members/Plumi/videos/Le_pacte_des_Gnous30Mo.avi/talkback/1214915358>,
       'default': <Products.PageTemplates.TALES.Default instance at 0xb70f214c>,
       'here': <DiscussionItem at /test/Members/Plumi/videos/Le_pacte_des_Gnous30Mo.avi/talkback/1214915358>,
       'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xb132852c>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xb709c1ec>,
       'nothing': None,
       'options': {'args': (),
                   'mfrom': 'denlistes@altern.org',
                   'mto': 'denis@collectifs.net',
                   'name': 'Plumi',
                   'obj': <ATEngageVideo at /test/Members/Plumi/videos/Le_pacte_des_Gnous30Mo.avi>,
                   'organization_name': ''},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0xb132852c>,
       'request': <HTTPRequest, URL=http://plumi.domainepublic.net:8080/test/Members/Plumi/videos
/Le_pacte_des_Gnous30Mo.avi/talkback/1214915358/discussion_publish_comment>,
       'root': <Application at >,
       'template': <FSPageTemplate at /test/notify_comment_template used for
 /test/Members/Plumi/videos/Le_pacte_des_Gnous30Mo.avi/talkback/1214915358>,
       'traverse_subpath': [],
       'user': <PloneUser 'Plumi'>}
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
   - __traceback_info__: obj.absolute_url+'/view'
  Module Python expression "obj.absolute_url+'/view'", line 1, in <expression>
TypeError: unsupported operand type(s) for +: 'instancemethod' and 'str'

Attachments

Change History

comment:1 Changed 5 years ago by and

  • Milestone set to 0.4

unclassified ticket, pushing to 0.4

comment:2 Changed 4 years ago by andycat

Can you re-test this after upgrading to Plumi 0.2.3?

I belive this is address by this fix to PlumiSkin? :

 http://dev.plone.org/collective/changeset/79022

comment:3 Changed 4 years ago by datakid

  • Status changed from new to closed
  • Resolution set to fixed

I have submitted a comment on demo.plumi.org successfully, this can be closed

comment:4 Changed 19 months ago by Boopplaycle

Last edited 19 months ago by markos (previous) (diff)
View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.