Description
On master17 it seems not be possible to save with "Trivial change" enabled --> -->
AttributeError
User instance has no attribute 'want_trivial'
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.
/srv/moin/code/1.7/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_wsgi.Request object>)
- 1273 self.page.send_page()
- 1274 else:
- 1275 handler(self.page.page_name, self)
- 1276
- 1277 # every action that didn't use to raise MoinMoinFinish must call this now:
- handler = <function execute>
- self = <MoinMoin.request.request_wsgi.Request object>
- self.page = <MoinMoin.Page.Page object>
- self.page.page_name = u'HelpOnMacros'
/srv/moin/code/1.7/MoinMoin/action/edit.py in execute (pagename=u'HelpOnMacros', request=<MoinMoin.request.request_wsgi.Request object>)
- 162 if not TextCha(request).check_answer_from_form():
- 163 raise pg.SaveError(_('TextCha: Wrong answer! Go back and try again...'))
- 164 savemsg = pg.saveText(savetext, rev, trivial=trivial, comment=comment)
- 165 except pg.EditConflict, e:
- 166 msg = e.message
- savemsg undefined
- pg = <MoinMoin.PageEditor.PageEditor object>
- pg.saveText = <bound method PageEditor.saveText of <MoinMoin.PageEditor.PageEditor object>>
- savetext = u'## Please edit system and help pages ONLY in the...e arbitrary keyword arguments feature `_kwargs`.\n'
- rev = 78
- trivial = 1
- comment = u''
/srv/moin/code/1.7/MoinMoin/PageEditor.py in saveText (self=<MoinMoin.PageEditor.PageEditor object>, newtext=u'## Please edit system and help pages ONLY in the...e arbitrary keyword arguments feature `_kwargs`.\n', rev=79, **kw={'comment': u'', 'trivial': 1})
- 1141 else:
- 1142 e = events.PageChangedEvent(self.request, self, comment)
- 1143 results = events.send_event(e)
- 1144
- 1145 recipients = set()
- results = []
- events = <module 'MoinMoin.events' from '/srv/moin/code/1.7/MoinMoin/events/__init__.py'>
- events.send_event = <function send_event>
- e = <MoinMoin.events.TrivialPageChangedEvent object>
/srv/moin/code/1.7/MoinMoin/events/__init__.py in send_event (event=<MoinMoin.events.TrivialPageChangedEvent object>)
- 240 # Try to handle the event with each available handler (for now)
- 241 for handle in cfg.event_handlers:
- 242 retval = handle(event)
- 243
- 244 assert retval is None or isinstance(retval, EventResult)
- retval undefined
- handle = <function handle>
- event = <MoinMoin.events.TrivialPageChangedEvent object>
/srv/moin/code/1.7/MoinMoin/events/emailnotify.py in handle (event=<MoinMoin.events.TrivialPageChangedEvent object>)
- 169 return notify_subscribers(event.request, event.page, event.comment, False)
- 170 elif isinstance(event, ev.TrivialPageChangedEvent):
- 171 return notify_subscribers(event.request, event.page, event.comment, True)
- 172 elif isinstance(event, ev.UserCreatedEvent):
- 173 return handle_user_created(event)
- global notify_subscribers = <function notify_subscribers>
- event = <MoinMoin.events.TrivialPageChangedEvent object>
- event.request = <MoinMoin.request.request_wsgi.Request object>
- event.page = <MoinMoin.PageEditor.PageEditor object>
- event.comment = u''
- builtin True = True
/srv/moin/code/1.7/MoinMoin/events/emailnotify.py in notify_subscribers (request=<MoinMoin.request.request_wsgi.Request object>, page=<MoinMoin.PageEditor.PageEditor object>, comment=u'', trivial=True)
- 75
- 76 """
- 77 subscribers = page.getSubscribers(request, return_users=1, trivial=trivial)
- 78 mail_from = page.cfg.mail_from
- 79
- subscribers undefined
- page = <MoinMoin.PageEditor.PageEditor object>
- page.getSubscribers = <bound method PageEditor.getSubscribers of <MoinMoin.PageEditor.PageEditor object>>
- request = <MoinMoin.request.request_wsgi.Request object>
- return_users undefined
- trivial = True
/srv/moin/code/1.7/MoinMoin/Page.py in getSubscribers (self=<MoinMoin.PageEditor.PageEditor object>, request=<MoinMoin.request.request_wsgi.Request object>, **kw={'return_users': 1, 'trivial': True})
- 878 if not subscriber.email:
- 879 continue # skip empty email addresses
- 880 if trivial and not subscriber.want_trivial:
- 881 continue # skip uninterested subscribers
- 882
- trivial = True
- subscriber = <MoinMoin.user.User at 0x910234c name:u'JoshueMartin' valid:1>
- subscriber.want_trivial undefined
AttributeError
User instance has no attribute 'want_trivial'
- args = ("User instance has no attribute 'want_trivial'",)
System Details
- Date: Tue, 22 Apr 2008 19:06:49 +0000
- Platform: Linux www.moinmo.in 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686
- Python: Python 2.4.4 (/usr/bin/python)
- MoinMoin: Release 1.7.0alpha ()
Steps to reproduce
- do this...
Example
Component selection
- general
Details
MoinMoin Version |
1.7dev |
OS and Version |
|
Python Version |
|
Server Setup |
|
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
|
Workaround
Discussion
Plan
- Priority:
- Assigned to:
Status: fixed by http://hg.moinmo.in/moin/1.7/rev/ef612c82bdfd