Ejemplo n.º 1
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())
Ejemplo n.º 2
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())