euscanwww: import new website

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
Corentin Chary
2011-04-13 08:50:24 +02:00
parent 2bbd20279c
commit 482e54cfce
32 changed files with 1266 additions and 20 deletions

View File

Binary file not shown.

View File

@ -0,0 +1,5 @@
"""from polls.models import Package
from django.contrib import admin
admin.site.register(Package)
"""

BIN
euscanwww/euscan/admin.pyc Normal file

Binary file not shown.

View File

@ -0,0 +1,31 @@
from django.db import models
"""
class Package(models.Model):
category
package
description
homepage
herds
maintainers
class Herd(models.Model):
herd
class Maintainer(models.Model):
name
email
class Version(models.Model):
package
slot
revision
version
packaged
overlay
urls
class EuscanResult(models.Model):
package
datetime
result
"""

BIN
euscanwww/euscan/models.pyc Normal file

Binary file not shown.

23
euscanwww/euscan/tests.py Normal file
View File

@ -0,0 +1,23 @@
"""
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.failUnlessEqual(1 + 1, 2)
__test__ = {"doctest": """
Another way to test that 1 + 1 is equal to 2.
>>> 1 + 1 == 2
True
"""}

13
euscanwww/euscan/urls.py Normal file
View File

@ -0,0 +1,13 @@
from django.conf.urls.defaults import *
urlpatterns = patterns('euscan.views',
(r'^$', 'index'),
(r'^logs/$', 'logs'),
(r'^categories/$', 'categories'),
(r'^category/(?P<category>\w+)/packages/$', 'category'),
(r'^herds/$', 'herds'),
(r'^herd/(?P<herd>\w+)/packages/$', 'herd'),
(r'^maintainers/$', 'maintainers'),
(r'^maintainer/(?P<maintainer_id>\d+)/packages/$', 'maintainer'),
(r'^package/(?P<category>\w+)/(?P<package>\w+)/$', 'package'),
)

BIN
euscanwww/euscan/urls.pyc Normal file

Binary file not shown.

38
euscanwww/euscan/views.py Normal file
View File

@ -0,0 +1,38 @@
from annoying.decorators import render_to
from django.http import Http404
@render_to('euscan/index.html')
def index(request):
return {}
@render_to('euscan/logs.html')
def logs(request):
return {}
@render_to('euscan/categories.html')
def categories(request):
return {}
@render_to('euscan/category.html')
def category(request, category):
return {}
@render_to('euscan/herds.html')
def herds(request):
return {}
@render_to('euscan/herd.html')
def herd(request, herd):
return {}
@render_to('euscan/maintainers.html')
def maintainers(request):
return {}
@render_to('euscan/maintainer.html')
def maintainer(request, maintainer_id):
return {}
@render_to('euscan/package.html')
def package(request, category, package):
return {}

BIN
euscanwww/euscan/views.pyc Normal file

Binary file not shown.