Exemple #1
0
 def delete(self, skip_autoupdate=False, *args, **kwargs):
     """
     Customized method to delete an assignment. Ensures that a respective
     assignment projector element is disabled.
     """
     Projector.remove_any(skip_autoupdate=skip_autoupdate,
                          name='assignments/assignment',
                          id=self.pk)
     return super().delete(skip_autoupdate=skip_autoupdate, *args,
                           **kwargs)  # type: ignore # TODO fix typing
Exemple #2
0
 def delete(self, skip_autoupdate=False, *args, **kwargs):
     """
     Customized method to delete a motion. Ensures that a respective
     motion projector element is disabled.
     """
     Projector.remove_any(
         skip_autoupdate=skip_autoupdate,
         name='motions/motion',
         id=self.pk)
     return super().delete(skip_autoupdate=skip_autoupdate, *args, **kwargs)  # type: ignore
Exemple #3
0
 def delete(self, skip_autoupdate=False, *args, **kwargs):
     """
     Customized method to delete a motion block. Ensures that a respective
     motion block projector element is disabled.
     """
     Projector.remove_any(skip_autoupdate=skip_autoupdate,
                          name='motions/motion-block',
                          id=self.pk)
     return super().delete(skip_autoupdate=skip_autoupdate, *args,
                           **kwargs)  # type: ignore
Exemple #4
0
 def delete(self, skip_autoupdate=False, *args, **kwargs):
     """
     Customized method to delete an agenda item. Ensures that a respective
     list of speakers projector element is disabled.
     """
     Projector.remove_any(skip_autoupdate=skip_autoupdate,
                          name='agenda/list-of-speakers',
                          id=self.pk)
     return super().delete(skip_autoupdate=skip_autoupdate, *args,
                           **kwargs)  # type: ignore
Exemple #5
0
 def delete(self, skip_autoupdate=False, *args, **kwargs):
     """
     Customized method to delete an agenda item. Ensures that a respective
     list of speakers projector element is disabled.
     """
     Projector.remove_any(
         skip_autoupdate=skip_autoupdate,
         name='agenda/list-of-speakers',
         id=self.pk)
     return super().delete(skip_autoupdate=skip_autoupdate, *args, **kwargs)  # type: ignore
Exemple #6
0
 def delete(self, skip_autoupdate=False, *args, **kwargs):
     """
     Customized method to delete an assignment. Ensures that a respective
     assignment projector element is disabled.
     """
     Projector.remove_any(
         skip_autoupdate=skip_autoupdate,
         name='assignments/assignment',
         id=self.pk)
     return super().delete(skip_autoupdate=skip_autoupdate, *args, **kwargs)  # type: ignore # TODO fix typing
Exemple #7
0
    def check_projector_requirements(self):
        """
        Helper method which returns True if the current request (on this
        view instance) is required for at least one active projector element.
        """
        from openslides.core.models import Projector

        result = False
        if self.request.user.has_perm('core.can_see_projector'):
            for requirement in Projector.get_all_requirements():
                if requirement.is_currently_required(view_instance=self):
                    result = True
                    break
        return result
Exemple #8
0
    def check_projector_requirements(self):
        """
        Helper method which returns True if the current request (on this
        view instance) is required for at least one active projector element.
        """
        from openslides.core.models import Projector

        result = False
        if self.request.user.has_perm('core.can_see_projector'):
            for requirement in Projector.get_all_requirements():
                if requirement.is_currently_required(view_instance=self):
                    result = True
                    break
        return result
 def get_collection_string(self) -> str:
     return Projector.get_collection_string()
Exemple #10
0
 def get_collection_string(self) -> str:
     return Projector.get_collection_string()