Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add_msg issues #63

Open
ThomasWaldmann opened this issue Sep 1, 2020 · 2 comments
Open

add_msg issues #63

ThomasWaldmann opened this issue Sep 1, 2020 · 2 comments

Comments

@ThomasWaldmann
Copy link
Member

WantedPages / AbandonedPages:

2020-09-02 00:35:51,055 WARNING MoinMoin.theme:1598 Calling add_msg() after send_title(): no message can be added.
2020-09-02 00:35:51,086 INFO MoinMoin.theme:1599 Call stack for add_msg():
  File "/home/user/w/moin-1.9/MoinMoin/Page.py", line 1332, in send_page
    start_line=pi['lines'])

  File "/home/user/w/moin-1.9/MoinMoin/Page.py", line 1432, in send_page_content
    self.execute(request, parser, code)

  File "/home/user/w/moin-1.9/MoinMoin/Page.py", line 1457, in execute
    exec code

  File "WantedPages", line 27, in <module>

  File "/home/user/w/moin-1.9/MoinMoin/formatter/__init__.py", line 312, in macro
    return macro_obj.execute(name, args)

  File "/home/user/w/moin-1.9/MoinMoin/macro/__init__.py", line 129, in execute
    return execute(self, args)

  File "/home/user/w/moin-1.9/MoinMoin/macro/__init__.py", line 114, in <lambda>
    _self.request, call, _args, [_self])

  File "/home/user/w/moin-1.9/MoinMoin/wikiutil.py", line 1973, in invoke_extension_function
    return function(*fixed_args, **kwargs)

  File "/home/user/w/moin-1.9/MoinMoin/macro/WantedPages.py", line 47, in macro_WantedPages
    links = page.getPageLinks(request)

  File "/home/user/w/moin-1.9/MoinMoin/Page.py", line 1607, in getPageLinks
    links = self.parsePageLinks(request)

  File "/home/user/w/moin-1.9/MoinMoin/Page.py", line 1652, in parsePageLinks
    page.send_page(content_only=1)

  File "/home/user/w/moin-1.9/MoinMoin/Page.py", line 1201, in send_page
    request.theme.add_msg(_('The backed up content of this page is deprecated and will rank lower in search results!'), "warning")

  File "/home/user/w/moin-1.9/MoinMoin/theme/__init__.py", line 1599, in add_msg
    logging.info('\n'.join(['Call stack for add_msg():'] + traceback.format_stack()))
@ThomasWaldmann
Copy link
Member Author

seems to happen only for #deprecated pages.

@ThomasWaldmann
Copy link
Member Author

crap, can't reproduce this any more!?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant