Beispiel #1
0
    def __call__ (self):
        tarball_refs = Downloads.get_latest_tarball()
        tar_local, tar_web = tarball_refs

        # Automatic
        content = CTK.Container()
        content += CTK.RawHTML ("<h3>%s</h3>" %(_("Option 1: Automatic installation")))

        box  = CTK.Box()
        box += CTK.RawHTML ('<p>%s</p>' %(_('Open a terminal and enter:')))
        box += CTK.RawHTML ('<pre class="terminal">wget http://cherokee-project.com/install && python install</pre>')
        box += CTK.RawHTML ('<p>%s</p>' %(_('or')))
        box += CTK.RawHTML ('<pre class="terminal">curl -LO http://cherokee-project.com/install && python install</pre>')
        box += CTK.RawHTML ('<p>%s</p>' %(_('This will download and install Cherokee under /opt/cherokee')))
        content += box

        # By hand
        content += CTK.RawHTML ("<h3>%s</h2>" %(_("Option 2: Compile it by hand")))

        sources  = CTK.Box()
        sources += CTK.RawHTML ('%s '%(_("Download")))
        sources += CTK.Link (tar_web, CTK.RawHTML (_("latest source code package")))
        sources += CTK.RawHTML (', and install it by hand doing the <i>./configure, make, make install</i> dance.')
        sources += CTK.RawHTML ('<pre class="terminal">configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc<br/>make && sudo make install</pre>')
        sources += CTK.RawHTML ('Older releases are also available at our <a href="/download/">Downloads archive</a>.')

        content += sources

        return CTK.HTTP_Cacheable (60, body=content.Render().toStr())
Beispiel #2
0
    def __call__ (self):
        tarball_refs = Downloads.get_latest_tarball()
        tar_local, tar_web = tarball_refs

        # Automatic
        content = CTK.Container()
        content += CTK.RawHTML ("<h3>%s</h3>" %(_("Option 1: Automatic installation")))

        box  = CTK.Box()
        box += CTK.RawHTML ('<p>%s</p>' %(_('Open a terminal and enter:')))
        box += CTK.RawHTML ('<pre class="terminal">wget http://cherokee-project.com/install && python install</pre>')
        box += CTK.RawHTML ('<p>%s</p>' %(_('or')))
        box += CTK.RawHTML ('<pre class="terminal">curl -LO http://cherokee-project.com/install && python install</pre>')
        box += CTK.RawHTML ('<p>%s</p>' %(_('This will download and install Cherokee under /opt/cherokee')))
        content += box

        # By hand
        content += CTK.RawHTML ("<h3>%s</h2>" %(_("Option 2: Compile it by hand")))

        sources  = CTK.Box()
        sources += CTK.RawHTML ('%s '%(_("Download")))
        sources += CTK.Link (tar_web, CTK.RawHTML (_("latest source code package")))
        sources += CTK.RawHTML (', and install it by hand doing the <i>./configure, make, make install</i> dance.')
        sources += CTK.RawHTML ('<pre class="terminal">configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc<br/>make && sudo make install</pre>')
        sources += CTK.RawHTML ('Older releases are also available at our <a href="/download/">Downloads archive</a>.')

        content += sources

        return CTK.HTTP_Cacheable (60, body=content.Render().toStr())
Beispiel #3
0
 def __call__ (self):
     tarball_refs = Downloads.get_latest_tarball()
     tar_local, tar_web = tarball_refs
     return CTK.HTTP_Redir (tar_web)
 def __call__(self):
     tarball_refs = Downloads.get_latest_tarball()
     tar_local, tar_web = tarball_refs
     return CTK.HTTP_Redir(tar_web)