Esempio n. 1
0
  def registerWithSitemap(self):
    """Called by the server when sitemap entries should be registered.
    """

    self.core.requireUniqueService('registerWithSitemap')

    if self.enable_clubs:
      self.core.registerSitemapEntry(club.view.getDjangoURLPatterns())
      self.core.registerSitemapEntry(club_admin.view.getDjangoURLPatterns())
      self.core.registerSitemapEntry(club_member.view.getDjangoURLPatterns())

    self.core.registerSitemapEntry(cron.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(document.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(host.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(job.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(mentor.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(notification.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(organization.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(org_admin.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(priority_group.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(program.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(request.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(site.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(sponsor.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(student.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(student_project.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(survey.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(timeline.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(user_self.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(user.view.getDjangoURLPatterns())

    # register task URL's
    self.core.registerSitemapEntry(grading_group_tasks.getDjangoURLPatterns())
    self.core.registerSitemapEntry(start_update.getDjangoURLPatterns())
    self.core.registerSitemapEntry(survey_tasks.getDjangoURLPatterns())
Esempio n. 2
0
  def registerWithSitemap(self):
    """Called by the server when sitemap entries should be registered.
    """

    self.core.requireUniqueService('registerWithSitemap')

    if self.enable_clubs:
      self.core.registerSitemapEntry(club.view.getDjangoURLPatterns())
      self.core.registerSitemapEntry(club_admin.view.getDjangoURLPatterns())
      self.core.registerSitemapEntry(club_app.view.getDjangoURLPatterns())
      self.core.registerSitemapEntry(club_member.view.getDjangoURLPatterns())

    self.core.registerSitemapEntry(cron.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(document.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(grading_survey.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(
        grading_survey_group.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(host.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(job.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(mentor.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(notification.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(organization.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(org_admin.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(org_app.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(priority_group.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(program.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(project_survey.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(request.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(site.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(sponsor.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(student.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(student_project.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(student_proposal.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(survey.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(timeline.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(user_self.view.getDjangoURLPatterns())
    self.core.registerSitemapEntry(user.view.getDjangoURLPatterns())

    # register ajax URLs
    self.core.registerSitemapEntry(news_feed.getDjangoURLPatterns())
    
    # register task URL's
    self.core.registerSitemapEntry(grading_group_tasks.getDjangoURLPatterns())
    self.core.registerSitemapEntry(mail_tasks.getDjangoURLPatterns())
    self.core.registerSitemapEntry(news_feed_tasks.getDjangoURLPatterns())
    self.core.registerSitemapEntry(survey_tasks.getDjangoURLPatterns())
Esempio n. 3
0
    def registerWithSitemap(self):
        """Called by the server when sitemap entries should be registered.
    """

        self.core.requireUniqueService("registerWithSitemap")

        # Redesigned view registration
        for view in self.views:
            self.core.registerSitemapEntry(view.djangoURLPatterns())

        self.core.registerSitemapEntry(role_conversion.getDjangoURLPatterns())
        self.core.registerSitemapEntry(proposal_conversion.getDjangoURLPatterns())
        self.core.registerSitemapEntry(project_conversion.getDjangoURLPatterns())

        if self.v2:
            return

        if self.enable_clubs:
            self.core.registerSitemapEntry(club.view.getDjangoURLPatterns())
            self.core.registerSitemapEntry(club_admin.view.getDjangoURLPatterns())
            self.core.registerSitemapEntry(club_member.view.getDjangoURLPatterns())

        self.core.registerSitemapEntry(document.view.getDjangoURLPatterns())
        self.core.registerSitemapEntry(host.view.getDjangoURLPatterns())
        self.core.registerSitemapEntry(mentor.view.getDjangoURLPatterns())
        self.core.registerSitemapEntry(notification.view.getDjangoURLPatterns())
        self.core.registerSitemapEntry(organization.view.getDjangoURLPatterns())
        self.core.registerSitemapEntry(org_admin.view.getDjangoURLPatterns())
        self.core.registerSitemapEntry(program.view.getDjangoURLPatterns())
        self.core.registerSitemapEntry(request.view.getDjangoURLPatterns())
        self.core.registerSitemapEntry(site.view.getDjangoURLPatterns())
        self.core.registerSitemapEntry(sponsor.view.getDjangoURLPatterns())
        self.core.registerSitemapEntry(student.view.getDjangoURLPatterns())
        self.core.registerSitemapEntry(student_project.view.getDjangoURLPatterns())
        self.core.registerSitemapEntry(survey.view.getDjangoURLPatterns())
        self.core.registerSitemapEntry(timeline.view.getDjangoURLPatterns())
        self.core.registerSitemapEntry(user_self.view.getDjangoURLPatterns())
        self.core.registerSitemapEntry(user.view.getDjangoURLPatterns())

        # register task URL's
        self.core.registerSitemapEntry(grading_group_tasks.getDjangoURLPatterns())
        self.core.registerSitemapEntry(mailer_tasks.getDjangoURLPatterns())
        self.core.registerSitemapEntry(start_update.getDjangoURLPatterns())
        self.core.registerSitemapEntry(survey_tasks.getDjangoURLPatterns())