Project

General

Profile

Bug #2745

Exception sur le fil atom

Added by Frédéric Péters over 11 years ago. Updated about 11 years ago.

Status:
Fermé
Priority:
Normal
Category:
-
Target version:
-
Start date:
12 April 2013
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Planning:

Description

http://eservices-test-entrouvert.montpellier-agglo.com/announces/atom

Exception:
  type = '<type 'exceptions.TypeError'>', value = 'value is not the same type'

Stack trace (most recent call first):
  File "/usr/lib/pymodules/python2.6/extra-wcs-au-quotidien/modules/pyatom/pyatom.py", line 837, in __setattr__
   835          # locked item so do checks
   836          if not type(self.__dict__[name]) is type(value):
>  837                  raise TypeError, "value is not the same type" 
   838
   839          self.__dict__[name] = value

  locals:
     lock = True
     self = <modules.pyatom.pyatom.Feed object at 0x446e3d0>
     dict = {'rights': <modules.pyatom.pyatom.Rights object at 0x2888810>, 'def_attr': None, 'updated': <modules.py
atom.pyatom.Updated object at 0x446e850>, 'elements': [<modules.pyatom.pyatom.Title object at 0x446e910>,
<modules.pyatom.pyatom.Id object at 0x446e7d0>, <modules.pyatom.pyatom.Updated object at 0x446e850>,
<modules.pyatom.pyatom.Collection object at 0x446e950>, <modules.pyatom.pyatom.Collection object at 0x446e290>,
<modules.pyatom.pyatom.Subtitle object at 0x446e090>, <modules.pyatom.pyatom.Collection object at 0x446e110>,
<modules.pyatom.pyatom.Collection object at 0x446e1d0>, <modules.pyatom.pyatom.Generator object at 0x446e990>,
<modules.pyatom.pyatom.Icon object at 0x2888710>, <modules.pyatom.pyatom.Logo object at 0x2888090>,
<modules.pyatom.pyatom.Rights object at 0x2888810>, <modules.pyatom.pyatom.Collection object at 0x2888190>],
'subtitle': <modules.pyatom.pyatom.Subtitle object at 0x446e090>, 'contributors': <modules.pyatom.pyatom.Collection
object at 0x446e1d0>, 'links': <modules.pyatom.pyatom.Collection object at 0x446e290>, 'title':
<modules.pyatom.pyatom.Title object at 0x446e910>, 'lock': True, 'generator': <modules.pyatom.pyatom.Generator
object at 0x446e990>, '_name': 'root_element', '_parent': <modules.pyatom.pyatom.XMLDoc object at 0x3696790>,
'tag_name': 'feed', 'attrs': {'xmlns': 'http://www.w3.org/2005/Atom'}, 'attr_names': [], 'authors':
<modules.pyatom.pyatom.Collection object at 0x446e950>, 'logo': <modules.pyatom.pyatom.Logo object at 0x2888090>,
'entries': <modules.pyatom.pyatom.Collection object at 0x2888190>, 'id': <modules.pyatom.pyatom.Id object at
0x446e7d0>, 'categories': <modules.pyatom.pyatom.Collection object at 0x446e110>, 'icon':
<modules.pyatom.pyatom.Icon object at 0x2888710>}
     name = 'title'
     value = None

  File "/usr/lib/pymodules/python2.6/extra-wcs-au-quotidien/modules/root.ptl", line 522, in atom
   520         feed = pyatom.Feed()
   521         xmldoc.root_element = feed
>  522         feed.title = get_cfg('misc', {}).get('sitename', 'Au Quotidien')
   523         feed.id = get_request().get_url()
   524

  locals:
     feed = <modules.pyatom.pyatom.Feed object at 0x446e3d0>
     pyatom = <module 'modules.pyatom.pyatom' from '/usr/lib/pymodules/python2.6/extra-wcs-au-quotidien/modules/pya
tom/pyatom.py'>
     self = <modules.root.AnnouncesDirectory object at 0x2b55c50>
     response = <qommon.http_response.HTTPResponse instance at 0x34fe290>
     _q_output = <TemplateIO object at 0x28191d0>
     xmldoc = <modules.pyatom.pyatom.XMLDoc object at 0x3696790>

History

#1

Updated by Frédéric Péters over 11 years ago

  • Status changed from Nouveau to Résolu (à déployer)

Très étrangement le "sitename" sur le site de préprod de Montpellier était à None; c'est corrigé là et le code aussi, au cas où.

commit 398e6f351e85b0b3271c468004909478868118ed
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sun Apr 14 20:38:01 2013 +0200

    atom: do not fail on missing sitename
#2

Updated by Frédéric Péters about 11 years ago

  • Status changed from Résolu (à déployer) to Fermé

Also available in: Atom PDF