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 a msg funtion to the view python class (e.g. as follows): #496

Open
me-kell opened this issue Feb 7, 2022 · 0 comments
Open

Add a msg funtion to the view python class (e.g. as follows): #496

me-kell opened this issue Feb 7, 2022 · 0 comments

Comments

@me-kell
Copy link
Contributor

me-kell commented Feb 7, 2022

The template and view in bobtemplates/plone/view/views are not working together.

The template uses <p tal:content="view/msg">this gets replaced</p> but there is no msg function in the view class.

Add a msg funtion to the view python class (e.g. as follows):

def msg(self):
    return "msg from '%s'" % {{{ view_python_class_name }}}

An alternative would be to remove <p tal:content="view/msg">this gets replaced</p> from the template.

I'd prefer adding the msg function.

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