(self, msg_vals=None)
return groups
Add access button to everyone if the document is published.
Add access button to everyone if the document is published.
Add access button to everyone if the document is published .
def _notify_get_groups(self, msg_vals=None):
        """ Add access button to everyone if the document is published. """
        groups = super(BlogPost, self)._notify_get_groups(msg_vals=msg_vals)

        if self.website_published:
            for group_name, group_method, group_data in groups:
                group_data['has_button_access'] = True

        return groups
def _notify_get_groups ( self , msg_vals = None ) : groups = super ( BlogPost , self ) . _notify_get_groups ( msg_vals = msg_vals ) if self . website_published : for group_name , group_method , group_data in groups : group_data [ 'has_button_access' ] = True return groups