Ticket #1496 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

Notifications error

Reported by: drenevey Owned by: div
Priority: P1 Milestone: CPS 3.4.0
Component: CPSSubscriptions Version: TRUNK
Severity: normal Keywords:
Cc:

Description

2006-03-02T16:32:40 ERROR CPSSubscriptions Error in subject notification template for 'workflow_checkout_draft': unsupported operand type(s) for %: 'NoneType?' and 'dict'

Change History

comment:1 Changed 14 years ago by drenevey

mail sent displays

"An error occurred while computing the body of the email message.

Please contact, the administrator of the portal"

and error in logs.

comment:2 Changed 14 years ago by fguillaume

Also:

ERROR CPSSubscriptions Error in body notification template with infos {'object_title': 'Bref', 'kwargs': {'comment': 'ay\xe9 y\xe9 fini', 'dest_objects': workspaces/02-02-2006/bref?, 'dest_container': <ProxyFolder? at /cps/workspaces/02-02-2006>, 'checkin_transition': 'unlock'}, 'Title': 'Bref', 'photo': <Image at /cps/workspaces/02-02-2006/bref_1/20597855670002/photo>, 'rpath': 'workspaces/02-02-2006/bref_1', 'object_type': 'Br\xe8ve', 'kwargs_checkin_transition': 'unlock', 'EffectiveDate?': DateTime?('2006/03/02 16:20:00 GMT+1'), 'Source': , 'comments':

'ay\xe9 y\xe9 fini', 'event': 'workflow_checkin_draft', 'user_id': 'delph3', 'portal_title': 'Cps Funkload Test Site', 'Format': 'text/html', 'portal_url': ' http://bart:8080/cps', 'content': '<h1>...........</p>', 'content_format': 'html', 'kwargs_comment': 'ay\xe9 y\xe9 fini', 'ExpirationDate?': None, 'Coverage': , 'object_url': ' http://bart:8080/cps/workspaces/02-02-2006/bref_1', 'ModificationDate?': DateTime?('2006/03/02 16:34:27.474 GMT+1'), 'preview': None, 'user_name': ,

'object_parent_title': '02-02-2006', 'kwargs_dest_objects': workspaces/02-02-2006/bref?, 'content_position': 'normal', 'info_url': ' http://bart:8080/cps/workspaces/02-02-2006/folder_subscribe_form', 'Rights': , 'object_parent_url': ' http://bart:8080/cps/workspaces/02-02-2006', 'photo_position': 'right', 'object_creator_id': 'delph3', 'Language': 'fr', 'Description': , 'notification_title': "Validation d'une version", 'kwargs_dest_container': <ProxyFolder? at /cps/workspaces/02-02-2006>, 'Contributors': ('Delph Testing',), 'photo_subtitle': 'Tr\xe9 choli', 'Creator': 'delph3', 'allow_discussion': False, 'object_creator_name': , 'Relation': , 'photo_original': <Image at /cps/workspaces/02-02-2006/bref_1/20597855670002/photo>, 'CreationDate?': DateTime?('2006/03/02 16:31:36.348 GMT+1'), 'Subject': ('Arts',)}: unsupported operand type(s) for %: 'NoneType?' and 'dict'

comment:3 Changed 14 years ago by div

  • Owner changed from trac to div

comment:4 Changed 14 years ago by div

There is no I/O for event messages. A quick fix would be to make a call to the SubscriptionsTool?.setupEvents() after the import is done (in an importVarious maybe). The longer fix would be to add I/O support for event messages.

comment:5 Changed 14 years ago by fguillaume

Damn, I was sure I'd done all the I/O for CPSSubscriptions. Are you sure?

comment:6 Changed 14 years ago by fguillaume

If an event message isn't present, the (default) message should be sent. There shouldn't be errors.

comment:7 Changed 14 years ago by div

I'll use the default message if the event message isn't present to have a working solution for now. Then I'll implement the I/O for the "specific event messages".

comment:8 Changed 14 years ago by div

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

Fixed in [33749]. The I/O was actually fine.

Note: See TracTickets for help on using tickets.