--> -->

KeyError

'Bandphoto'

If you want to report a bug, please save this page and attach it to your bug report.

Traceback

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

  1. /home/lotek/lib/python2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_wsgi.Request object at 0xaee9d52c>)

    1. 1309 self.page.send_page()
    2. 1310 else:
    3. 1311 handler(self.page.page_name, self)
    4. 1312
    5. 1313 # every action that didn't use to raise MoinMoinFinish must call this now:
    • handler = <function execute at 0xaecf3924>
    • self = <MoinMoin.request.request_wsgi.Request object at 0xaee9d52c>
    • self.page = <MoinMoin.Page.Page object at 0xaed0746c>
    • self.page.page_name = u"Rock'n'Roll/Kontaktformular"
  2. /home/lotek/wiki/data/wikiwiki/plugin/action/submitemail.py in execute (pagename=u"Rock'n'Roll/Kontaktformular", request=<MoinMoin.request.request_wsgi.Request object at 0xaee9d52c>)

    1. 20
    2. 21 def execute(pagename, request):
    3. 22 submitemail(pagename, request).render()
    4. 23
    5. 24 class submitemail(SubmitBase):
    • global submitemail = <class RockHeavy.p_c46d719226f678769daaff76efa29...b17.action.submitemail.submitemail at 0xaecefcec>
    • pagename = u"Rock'n'Roll/Kontaktformular"
    • request = <MoinMoin.request.request_wsgi.Request object at 0xaee9d52c>
    • ).render undefined
  3. /home/lotek/lib/python2.5/site-packages/MoinMoin/action/__init__.py in render (self=<RockHeavy.p_c46d719226f678769daaff76efa29dbf262...n.submitemail.submitemail instance at 0xaed0768c>)

    1. 202 elif self.form_trigger in form: # user hit the trigger button
    2. 203 if self.ticket_ok():
    3. 204 success, self.error = self.do_action()
    4. 205 else:
    5. 206 success = False
    • success undefined
    • self = <RockHeavy.p_c46d719226f678769daaff76efa29dbf262...n.submitemail.submitemail instance at 0xaed0768c>
    • self.error = ''
    • self.do_action = <bound method submitemail.do_action of <RockHeav....submitemail.submitemail instance at 0xaed0768c>>
  4. /home/lotek/wiki/data/wikiwiki/plugin/action/submitbase.py in do_action (self=<RockHeavy.p_c46d719226f678769daaff76efa29dbf262...n.submitemail.submitemail instance at 0xaed0768c>)

    1. 157 self.validate()
    2. 158 self.sanitize()
    3. 159 self.submit()
    4. 160 except SubmitValidationError:
    5. 161 return False, self.msg
    • self = <RockHeavy.p_c46d719226f678769daaff76efa29dbf262...n.submitemail.submitemail instance at 0xaed0768c>
    • self.submit = <bound method submitemail.submit of <RockHeavy.p....submitemail.submitemail instance at 0xaed0768c>>
  5. /home/lotek/wiki/data/wikiwiki/plugin/action/submitemail.py in submit (self=<RockHeavy.p_c46d719226f678769daaff76efa29dbf262...n.submitemail.submitemail instance at 0xaed0768c>)

    1. 45
    2. 46 def submit(self):
    3. 47 SubmitBase.submit(self)
    4. 48 text = self.build_content()
    5. 49 status, msg = sendmail(self.request, self.targetemail, self.subject, text, mail_from=self.targetemail)
    • global SubmitBase = <class RockHeavy.p_c46d719226f678769daaff76efa29...07b17.action.submitbase.SubmitBase at 0xaecefd7c>
    • SubmitBase.submit = <unbound method SubmitBase.submit>
    • self = <RockHeavy.p_c46d719226f678769daaff76efa29dbf262...n.submitemail.submitemail instance at 0xaed0768c>
  6. /home/lotek/wiki/data/wikiwiki/plugin/action/submitbase.py in submit (self=<RockHeavy.p_c46d719226f678769daaff76efa29dbf262...n.submitemail.submitemail instance at 0xaed0768c>)

    1. 136 """
    2. 137 self.append_link()
    3. 138 self.labels, self.values = self._sort_fields(self.fields, self.request.form)
    4. 139
    5. 140 def do_action(self):
    • self = <RockHeavy.p_c46d719226f678769daaff76efa29dbf262...n.submitemail.submitemail instance at 0xaed0768c>
    • self.labels = []
    • self.values = []
    • self._sort_fields = <bound method submitemail._sort_fields of <RockH....submitemail.submitemail instance at 0xaed0768c>>
    • self.fields = {'Bandbiographie': u'', 'Bandjahr': u'', 'Bandkommentar': u'', 'Bandkontakt': u'No', 'Bandlogo': '', 'Bandmitglieder': u'', 'Bandname': u'', 'Bandstil': u'', 'Bandwebseite': u'', 'Lizenz': u'No'}
    • self.request = <MoinMoin.request.request_wsgi.Request object at 0xaee9d52c>
    • self.request.form = {'Bandbiographie': [u''], 'Bandjahr': [u''], 'Bandkommentar': [u''], 'Bandkontakt': [u'No'], 'Bandmitglieder': [u''], 'Bandname': [u''], 'Bandstil': [u''], 'Bandwebseite': [u''], 'Lizenz': [u'No'], 'action': [u'submitemail'], ...}
  7. /home/lotek/wiki/data/wikiwiki/plugin/action/submitbase.py in _sort_fields (self=<RockHeavy.p_c46d719226f678769daaff76efa29dbf262...n.submitemail.submitemail instance at 0xaed0768c>, fields={'Bandbiographie': u'', 'Bandjahr': u'', 'Bandkommentar': u'', 'Bandkontakt': u'No', 'Bandlogo': '', 'Bandmitglieder': u'', 'Bandname': u'', 'Bandstil': u'', 'Bandwebseite': u'', 'Lizenz': u'No'}, form={'Bandbiographie': [u''], 'Bandjahr': [u''], 'Bandkommentar': [u''], 'Bandkontakt': [u'No'], 'Bandmitglieder': [u''], 'Bandname': [u''], 'Bandstil': [u''], 'Bandwebseite': [u''], 'Lizenz': [u'No'], 'action': [u'submitemail'], ...})

    1. 229 label = label.encode('utf-8')
    2. 230 labels.append(label)
    3. 231 values.append(fields[label])
    4. 232 else:
    5. 233 labels = fields.keys();
    • values = [u'', u'', u'', u'', u'', '']
    • values.append = <built-in method append of list object at 0xaed073ec>
    • fields = {'Bandbiographie': u'', 'Bandjahr': u'', 'Bandkommentar': u'', 'Bandkontakt': u'No', 'Bandlogo': '', 'Bandmitglieder': u'', 'Bandname': u'', 'Bandstil': u'', 'Bandwebseite': u'', 'Lizenz': u'No'}
    • label = 'Bandphoto'

KeyError

'Bandphoto'

  • args = ('Bandphoto',)
  • message = 'Bandphoto'

System Details