Attachment 'traceback-keyerror.html'
Download--> -->
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.
/home/lotek/lib/python2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_wsgi.Request object at 0xaee9d52c>)
- 1309 self.page.send_page()
- 1310 else:
- 1311 handler(self.page.page_name, self)
- 1312
- 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"
/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>)
- 20
- 21 def execute(pagename, request):
- 22 submitemail(pagename, request).render()
- 23
- 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
/home/lotek/lib/python2.5/site-packages/MoinMoin/action/__init__.py in render (self=<RockHeavy.p_c46d719226f678769daaff76efa29dbf262...n.submitemail.submitemail instance at 0xaed0768c>)
- 202 elif self.form_trigger in form: # user hit the trigger button
- 203 if self.ticket_ok():
- 204 success, self.error = self.do_action()
- 205 else:
- 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>>
/home/lotek/wiki/data/wikiwiki/plugin/action/submitbase.py in do_action (self=<RockHeavy.p_c46d719226f678769daaff76efa29dbf262...n.submitemail.submitemail instance at 0xaed0768c>)
- 157 self.validate()
- 158 self.sanitize()
- 159 self.submit()
- 160 except SubmitValidationError:
- 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>>
/home/lotek/wiki/data/wikiwiki/plugin/action/submitemail.py in submit (self=<RockHeavy.p_c46d719226f678769daaff76efa29dbf262...n.submitemail.submitemail instance at 0xaed0768c>)
- 45
- 46 def submit(self):
- 47 SubmitBase.submit(self)
- 48 text = self.build_content()
- 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>
/home/lotek/wiki/data/wikiwiki/plugin/action/submitbase.py in submit (self=<RockHeavy.p_c46d719226f678769daaff76efa29dbf262...n.submitemail.submitemail instance at 0xaed0768c>)
- 136 """
- 137 self.append_link()
- 138 self.labels, self.values = self._sort_fields(self.fields, self.request.form)
- 139
- 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'], ...}
/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'], ...})
- 229 label = label.encode('utf-8')
- 230 labels.append(label)
- 231 values.append(fields[label])
- 232 else:
- 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
- Date: Tue, 22 Sep 2009 12:09:59 +0000
- Platform: Linux web11.webfaction.com 2.6.9-55.0.2.ELsmp #1 SMP Tue Jun 12 17:59:08 EDT 2007 i686
- Python: Python 2.5 (/home/lotek/bin/python)
- MoinMoin: Release 1.8.4 (release)
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.