I've got a nightly script that does a lot of automated changes to pages and
I need to stop the notifications going out because of the email overhead it
is generating.

Looking at the code for PageEditor.py, I can see that saveText accepts the
keyword notify:

@keyword notify: if False (default: True), don't send a PageChangedEvent

Indeed, there are calls to saveText within PageEditor.py where notify=False
is set in the call.

However, similarly changing my code so that it sets notify to False does
not have the same effect.

editor.saveText(text, 0, notify=False) still results in a notification
being sent. What is *really* weird is that if I edit the saveText code so
that the default value for notify is changed, thus:

notify = kw.get('notify', False)

I *still* get the notification when my script runs, but if I edit a page
manually, NO notifications are sent.

I've only got one file on my server called PageEditor.py so I am really
bemused as to what the heck is going on here. I've trying adding logging to
the code and, again, the logging only happens when I'm using moin via the
web server. Nothing is output when my script runs.

Any suggestions, please?

Regards

Philip
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user

Reply via email to