Views
            sith = Sith.objects.first
  
      module-attribute
  
¶
    
            Club
¶
    
              Bases: Model
The Club class, made as a tree to allow nice tidy organization.
            president()
¶
    Fetch the membership of the current president of this club.
            check_loop()
¶
    Raise a validation error when a loop is found within the parent list.
Source code in club/models.py
              
            
            is_owned_by(user)
¶
    Method to see if that object can be super edited by the given user.
            can_be_edited_by(user)
¶
    
            get_membership_for(user)
¶
    Return the current membership the given user.
Note
The result is cached.
Source code in club/models.py
              
            Mailing
¶
    
              Bases: Model
A Mailing list for a club.
Warning
Remember that mailing lists should be validated by UTBM.
              NewsDateForm(*args, **kwargs)
¶
    
              Bases: ModelForm
Form to select the dates of an event.
Source code in com/forms.py
                    
                  
            get_occurrences(number)
  
      classmethod
  
¶
    Find the occurrence choice corresponding to numeric number of occurrences.
Source code in com/forms.py
              
              NewsForm(*args, author, date_form, **kwargs)
¶
    
              Bases: ModelForm
Form to create or edit news.
Source code in com/forms.py
                    
              PosterForm(*args, user, **kwargs)
¶
    
              Bases: ModelForm
Source code in com/forms.py
                    
                  
            IcsCalendar
¶
    
            News
¶
    
              Bases: Model
News about club events.
            NewsDate
¶
    
              Bases: Model
A date associated with news.
A News can have multiple dates, for example if it is a recurring event.
            Poster
¶
    
              Bases: Model
            Screen
¶
    
              Bases: Model
            Sith
¶
    
              Bases: Model
A one instance class storing all the modifiable infos.
            Weekmail
¶
    
              Bases: Model
The weekmail class.
:ivar title: Title of the weekmail :ivar intro: Introduction of the weekmail :ivar joke: Joke of the week :ivar protip: Tip of the week :ivar conclusion: Conclusion of the weekmail :ivar sent: Track if the weekmail has been sent
            send()
¶
    Send the weekmail to all users with the receive weekmail option opt-in.
Also send the weekmail to the mailing list in settings.SITH_COM_EMAIL.
Source code in com/models.py
              
            render_text()
¶
    Renders a pure text version of the mail for readers without HTML support.
            render_html()
¶
    Renders an HTML version of the mail with images and fancy CSS.
            get_banner()
¶
    
            WeekmailArticle
¶
    
              Bases: Model
            ComTabsMixin
¶
    
              Bases: TabedViewMixin
            ComEditView
¶
    
              Bases: ComTabsMixin, CanEditPropMixin, UpdateView
            AlertMsgEditView
¶
    
              Bases: ComEditView
            InfoMsgEditView
¶
    
              Bases: ComEditView
            WeekmailDestinationEditView
¶
    
              Bases: ComEditView
            NewsCreateView
¶
    
              Bases: PermissionRequiredMixin, CreateView
View to either create or update News.
            NewsUpdateView
¶
    
              Bases: PermissionOrAuthorRequiredMixin, UpdateView
            get_date_form_kwargs()
¶
    Get initial data for NewsDateForm
Source code in com/views.py
              
            NewsDeleteView
¶
    
              Bases: PermissionOrAuthorRequiredMixin, DeleteView
            NewsModerateView
¶
    
              Bases: PermissionRequiredMixin, DetailView
            NewsAdminListView
¶
    
              Bases: PermissionRequiredMixin, ListView
            NewsListView
¶
    
              Bases: TemplateView
            get_last_day()
¶
    Get the last day when news will be displayed
The returned day is the third one where something happen. For example, if there are 6 events : A on 15/03, B and C on 17/03, D on 20/03, E on 21/03 and F on 22/03 ; then the result is 20/03.
Source code in com/views.py
              
            get_news_dates(until)
¶
    Return the event dates to display.
The selected events are the ones that happens between right now and the given day (included).
Source code in com/views.py
              
            NewsDetailView
¶
    
              Bases: CanViewMixin, DetailView
            NewsFeed
¶
    
              Bases: Feed
            WeekmailPreviewView
¶
    
              Bases: ComTabsMixin, CanEditPropMixin, DetailView
            get_context_data(**kwargs)
¶
    Add rendered weekmail.
            WeekmailEditView
¶
    
              Bases: ComTabsMixin, CanEditPropMixin, UpdateView
            WeekmailArticleEditView
¶
    
            WeekmailArticleCreateView
¶
    
              Bases: CreateView
Post an article.
            WeekmailArticleDeleteView
¶
    
            MailingListAdminView
¶
    
              Bases: ComTabsMixin, ListView
            MailingModerateView
¶
    
              Bases: View
            PosterListBaseView
¶
    
              Bases: PermissionOrClubBoardRequiredMixin, ListView
List communication posters.
            PosterCreateBaseView
¶
    
              Bases: PermissionOrClubBoardRequiredMixin, CreateView
Create communication poster.
            PosterEditBaseView
¶
    
              Bases: PermissionOrClubBoardRequiredMixin, UpdateView
Edit communication poster.
            PosterDeleteBaseView
¶
    
            PosterListView
¶
    
            PosterCreateView
¶
    
            PosterEditView
¶
    
            PosterDeleteView
¶
    
            PosterModerateListView
¶
    
            PosterModerateView
¶
    
            ScreenListView
¶
    
            ScreenSlideshowView
¶
    
              Bases: DetailView
Slideshow of actives posters.