euscanwww: euscan -> djeuscan
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
parent
6a57b44d7c
commit
da269b0711
5
TODO
5
TODO
@ -34,9 +34,8 @@ Site Handlers
|
|||||||
euscanwww
|
euscanwww
|
||||||
---------
|
---------
|
||||||
|
|
||||||
- quick install doc
|
- rename euscan application django-euscan/djeuscan
|
||||||
- sort verions on package page
|
- try to separate portage stuff in django-portage/djportage
|
||||||
- export a sqlite database
|
|
||||||
- add last scan in the footer [0.2.0]
|
- add last scan in the footer [0.2.0]
|
||||||
- add an /about/config page that describe the current config (overlays, stuff in make.conf, euscan default settings, etc..) [0.2.0]
|
- add an /about/config page that describe the current config (overlays, stuff in make.conf, euscan default settings, etc..) [0.2.0]
|
||||||
- add a table for overlays, change euscan_versions [0.2.0]
|
- add a table for overlays, change euscan_versions [0.2.0]
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
## Basic Install
|
## Basic Install
|
||||||
|
|
||||||
# Create local_settings.py, you can override settings.py stuff here
|
# Create local_settings.py, you can override settings.py stuff here
|
||||||
touch local_settings.py
|
# You should at least define SECRET_KEY
|
||||||
|
touch euscanwww/local_settings.py
|
||||||
|
|
||||||
# Initialize database
|
# Initialize database
|
||||||
./manage.py syncdb
|
./manage.py syncdb
|
||||||
@ -35,10 +36,10 @@ eix --only-names -C dev-python | ./manage.py scan-upstream
|
|||||||
./manage.py migrate
|
./manage.py migrate
|
||||||
|
|
||||||
# Import snapshot
|
# Import snapshot
|
||||||
./manage.py loaddata snapshot-yyyymmdd.js
|
./manage.py loaddata var/snapshots/snapshot-yyyymmdd.js
|
||||||
|
|
||||||
rm -rf rrd/*
|
rm -rf var/rrd/*
|
||||||
rm -rf euscan.cache
|
rm -rf var/cache/*
|
||||||
rm -rf media/charts/*
|
rm -rf var/charts/*
|
||||||
|
|
||||||
./manage.py regen-rrds
|
./manage.py regen-rrds
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
from euscan.models import Herd, Maintainer, Package, Version, VersionLog, EuscanResult, Log, \
|
from models import *
|
||||||
WorldLog, CategoryLog, HerdLog, MaintainerLog
|
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
|
|
||||||
admin.site.register(Herd)
|
admin.site.register(Herd)
|
@ -5,12 +5,12 @@ from django.db.models import Sum, Max
|
|||||||
from django.core.exceptions import ObjectDoesNotExist
|
from django.core.exceptions import ObjectDoesNotExist
|
||||||
from django.forms.models import model_to_dict
|
from django.forms.models import model_to_dict
|
||||||
|
|
||||||
from euscan.models import Version, Package, Herd, Maintainer, EuscanResult, VersionLog
|
from djeuscan.models import Version, Package, Herd, Maintainer, EuscanResult, VersionLog
|
||||||
from euscan.forms import WorldForm, PackagesForm
|
from djeuscan.forms import WorldForm, PackagesForm
|
||||||
|
|
||||||
# replace default XMLEmitter with ours
|
# replace default XMLEmitter with ours
|
||||||
from piston.emitters import Emitter
|
from piston.emitters import Emitter
|
||||||
from api.emitters import EuscanXMLEmitter
|
from emitters import EuscanXMLEmitter
|
||||||
Emitter.register('xml', EuscanXMLEmitter, 'text/xml; charset=utf-8')
|
Emitter.register('xml', EuscanXMLEmitter, 'text/xml; charset=utf-8')
|
||||||
|
|
||||||
def xint(i):
|
def xint(i):
|
@ -1,7 +1,7 @@
|
|||||||
from django.conf.urls.defaults import *
|
from django.conf.urls.defaults import *
|
||||||
|
|
||||||
from piston.resource import Resource
|
from piston.resource import Resource
|
||||||
from api.handlers import *
|
from handlers import *
|
||||||
|
|
||||||
root_handler = Resource(handler=RootHandler)
|
root_handler = Resource(handler=RootHandler)
|
||||||
statistics_handler = Resource(handler=StatisticsHandler)
|
statistics_handler = Resource(handler=StatisticsHandler)
|
||||||
@ -11,7 +11,7 @@ maintainers_handler = Resource(handler=MaintainersHandler)
|
|||||||
packages_handler = Resource(handler=PackagesHandler)
|
packages_handler = Resource(handler=PackagesHandler)
|
||||||
package_handler = Resource(handler=PackageHandler)
|
package_handler = Resource(handler=PackageHandler)
|
||||||
|
|
||||||
urlpatterns = patterns('api.views',
|
urlpatterns = patterns('djeuscan.api.views',
|
||||||
url(r'^1.0/statistics\.(?P<emitter_format>.+)$', statistics_handler, name='api.views.statistics'),
|
url(r'^1.0/statistics\.(?P<emitter_format>.+)$', statistics_handler, name='api.views.statistics'),
|
||||||
url(r'^1.0/herds\.(?P<emitter_format>.+)$', herds_handler, name='api.views.herds'),
|
url(r'^1.0/herds\.(?P<emitter_format>.+)$', herds_handler, name='api.views.herds'),
|
||||||
url(r'^1.0/categories\.(?P<emitter_format>.+)$', categories_handler, name='api.views.categories'),
|
url(r'^1.0/categories\.(?P<emitter_format>.+)$', categories_handler, name='api.views.categories'),
|
@ -4,8 +4,8 @@ import time
|
|||||||
from euscanwww import settings
|
from euscanwww import settings
|
||||||
|
|
||||||
from django.db.models import F, Sum, Max
|
from django.db.models import F, Sum, Max
|
||||||
from euscan.models import Version, Package, Herd, Maintainer
|
from djeuscan.models import Version, Package, Herd, Maintainer
|
||||||
from euscan.models import CategoryLog
|
from djeuscan.models import CategoryLog
|
||||||
|
|
||||||
import rrdtool
|
import rrdtool
|
||||||
|
|
@ -4,8 +4,8 @@ from django.http import Http404
|
|||||||
from django.utils.feedgenerator import Atom1Feed
|
from django.utils.feedgenerator import Atom1Feed
|
||||||
from django.core.urlresolvers import reverse
|
from django.core.urlresolvers import reverse
|
||||||
|
|
||||||
from euscan.models import Version, Package, Herd, Maintainer, VersionLog
|
from djeuscan.models import Version, Package, Herd, Maintainer, VersionLog
|
||||||
from euscan.views import *
|
from djeuscan.views import *
|
||||||
|
|
||||||
class BaseFeed(Feed):
|
class BaseFeed(Feed):
|
||||||
feed_type = Atom1Feed
|
feed_type = Atom1Feed
|
||||||
@ -37,7 +37,7 @@ class BaseFeed(Feed):
|
|||||||
|
|
||||||
def item_link(self, vlog):
|
def item_link(self, vlog):
|
||||||
kwargs = {'category' : vlog.package.category, 'package' : vlog.package.name }
|
kwargs = {'category' : vlog.package.category, 'package' : vlog.package.name }
|
||||||
return reverse('euscan.views.package', kwargs=kwargs) + '#' + vlog.tag()
|
return reverse('djeuscan.views.package', kwargs=kwargs) + '#' + vlog.tag()
|
||||||
|
|
||||||
def item_pubdate(self, vlog):
|
def item_pubdate(self, vlog):
|
||||||
return vlog.datetime
|
return vlog.datetime
|
||||||
@ -67,7 +67,7 @@ class PackageFeed(BaseFeed):
|
|||||||
return "%s" % package
|
return "%s" % package
|
||||||
|
|
||||||
def link(self, package):
|
def link(self, package):
|
||||||
return reverse('euscan.views.package', args=[package.category, package.name])
|
return reverse('djeuscan.views.package', args=[package.category, package.name])
|
||||||
|
|
||||||
def description(self, package):
|
def description(self, package):
|
||||||
return package.description
|
return package.description
|
||||||
@ -91,7 +91,7 @@ class MaintainerFeed(BaseFeed):
|
|||||||
return "Last changes for %s" % maintainer
|
return "Last changes for %s" % maintainer
|
||||||
|
|
||||||
def link(self, maintainer):
|
def link(self, maintainer):
|
||||||
return reverse('euscan.views.maintainer', kwargs={'maintainer_id' : maintainer.id})
|
return reverse('djeuscan.views.maintainer', kwargs={'maintainer_id' : maintainer.id})
|
||||||
|
|
||||||
def items(self, maintainer):
|
def items(self, maintainer):
|
||||||
q = VersionLog.objects.filter(package__maintainers__id=maintainer.id)
|
q = VersionLog.objects.filter(package__maintainers__id=maintainer.id)
|
||||||
@ -110,7 +110,7 @@ class HerdFeed(BaseFeed):
|
|||||||
return "Last changes for %s" % herd
|
return "Last changes for %s" % herd
|
||||||
|
|
||||||
def link(self, herd):
|
def link(self, herd):
|
||||||
return reverse('euscan.views.herd', kwargs={'herd' : herd.herd})
|
return reverse('djeuscan.views.herd', kwargs={'herd' : herd.herd})
|
||||||
|
|
||||||
def items(self, herd):
|
def items(self, herd):
|
||||||
q = VersionLog.objects.filter(package__herds__id=herd.id)
|
q = VersionLog.objects.filter(package__herds__id=herd.id)
|
||||||
@ -131,7 +131,7 @@ class CategoryFeed(BaseFeed):
|
|||||||
return "Last changes for %s" % category
|
return "Last changes for %s" % category
|
||||||
|
|
||||||
def link(self, category):
|
def link(self, category):
|
||||||
return reverse('euscan.views.category', args=[category])
|
return reverse('djeuscan.views.category', args=[category])
|
||||||
|
|
||||||
def items(self, category):
|
def items(self, category):
|
||||||
q = VersionLog.objects.filter(package__category=category)
|
q = VersionLog.objects.filter(package__category=category)
|
@ -1,7 +1,7 @@
|
|||||||
from optparse import make_option
|
from optparse import make_option
|
||||||
|
|
||||||
from django.core.management.base import BaseCommand, CommandError
|
from django.core.management.base import BaseCommand, CommandError
|
||||||
from euscanwww.euscan.models import Package
|
from djeuscan.models import Package
|
||||||
|
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
_overlays = {}
|
_overlays = {}
|
@ -3,8 +3,8 @@ import datetime
|
|||||||
from optparse import make_option
|
from optparse import make_option
|
||||||
|
|
||||||
from django.core.management.base import BaseCommand, CommandError
|
from django.core.management.base import BaseCommand, CommandError
|
||||||
from euscanwww.euscan.models import HerdLog, MaintainerLog, CategoryLog, WorldLog
|
from djeuscan.models import HerdLog, MaintainerLog, CategoryLog, WorldLog
|
||||||
from euscanwww.euscan import charts
|
from djeuscan import charts
|
||||||
|
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
_overlays = {}
|
_overlays = {}
|
@ -9,7 +9,7 @@ from optparse import make_option
|
|||||||
|
|
||||||
from django.db.transaction import commit_on_success
|
from django.db.transaction import commit_on_success
|
||||||
from django.core.management.base import BaseCommand, CommandError
|
from django.core.management.base import BaseCommand, CommandError
|
||||||
from euscanwww.euscan.models import Package, Herd, Maintainer
|
from djeuscan.models import Package, Herd, Maintainer
|
||||||
|
|
||||||
from gentoolkit.query import Query
|
from gentoolkit.query import Query
|
||||||
from gentoolkit.errors import GentoolkitFatalError
|
from gentoolkit.errors import GentoolkitFatalError
|
@ -9,7 +9,7 @@ from optparse import make_option
|
|||||||
|
|
||||||
from django.db.transaction import commit_on_success
|
from django.db.transaction import commit_on_success
|
||||||
from django.core.management.base import BaseCommand, CommandError
|
from django.core.management.base import BaseCommand, CommandError
|
||||||
from euscanwww.euscan.models import Package, Version, VersionLog
|
from djeuscan.models import Package, Version, VersionLog
|
||||||
|
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
_overlays = {}
|
_overlays = {}
|
@ -11,7 +11,7 @@ from optparse import make_option
|
|||||||
|
|
||||||
from django.db.transaction import commit_on_success
|
from django.db.transaction import commit_on_success
|
||||||
from django.core.management.base import BaseCommand, CommandError
|
from django.core.management.base import BaseCommand, CommandError
|
||||||
from euscanwww.euscan.models import Package, Version, EuscanResult, VersionLog
|
from djeuscan.models import Package, Version, EuscanResult, VersionLog
|
||||||
|
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
_overlays = {}
|
_overlays = {}
|
@ -6,9 +6,9 @@ from django.db.models import Count, Sum
|
|||||||
from django.db.transaction import commit_on_success
|
from django.db.transaction import commit_on_success
|
||||||
from django.core.management.base import BaseCommand, CommandError
|
from django.core.management.base import BaseCommand, CommandError
|
||||||
|
|
||||||
from euscanwww.euscan.models import Package, Herd, Maintainer, Version
|
from djeuscan.models import Package, Herd, Maintainer, Version
|
||||||
from euscanwww.euscan.models import HerdLog, MaintainerLog, CategoryLog, WorldLog
|
from djeuscan.models import HerdLog, MaintainerLog, CategoryLog, WorldLog
|
||||||
from euscanwww.euscan import charts
|
from djeuscan import charts
|
||||||
|
|
||||||
from distutils.version import StrictVersion, LooseVersion
|
from distutils.version import StrictVersion, LooseVersion
|
||||||
|
|
283
euscanwww/djeuscan/migrations/0001_initial.py
Normal file
283
euscanwww/djeuscan/migrations/0001_initial.py
Normal file
@ -0,0 +1,283 @@
|
|||||||
|
# encoding: utf-8
|
||||||
|
import datetime
|
||||||
|
from south.db import db
|
||||||
|
from south.v2 import SchemaMigration
|
||||||
|
from django.db import models
|
||||||
|
|
||||||
|
class Migration(SchemaMigration):
|
||||||
|
|
||||||
|
def forwards(self, orm):
|
||||||
|
|
||||||
|
# Adding model 'Herd'
|
||||||
|
db.create_table('djeuscan_herd', (
|
||||||
|
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
||||||
|
('herd', self.gf('django.db.models.fields.CharField')(unique=True, max_length=128)),
|
||||||
|
('email', self.gf('django.db.models.fields.CharField')(max_length=128, null=True, blank=True)),
|
||||||
|
))
|
||||||
|
db.send_create_signal('djeuscan', ['Herd'])
|
||||||
|
|
||||||
|
# Adding model 'Maintainer'
|
||||||
|
db.create_table('djeuscan_maintainer', (
|
||||||
|
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
||||||
|
('name', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
||||||
|
('email', self.gf('django.db.models.fields.CharField')(unique=True, max_length=128)),
|
||||||
|
))
|
||||||
|
db.send_create_signal('djeuscan', ['Maintainer'])
|
||||||
|
|
||||||
|
# Adding model 'Package'
|
||||||
|
db.create_table('djeuscan_package', (
|
||||||
|
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
||||||
|
('category', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
||||||
|
('name', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
||||||
|
('description', self.gf('django.db.models.fields.TextField')(blank=True)),
|
||||||
|
('homepage', self.gf('django.db.models.fields.CharField')(max_length=256, blank=True)),
|
||||||
|
('n_versions', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
||||||
|
('n_packaged', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
||||||
|
('n_overlay', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
||||||
|
('last_version_gentoo', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='last_version_gentoo', null=True, to=orm['djeuscan.Version'])),
|
||||||
|
('last_version_overlay', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='last_version_overlay', null=True, to=orm['djeuscan.Version'])),
|
||||||
|
('last_version_upstream', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='last_version_upstream', null=True, to=orm['djeuscan.Version'])),
|
||||||
|
))
|
||||||
|
db.send_create_signal('djeuscan', ['Package'])
|
||||||
|
|
||||||
|
# Adding unique constraint on 'Package', fields ['category', 'name']
|
||||||
|
db.create_unique('djeuscan_package', ['category', 'name'])
|
||||||
|
|
||||||
|
# Adding M2M table for field herds on 'Package'
|
||||||
|
db.create_table('djeuscan_package_herds', (
|
||||||
|
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
|
||||||
|
('package', models.ForeignKey(orm['djeuscan.package'], null=False)),
|
||||||
|
('herd', models.ForeignKey(orm['djeuscan.herd'], null=False))
|
||||||
|
))
|
||||||
|
db.create_unique('djeuscan_package_herds', ['package_id', 'herd_id'])
|
||||||
|
|
||||||
|
# Adding M2M table for field maintainers on 'Package'
|
||||||
|
db.create_table('djeuscan_package_maintainers', (
|
||||||
|
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
|
||||||
|
('package', models.ForeignKey(orm['djeuscan.package'], null=False)),
|
||||||
|
('maintainer', models.ForeignKey(orm['djeuscan.maintainer'], null=False))
|
||||||
|
))
|
||||||
|
db.create_unique('djeuscan_package_maintainers', ['package_id', 'maintainer_id'])
|
||||||
|
|
||||||
|
# Adding model 'Version'
|
||||||
|
db.create_table('djeuscan_version', (
|
||||||
|
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
||||||
|
('package', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['djeuscan.Package'])),
|
||||||
|
('slot', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
||||||
|
('revision', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
||||||
|
('version', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
||||||
|
('packaged', self.gf('django.db.models.fields.BooleanField')(default=False)),
|
||||||
|
('overlay', self.gf('django.db.models.fields.CharField')(default='gentoo', max_length=128, db_index=True)),
|
||||||
|
('urls', self.gf('django.db.models.fields.TextField')(blank=True)),
|
||||||
|
('alive', self.gf('django.db.models.fields.BooleanField')(default=True, db_index=True)),
|
||||||
|
))
|
||||||
|
db.send_create_signal('djeuscan', ['Version'])
|
||||||
|
|
||||||
|
# Adding unique constraint on 'Version', fields ['package', 'slot', 'revision', 'version', 'overlay']
|
||||||
|
db.create_unique('djeuscan_version', ['package_id', 'slot', 'revision', 'version', 'overlay'])
|
||||||
|
|
||||||
|
# Adding model 'VersionLog'
|
||||||
|
db.create_table('djeuscan_versionlog', (
|
||||||
|
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
||||||
|
('package', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['djeuscan.Package'])),
|
||||||
|
('datetime', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
|
||||||
|
('slot', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
||||||
|
('revision', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
||||||
|
('version', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
||||||
|
('packaged', self.gf('django.db.models.fields.BooleanField')(default=False)),
|
||||||
|
('overlay', self.gf('django.db.models.fields.CharField')(default='gentoo', max_length=128)),
|
||||||
|
('action', self.gf('django.db.models.fields.IntegerField')()),
|
||||||
|
))
|
||||||
|
db.send_create_signal('djeuscan', ['VersionLog'])
|
||||||
|
|
||||||
|
# Adding model 'EuscanResult'
|
||||||
|
db.create_table('djeuscan_euscanresult', (
|
||||||
|
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
||||||
|
('package', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['djeuscan.Package'])),
|
||||||
|
('datetime', self.gf('django.db.models.fields.DateTimeField')()),
|
||||||
|
('result', self.gf('django.db.models.fields.TextField')(blank=True)),
|
||||||
|
))
|
||||||
|
db.send_create_signal('djeuscan', ['EuscanResult'])
|
||||||
|
|
||||||
|
# Adding model 'Log'
|
||||||
|
db.create_table('djeuscan_log', (
|
||||||
|
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
||||||
|
('datetime', self.gf('django.db.models.fields.DateTimeField')()),
|
||||||
|
('n_packages_gentoo', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
||||||
|
('n_packages_overlay', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
||||||
|
('n_packages_outdated', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
||||||
|
('n_versions_gentoo', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
||||||
|
('n_versions_overlay', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
||||||
|
('n_versions_upstream', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
||||||
|
))
|
||||||
|
db.send_create_signal('djeuscan', ['Log'])
|
||||||
|
|
||||||
|
# Adding model 'WorldLog'
|
||||||
|
db.create_table('djeuscan_worldlog', (
|
||||||
|
('log_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['djeuscan.Log'], unique=True, primary_key=True)),
|
||||||
|
))
|
||||||
|
db.send_create_signal('djeuscan', ['WorldLog'])
|
||||||
|
|
||||||
|
# Adding model 'CategoryLog'
|
||||||
|
db.create_table('djeuscan_categorylog', (
|
||||||
|
('log_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['djeuscan.Log'], unique=True, primary_key=True)),
|
||||||
|
('category', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
||||||
|
))
|
||||||
|
db.send_create_signal('djeuscan', ['CategoryLog'])
|
||||||
|
|
||||||
|
# Adding model 'HerdLog'
|
||||||
|
db.create_table('djeuscan_herdlog', (
|
||||||
|
('log_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['djeuscan.Log'], unique=True, primary_key=True)),
|
||||||
|
('herd', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['djeuscan.Herd'])),
|
||||||
|
))
|
||||||
|
db.send_create_signal('djeuscan', ['HerdLog'])
|
||||||
|
|
||||||
|
# Adding model 'MaintainerLog'
|
||||||
|
db.create_table('djeuscan_maintainerlog', (
|
||||||
|
('log_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['djeuscan.Log'], unique=True, primary_key=True)),
|
||||||
|
('maintainer', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['djeuscan.Maintainer'])),
|
||||||
|
))
|
||||||
|
db.send_create_signal('djeuscan', ['MaintainerLog'])
|
||||||
|
|
||||||
|
|
||||||
|
def backwards(self, orm):
|
||||||
|
|
||||||
|
# Removing unique constraint on 'Version', fields ['package', 'slot', 'revision', 'version', 'overlay']
|
||||||
|
db.delete_unique('djeuscan_version', ['package_id', 'slot', 'revision', 'version', 'overlay'])
|
||||||
|
|
||||||
|
# Removing unique constraint on 'Package', fields ['category', 'name']
|
||||||
|
db.delete_unique('djeuscan_package', ['category', 'name'])
|
||||||
|
|
||||||
|
# Deleting model 'Herd'
|
||||||
|
db.delete_table('djeuscan_herd')
|
||||||
|
|
||||||
|
# Deleting model 'Maintainer'
|
||||||
|
db.delete_table('djeuscan_maintainer')
|
||||||
|
|
||||||
|
# Deleting model 'Package'
|
||||||
|
db.delete_table('djeuscan_package')
|
||||||
|
|
||||||
|
# Removing M2M table for field herds on 'Package'
|
||||||
|
db.delete_table('djeuscan_package_herds')
|
||||||
|
|
||||||
|
# Removing M2M table for field maintainers on 'Package'
|
||||||
|
db.delete_table('djeuscan_package_maintainers')
|
||||||
|
|
||||||
|
# Deleting model 'Version'
|
||||||
|
db.delete_table('djeuscan_version')
|
||||||
|
|
||||||
|
# Deleting model 'VersionLog'
|
||||||
|
db.delete_table('djeuscan_versionlog')
|
||||||
|
|
||||||
|
# Deleting model 'EuscanResult'
|
||||||
|
db.delete_table('djeuscan_euscanresult')
|
||||||
|
|
||||||
|
# Deleting model 'Log'
|
||||||
|
db.delete_table('djeuscan_log')
|
||||||
|
|
||||||
|
# Deleting model 'WorldLog'
|
||||||
|
db.delete_table('djeuscan_worldlog')
|
||||||
|
|
||||||
|
# Deleting model 'CategoryLog'
|
||||||
|
db.delete_table('djeuscan_categorylog')
|
||||||
|
|
||||||
|
# Deleting model 'HerdLog'
|
||||||
|
db.delete_table('djeuscan_herdlog')
|
||||||
|
|
||||||
|
# Deleting model 'MaintainerLog'
|
||||||
|
db.delete_table('djeuscan_maintainerlog')
|
||||||
|
|
||||||
|
|
||||||
|
models = {
|
||||||
|
'djeuscan.categorylog': {
|
||||||
|
'Meta': {'object_name': 'CategoryLog', '_ormbases': ['djeuscan.Log']},
|
||||||
|
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
||||||
|
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['djeuscan.Log']", 'unique': 'True', 'primary_key': 'True'})
|
||||||
|
},
|
||||||
|
'djeuscan.euscanresult': {
|
||||||
|
'Meta': {'object_name': 'EuscanResult'},
|
||||||
|
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
||||||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||||||
|
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['djeuscan.Package']"}),
|
||||||
|
'result': ('django.db.models.fields.TextField', [], {'blank': 'True'})
|
||||||
|
},
|
||||||
|
'djeuscan.herd': {
|
||||||
|
'Meta': {'object_name': 'Herd'},
|
||||||
|
'email': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
|
||||||
|
'herd': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
||||||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
|
||||||
|
},
|
||||||
|
'djeuscan.herdlog': {
|
||||||
|
'Meta': {'object_name': 'HerdLog', '_ormbases': ['djeuscan.Log']},
|
||||||
|
'herd': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['djeuscan.Herd']"}),
|
||||||
|
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['djeuscan.Log']", 'unique': 'True', 'primary_key': 'True'})
|
||||||
|
},
|
||||||
|
'djeuscan.log': {
|
||||||
|
'Meta': {'object_name': 'Log'},
|
||||||
|
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
||||||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||||||
|
'n_packages_gentoo': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
||||||
|
'n_packages_outdated': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
||||||
|
'n_packages_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
||||||
|
'n_versions_gentoo': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
||||||
|
'n_versions_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
||||||
|
'n_versions_upstream': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
||||||
|
},
|
||||||
|
'djeuscan.maintainer': {
|
||||||
|
'Meta': {'object_name': 'Maintainer'},
|
||||||
|
'email': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
||||||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||||||
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
||||||
|
},
|
||||||
|
'djeuscan.maintainerlog': {
|
||||||
|
'Meta': {'object_name': 'MaintainerLog', '_ormbases': ['djeuscan.Log']},
|
||||||
|
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['djeuscan.Log']", 'unique': 'True', 'primary_key': 'True'}),
|
||||||
|
'maintainer': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['djeuscan.Maintainer']"})
|
||||||
|
},
|
||||||
|
'djeuscan.package': {
|
||||||
|
'Meta': {'unique_together': "(['category', 'name'],)", 'object_name': 'Package'},
|
||||||
|
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
||||||
|
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||||||
|
'herds': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['djeuscan.Herd']", 'symmetrical': 'False', 'blank': 'True'}),
|
||||||
|
'homepage': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
|
||||||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||||||
|
'last_version_gentoo': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_version_gentoo'", 'null': 'True', 'to': "orm['djeuscan.Version']"}),
|
||||||
|
'last_version_overlay': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_version_overlay'", 'null': 'True', 'to': "orm['djeuscan.Version']"}),
|
||||||
|
'last_version_upstream': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_version_upstream'", 'null': 'True', 'to': "orm['djeuscan.Version']"}),
|
||||||
|
'maintainers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['djeuscan.Maintainer']", 'symmetrical': 'False', 'blank': 'True'}),
|
||||||
|
'n_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
||||||
|
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
||||||
|
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
||||||
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
||||||
|
},
|
||||||
|
'djeuscan.version': {
|
||||||
|
'Meta': {'unique_together': "(['package', 'slot', 'revision', 'version', 'overlay'],)", 'object_name': 'Version'},
|
||||||
|
'alive': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'db_index': 'True'}),
|
||||||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||||||
|
'overlay': ('django.db.models.fields.CharField', [], {'default': "'gentoo'", 'max_length': '128', 'db_index': 'True'}),
|
||||||
|
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['djeuscan.Package']"}),
|
||||||
|
'packaged': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
|
||||||
|
'revision': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
||||||
|
'slot': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
||||||
|
'urls': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||||||
|
'version': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
||||||
|
},
|
||||||
|
'djeuscan.versionlog': {
|
||||||
|
'Meta': {'object_name': 'VersionLog'},
|
||||||
|
'action': ('django.db.models.fields.IntegerField', [], {}),
|
||||||
|
'datetime': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
|
||||||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||||||
|
'overlay': ('django.db.models.fields.CharField', [], {'default': "'gentoo'", 'max_length': '128'}),
|
||||||
|
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['djeuscan.Package']"}),
|
||||||
|
'packaged': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
|
||||||
|
'revision': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
||||||
|
'slot': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
||||||
|
'version': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
||||||
|
},
|
||||||
|
'djeuscan.worldlog': {
|
||||||
|
'Meta': {'object_name': 'WorldLog', '_ormbases': ['djeuscan.Log']},
|
||||||
|
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['djeuscan.Log']", 'unique': 'True', 'primary_key': 'True'})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
complete_apps = ['djeuscan']
|
@ -8,41 +8,41 @@ class Migration(SchemaMigration):
|
|||||||
|
|
||||||
def forwards(self, orm):
|
def forwards(self, orm):
|
||||||
|
|
||||||
# Adding index on 'Version', fields ['overlay']
|
# Changing field 'Package.homepage'
|
||||||
db.create_index('euscan_version', ['overlay'])
|
db.alter_column('djeuscan_package', 'homepage', self.gf('django.db.models.fields.TextField')())
|
||||||
|
|
||||||
|
|
||||||
def backwards(self, orm):
|
def backwards(self, orm):
|
||||||
|
|
||||||
# Removing index on 'Version', fields ['overlay']
|
# Changing field 'Package.homepage'
|
||||||
db.delete_index('euscan_version', ['overlay'])
|
db.alter_column('djeuscan_package', 'homepage', self.gf('django.db.models.fields.CharField')(max_length=256))
|
||||||
|
|
||||||
|
|
||||||
models = {
|
models = {
|
||||||
'euscan.categorylog': {
|
'djeuscan.categorylog': {
|
||||||
'Meta': {'object_name': 'CategoryLog', '_ormbases': ['euscan.Log']},
|
'Meta': {'object_name': 'CategoryLog', '_ormbases': ['djeuscan.Log']},
|
||||||
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
||||||
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['euscan.Log']", 'unique': 'True', 'primary_key': 'True'})
|
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['djeuscan.Log']", 'unique': 'True', 'primary_key': 'True'})
|
||||||
},
|
},
|
||||||
'euscan.euscanresult': {
|
'djeuscan.euscanresult': {
|
||||||
'Meta': {'object_name': 'EuscanResult'},
|
'Meta': {'object_name': 'EuscanResult'},
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['djeuscan.Package']"}),
|
||||||
'result': ('django.db.models.fields.TextField', [], {'blank': 'True'})
|
'result': ('django.db.models.fields.TextField', [], {'blank': 'True'})
|
||||||
},
|
},
|
||||||
'euscan.herd': {
|
'djeuscan.herd': {
|
||||||
'Meta': {'object_name': 'Herd'},
|
'Meta': {'object_name': 'Herd'},
|
||||||
'email': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
|
'email': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
|
||||||
'herd': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
'herd': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
|
||||||
},
|
},
|
||||||
'euscan.herdlog': {
|
'djeuscan.herdlog': {
|
||||||
'Meta': {'object_name': 'HerdLog', '_ormbases': ['euscan.Log']},
|
'Meta': {'object_name': 'HerdLog', '_ormbases': ['djeuscan.Log']},
|
||||||
'herd': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Herd']"}),
|
'herd': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['djeuscan.Herd']"}),
|
||||||
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['euscan.Log']", 'unique': 'True', 'primary_key': 'True'})
|
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['djeuscan.Log']", 'unique': 'True', 'primary_key': 'True'})
|
||||||
},
|
},
|
||||||
'euscan.log': {
|
'djeuscan.log': {
|
||||||
'Meta': {'object_name': 'Log'},
|
'Meta': {'object_name': 'Log'},
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||||||
@ -53,58 +53,61 @@ class Migration(SchemaMigration):
|
|||||||
'n_versions_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
'n_versions_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
||||||
'n_versions_upstream': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
'n_versions_upstream': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
||||||
},
|
},
|
||||||
'euscan.maintainer': {
|
'djeuscan.maintainer': {
|
||||||
'Meta': {'object_name': 'Maintainer'},
|
'Meta': {'object_name': 'Maintainer'},
|
||||||
'email': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
'email': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
||||||
},
|
},
|
||||||
'euscan.maintainerlog': {
|
'djeuscan.maintainerlog': {
|
||||||
'Meta': {'object_name': 'MaintainerLog', '_ormbases': ['euscan.Log']},
|
'Meta': {'object_name': 'MaintainerLog', '_ormbases': ['djeuscan.Log']},
|
||||||
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['euscan.Log']", 'unique': 'True', 'primary_key': 'True'}),
|
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['djeuscan.Log']", 'unique': 'True', 'primary_key': 'True'}),
|
||||||
'maintainer': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Maintainer']"})
|
'maintainer': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['djeuscan.Maintainer']"})
|
||||||
},
|
},
|
||||||
'euscan.package': {
|
'djeuscan.package': {
|
||||||
'Meta': {'unique_together': "(['category', 'name'],)", 'object_name': 'Package'},
|
'Meta': {'unique_together': "(['category', 'name'],)", 'object_name': 'Package'},
|
||||||
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
||||||
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||||||
'herds': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['euscan.Herd']", 'symmetrical': 'False', 'blank': 'True'}),
|
'herds': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['djeuscan.Herd']", 'symmetrical': 'False', 'blank': 'True'}),
|
||||||
'homepage': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
|
'homepage': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||||||
'maintainers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['euscan.Maintainer']", 'symmetrical': 'False', 'blank': 'True'}),
|
'last_version_gentoo': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_version_gentoo'", 'null': 'True', 'to': "orm['djeuscan.Version']"}),
|
||||||
|
'last_version_overlay': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_version_overlay'", 'null': 'True', 'to': "orm['djeuscan.Version']"}),
|
||||||
|
'last_version_upstream': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_version_upstream'", 'null': 'True', 'to': "orm['djeuscan.Version']"}),
|
||||||
|
'maintainers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['djeuscan.Maintainer']", 'symmetrical': 'False', 'blank': 'True'}),
|
||||||
'n_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
'n_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
||||||
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
||||||
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
||||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
||||||
},
|
},
|
||||||
'euscan.version': {
|
'djeuscan.version': {
|
||||||
'Meta': {'unique_together': "(['package', 'slot', 'revision', 'version', 'overlay'],)", 'object_name': 'Version'},
|
'Meta': {'unique_together': "(['package', 'slot', 'revision', 'version', 'overlay'],)", 'object_name': 'Version'},
|
||||||
'alive': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'db_index': 'True'}),
|
'alive': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'db_index': 'True'}),
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||||||
'overlay': ('django.db.models.fields.CharField', [], {'default': "'gentoo'", 'max_length': '128', 'db_index': 'True'}),
|
'overlay': ('django.db.models.fields.CharField', [], {'default': "'gentoo'", 'max_length': '128', 'db_index': 'True'}),
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['djeuscan.Package']"}),
|
||||||
'packaged': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
|
'packaged': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
|
||||||
'revision': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
'revision': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
||||||
'slot': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
'slot': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
||||||
'urls': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
'urls': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||||||
'version': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
'version': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
||||||
},
|
},
|
||||||
'euscan.versionlog': {
|
'djeuscan.versionlog': {
|
||||||
'Meta': {'object_name': 'VersionLog'},
|
'Meta': {'object_name': 'VersionLog'},
|
||||||
'action': ('django.db.models.fields.IntegerField', [], {}),
|
'action': ('django.db.models.fields.IntegerField', [], {}),
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2011, 11, 23, 17, 13, 34, 785901)'}),
|
'datetime': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||||||
'overlay': ('django.db.models.fields.CharField', [], {'default': "'gentoo'", 'max_length': '128'}),
|
'overlay': ('django.db.models.fields.CharField', [], {'default': "'gentoo'", 'max_length': '128'}),
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['djeuscan.Package']"}),
|
||||||
'packaged': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
|
'packaged': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
|
||||||
'revision': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
'revision': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
||||||
'slot': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
'slot': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
||||||
'version': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
'version': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
||||||
},
|
},
|
||||||
'euscan.worldlog': {
|
'djeuscan.worldlog': {
|
||||||
'Meta': {'object_name': 'WorldLog', '_ormbases': ['euscan.Log']},
|
'Meta': {'object_name': 'WorldLog', '_ormbases': ['djeuscan.Log']},
|
||||||
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['euscan.Log']", 'unique': 'True', 'primary_key': 'True'})
|
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['djeuscan.Log']", 'unique': 'True', 'primary_key': 'True'})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
complete_apps = ['euscan']
|
complete_apps = ['djeuscan']
|
@ -20,7 +20,7 @@ class Package(models.Model):
|
|||||||
category = models.CharField(max_length=128)
|
category = models.CharField(max_length=128)
|
||||||
name = models.CharField(max_length=128)
|
name = models.CharField(max_length=128)
|
||||||
description = models.TextField(blank=True)
|
description = models.TextField(blank=True)
|
||||||
homepage = models.CharField(max_length=256, blank=True)
|
homepage = models.TextField(blank=True)
|
||||||
herds = models.ManyToManyField(Herd, blank=True)
|
herds = models.ManyToManyField(Herd, blank=True)
|
||||||
maintainers = models.ManyToManyField(Maintainer, blank=True)
|
maintainers = models.ManyToManyField(Maintainer, blank=True)
|
||||||
|
|
@ -1,39 +1,41 @@
|
|||||||
from django.conf.urls.defaults import *
|
from django.conf.urls.defaults import *
|
||||||
from feeds import *
|
from feeds import *
|
||||||
|
|
||||||
package_patterns = patterns('euscan.views',
|
package_patterns = patterns('djeuscan.views',
|
||||||
url(r'^(?P<category>[\w+][\w+.-]*)/(?P<package>[\w+][\w+.-]*)/feed/$', PackageFeed(), name='package_feed'),
|
url(r'^(?P<category>[\w+][\w+.-]*)/(?P<package>[\w+][\w+.-]*)/feed/$', PackageFeed(), name='package_feed'),
|
||||||
(r'^(?P<category>[\w+][\w+.-]*)/(?P<package>[\w+][\w+.-]*)/$', 'package'),
|
(r'^(?P<category>[\w+][\w+.-]*)/(?P<package>[\w+][\w+.-]*)/$', 'package'),
|
||||||
)
|
)
|
||||||
|
|
||||||
categories_patterns = patterns('euscan.views',
|
categories_patterns = patterns('djeuscan.views',
|
||||||
(r'^(?P<category>[\w+][\w+.-]*)/(view/)?$', 'category'),
|
(r'^(?P<category>[\w+][\w+.-]*)/(view/)?$', 'category'),
|
||||||
url(r'^(?P<category>[\w+][\w+.-]*)/feed/$', CategoryFeed(), name='category_feed'),
|
url(r'^(?P<category>[\w+][\w+.-]*)/feed/$', CategoryFeed(), name='category_feed'),
|
||||||
(r'^(?P<category>[\w+][\w+.-]*)/charts/(?P<chart>[\w\-]+).png$', 'chart_category'),
|
(r'^(?P<category>[\w+][\w+.-]*)/charts/(?P<chart>[\w\-]+).png$', 'chart_category'),
|
||||||
(r'^$', 'categories'),
|
(r'^$', 'categories'),
|
||||||
)
|
)
|
||||||
|
|
||||||
herds_patterns = patterns('euscan.views',
|
herds_patterns = patterns('djeuscan.views',
|
||||||
(r'^(?P<herd>[\@\{\}\w+.-]*)/(view/)?$', 'herd'),
|
(r'^(?P<herd>[\@\{\}\w+.-]*)/(view/)?$', 'herd'),
|
||||||
url(r'^(?P<herd>[\@\{\}\w+.-]*)/feed/$', HerdFeed(), name='herd_feed'),
|
url(r'^(?P<herd>[\@\{\}\w+.-]*)/feed/$', HerdFeed(), name='herd_feed'),
|
||||||
(r'^(?P<herd>[\@\{\}\w+.-]*)/charts/(?P<chart>[\w\-]+).png$', 'chart_herd'),
|
(r'^(?P<herd>[\@\{\}\w+.-]*)/charts/(?P<chart>[\w\-]+).png$', 'chart_herd'),
|
||||||
(r'^$', 'herds'),
|
(r'^$', 'herds'),
|
||||||
)
|
)
|
||||||
|
|
||||||
maintainers_patterns = patterns('euscan.views',
|
maintainers_patterns = patterns('djeuscan.views',
|
||||||
(r'^(?P<maintainer_id>\d+)/(view/)?$', 'maintainer'),
|
(r'^(?P<maintainer_id>\d+)/(view/)?$', 'maintainer'),
|
||||||
url(r'^(?P<maintainer_id>\d+)/feed/$', MaintainerFeed(), name='maintainer_feed'),
|
url(r'^(?P<maintainer_id>\d+)/feed/$', MaintainerFeed(), name='maintainer_feed'),
|
||||||
(r'^(?P<maintainer_id>\d+)/charts/(?P<chart>[\w\-]+).png$', 'chart_maintainer'),
|
(r'^(?P<maintainer_id>\d+)/charts/(?P<chart>[\w\-]+).png$', 'chart_maintainer'),
|
||||||
(r'^$', 'maintainers'),
|
(r'^$', 'maintainers'),
|
||||||
)
|
)
|
||||||
|
|
||||||
overlays_patterns = patterns('euscan.views',
|
overlays_patterns = patterns('djeuscan.views',
|
||||||
(r'^(?P<overlay>[\w+][\w+.-]*)/(view/)?$', 'overlay'),
|
(r'^(?P<overlay>[\w+][\w+.-]*)/(view/)?$', 'overlay'),
|
||||||
(r'^$', 'overlays'),
|
(r'^$', 'overlays'),
|
||||||
)
|
)
|
||||||
|
|
||||||
urlpatterns = patterns('euscan.views',
|
urlpatterns = patterns('djeuscan.views',
|
||||||
# Global stuff
|
# Global stuff
|
||||||
|
(r'^api/', include('djeuscan.api.urls')),
|
||||||
|
|
||||||
(r'^$', 'index'),
|
(r'^$', 'index'),
|
||||||
url(r'^feed/$', GlobalFeed(), name='global_feed'),
|
url(r'^feed/$', GlobalFeed(), name='global_feed'),
|
||||||
(r'^about/$', 'about'),
|
(r'^about/$', 'about'),
|
@ -1,234 +0,0 @@
|
|||||||
# encoding: utf-8
|
|
||||||
import datetime
|
|
||||||
from south.db import db
|
|
||||||
from south.v2 import SchemaMigration
|
|
||||||
from django.db import models
|
|
||||||
|
|
||||||
class Migration(SchemaMigration):
|
|
||||||
|
|
||||||
def forwards(self, orm):
|
|
||||||
|
|
||||||
# Adding model 'Herd'
|
|
||||||
db.create_table('euscan_herd', (
|
|
||||||
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
|
||||||
('herd', self.gf('django.db.models.fields.CharField')(unique=True, max_length=128)),
|
|
||||||
('email', self.gf('django.db.models.fields.CharField')(max_length=128, null=True, blank=True)),
|
|
||||||
))
|
|
||||||
db.send_create_signal('euscan', ['Herd'])
|
|
||||||
|
|
||||||
# Adding model 'Maintainer'
|
|
||||||
db.create_table('euscan_maintainer', (
|
|
||||||
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
|
||||||
('name', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
|
||||||
('email', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
|
||||||
))
|
|
||||||
db.send_create_signal('euscan', ['Maintainer'])
|
|
||||||
|
|
||||||
# Adding unique constraint on 'Maintainer', fields ['name', 'email']
|
|
||||||
db.create_unique('euscan_maintainer', ['name', 'email'])
|
|
||||||
|
|
||||||
# Adding model 'Package'
|
|
||||||
db.create_table('euscan_package', (
|
|
||||||
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
|
||||||
('category', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
|
||||||
('name', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
|
||||||
('description', self.gf('django.db.models.fields.TextField')(blank=True)),
|
|
||||||
('homepage', self.gf('django.db.models.fields.CharField')(max_length=256, blank=True)),
|
|
||||||
('n_versions', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_packaged', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
))
|
|
||||||
db.send_create_signal('euscan', ['Package'])
|
|
||||||
|
|
||||||
# Adding unique constraint on 'Package', fields ['category', 'name']
|
|
||||||
db.create_unique('euscan_package', ['category', 'name'])
|
|
||||||
|
|
||||||
# Adding M2M table for field herds on 'Package'
|
|
||||||
db.create_table('euscan_package_herds', (
|
|
||||||
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
|
|
||||||
('package', models.ForeignKey(orm['euscan.package'], null=False)),
|
|
||||||
('herd', models.ForeignKey(orm['euscan.herd'], null=False))
|
|
||||||
))
|
|
||||||
db.create_unique('euscan_package_herds', ['package_id', 'herd_id'])
|
|
||||||
|
|
||||||
# Adding M2M table for field maintainers on 'Package'
|
|
||||||
db.create_table('euscan_package_maintainers', (
|
|
||||||
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
|
|
||||||
('package', models.ForeignKey(orm['euscan.package'], null=False)),
|
|
||||||
('maintainer', models.ForeignKey(orm['euscan.maintainer'], null=False))
|
|
||||||
))
|
|
||||||
db.create_unique('euscan_package_maintainers', ['package_id', 'maintainer_id'])
|
|
||||||
|
|
||||||
# Adding model 'Version'
|
|
||||||
db.create_table('euscan_version', (
|
|
||||||
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
|
||||||
('package', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['euscan.Package'])),
|
|
||||||
('slot', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
|
||||||
('revision', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
|
||||||
('version', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
|
||||||
('packaged', self.gf('django.db.models.fields.BooleanField')(default=False)),
|
|
||||||
('overlay', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
|
||||||
('urls', self.gf('django.db.models.fields.TextField')(blank=True)),
|
|
||||||
))
|
|
||||||
db.send_create_signal('euscan', ['Version'])
|
|
||||||
|
|
||||||
# Adding unique constraint on 'Version', fields ['package', 'slot', 'revision', 'version', 'overlay']
|
|
||||||
db.create_unique('euscan_version', ['package_id', 'slot', 'revision', 'version', 'overlay'])
|
|
||||||
|
|
||||||
# Adding model 'EuscanResult'
|
|
||||||
db.create_table('euscan_euscanresult', (
|
|
||||||
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
|
||||||
('package', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['euscan.Package'])),
|
|
||||||
('datetime', self.gf('django.db.models.fields.DateTimeField')()),
|
|
||||||
('result', self.gf('django.db.models.fields.TextField')(blank=True)),
|
|
||||||
))
|
|
||||||
db.send_create_signal('euscan', ['EuscanResult'])
|
|
||||||
|
|
||||||
# Adding model 'CategoryLog'
|
|
||||||
db.create_table('euscan_categorylog', (
|
|
||||||
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
|
||||||
('category', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
|
||||||
('datetime', self.gf('django.db.models.fields.DateTimeField')()),
|
|
||||||
('n_packages', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_versions', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_packaged', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
))
|
|
||||||
db.send_create_signal('euscan', ['CategoryLog'])
|
|
||||||
|
|
||||||
# Adding model 'HerdLog'
|
|
||||||
db.create_table('euscan_herdlog', (
|
|
||||||
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
|
||||||
('herd', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['euscan.Herd'])),
|
|
||||||
('datetime', self.gf('django.db.models.fields.DateTimeField')()),
|
|
||||||
('n_packages', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_versions', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_packaged', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
))
|
|
||||||
db.send_create_signal('euscan', ['HerdLog'])
|
|
||||||
|
|
||||||
# Adding model 'MaintainerLog'
|
|
||||||
db.create_table('euscan_maintainerlog', (
|
|
||||||
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
|
||||||
('maintainer', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['euscan.Maintainer'])),
|
|
||||||
('datetime', self.gf('django.db.models.fields.DateTimeField')()),
|
|
||||||
('n_packages', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_versions', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_packaged', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
))
|
|
||||||
db.send_create_signal('euscan', ['MaintainerLog'])
|
|
||||||
|
|
||||||
|
|
||||||
def backwards(self, orm):
|
|
||||||
|
|
||||||
# Removing unique constraint on 'Version', fields ['package', 'slot', 'revision', 'version', 'overlay']
|
|
||||||
db.delete_unique('euscan_version', ['package_id', 'slot', 'revision', 'version', 'overlay'])
|
|
||||||
|
|
||||||
# Removing unique constraint on 'Package', fields ['category', 'name']
|
|
||||||
db.delete_unique('euscan_package', ['category', 'name'])
|
|
||||||
|
|
||||||
# Removing unique constraint on 'Maintainer', fields ['name', 'email']
|
|
||||||
db.delete_unique('euscan_maintainer', ['name', 'email'])
|
|
||||||
|
|
||||||
# Deleting model 'Herd'
|
|
||||||
db.delete_table('euscan_herd')
|
|
||||||
|
|
||||||
# Deleting model 'Maintainer'
|
|
||||||
db.delete_table('euscan_maintainer')
|
|
||||||
|
|
||||||
# Deleting model 'Package'
|
|
||||||
db.delete_table('euscan_package')
|
|
||||||
|
|
||||||
# Removing M2M table for field herds on 'Package'
|
|
||||||
db.delete_table('euscan_package_herds')
|
|
||||||
|
|
||||||
# Removing M2M table for field maintainers on 'Package'
|
|
||||||
db.delete_table('euscan_package_maintainers')
|
|
||||||
|
|
||||||
# Deleting model 'Version'
|
|
||||||
db.delete_table('euscan_version')
|
|
||||||
|
|
||||||
# Deleting model 'EuscanResult'
|
|
||||||
db.delete_table('euscan_euscanresult')
|
|
||||||
|
|
||||||
# Deleting model 'CategoryLog'
|
|
||||||
db.delete_table('euscan_categorylog')
|
|
||||||
|
|
||||||
# Deleting model 'HerdLog'
|
|
||||||
db.delete_table('euscan_herdlog')
|
|
||||||
|
|
||||||
# Deleting model 'MaintainerLog'
|
|
||||||
db.delete_table('euscan_maintainerlog')
|
|
||||||
|
|
||||||
|
|
||||||
models = {
|
|
||||||
'euscan.categorylog': {
|
|
||||||
'Meta': {'object_name': 'CategoryLog'},
|
|
||||||
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
|
||||||
},
|
|
||||||
'euscan.euscanresult': {
|
|
||||||
'Meta': {'object_name': 'EuscanResult'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
|
||||||
'result': ('django.db.models.fields.TextField', [], {'blank': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.herd': {
|
|
||||||
'Meta': {'object_name': 'Herd'},
|
|
||||||
'email': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
|
|
||||||
'herd': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.herdlog': {
|
|
||||||
'Meta': {'object_name': 'HerdLog'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'herd': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Herd']"}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
|
||||||
},
|
|
||||||
'euscan.maintainer': {
|
|
||||||
'Meta': {'unique_together': "(['name', 'email'],)", 'object_name': 'Maintainer'},
|
|
||||||
'email': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.maintainerlog': {
|
|
||||||
'Meta': {'object_name': 'MaintainerLog'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'maintainer': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Maintainer']"}),
|
|
||||||
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
|
||||||
},
|
|
||||||
'euscan.package': {
|
|
||||||
'Meta': {'unique_together': "(['category', 'name'],)", 'object_name': 'Package'},
|
|
||||||
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
||||||
'herds': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['euscan.Herd']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
||||||
'homepage': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'maintainers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['euscan.Maintainer']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
||||||
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.version': {
|
|
||||||
'Meta': {'unique_together': "(['package', 'slot', 'revision', 'version', 'overlay'],)", 'object_name': 'Version'},
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'overlay': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
|
||||||
'packaged': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
|
|
||||||
'revision': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'slot': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'urls': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
||||||
'version': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
complete_apps = ['euscan']
|
|
@ -1,99 +0,0 @@
|
|||||||
# encoding: utf-8
|
|
||||||
import datetime
|
|
||||||
from south.db import db
|
|
||||||
from south.v2 import SchemaMigration
|
|
||||||
from django.db import models
|
|
||||||
|
|
||||||
class Migration(SchemaMigration):
|
|
||||||
|
|
||||||
def forwards(self, orm):
|
|
||||||
|
|
||||||
# Removing unique constraint on 'Maintainer', fields ['name', 'email']
|
|
||||||
db.delete_unique('euscan_maintainer', ['name', 'email'])
|
|
||||||
|
|
||||||
# Adding unique constraint on 'Maintainer', fields ['email']
|
|
||||||
db.create_unique('euscan_maintainer', ['email'])
|
|
||||||
|
|
||||||
|
|
||||||
def backwards(self, orm):
|
|
||||||
|
|
||||||
# Removing unique constraint on 'Maintainer', fields ['email']
|
|
||||||
db.delete_unique('euscan_maintainer', ['email'])
|
|
||||||
|
|
||||||
# Adding unique constraint on 'Maintainer', fields ['name', 'email']
|
|
||||||
db.create_unique('euscan_maintainer', ['name', 'email'])
|
|
||||||
|
|
||||||
|
|
||||||
models = {
|
|
||||||
'euscan.categorylog': {
|
|
||||||
'Meta': {'object_name': 'CategoryLog'},
|
|
||||||
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
|
||||||
},
|
|
||||||
'euscan.euscanresult': {
|
|
||||||
'Meta': {'object_name': 'EuscanResult'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
|
||||||
'result': ('django.db.models.fields.TextField', [], {'blank': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.herd': {
|
|
||||||
'Meta': {'object_name': 'Herd'},
|
|
||||||
'email': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
|
|
||||||
'herd': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.herdlog': {
|
|
||||||
'Meta': {'object_name': 'HerdLog'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'herd': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Herd']"}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
|
||||||
},
|
|
||||||
'euscan.maintainer': {
|
|
||||||
'Meta': {'object_name': 'Maintainer'},
|
|
||||||
'email': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.maintainerlog': {
|
|
||||||
'Meta': {'object_name': 'MaintainerLog'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'maintainer': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Maintainer']"}),
|
|
||||||
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
|
||||||
},
|
|
||||||
'euscan.package': {
|
|
||||||
'Meta': {'unique_together': "(['category', 'name'],)", 'object_name': 'Package'},
|
|
||||||
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
||||||
'herds': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['euscan.Herd']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
||||||
'homepage': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'maintainers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['euscan.Maintainer']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
||||||
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.version': {
|
|
||||||
'Meta': {'unique_together': "(['package', 'slot', 'revision', 'version', 'overlay'],)", 'object_name': 'Version'},
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'overlay': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
|
||||||
'packaged': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
|
|
||||||
'revision': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'slot': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'urls': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
||||||
'version': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
complete_apps = ['euscan']
|
|
@ -1,115 +0,0 @@
|
|||||||
# encoding: utf-8
|
|
||||||
import datetime
|
|
||||||
from south.db import db
|
|
||||||
from south.v2 import SchemaMigration
|
|
||||||
from django.db import models
|
|
||||||
|
|
||||||
class Migration(SchemaMigration):
|
|
||||||
|
|
||||||
def forwards(self, orm):
|
|
||||||
|
|
||||||
# Adding field 'CategoryLog.n_overlay'
|
|
||||||
db.add_column('euscan_categorylog', 'n_overlay', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'Package.n_overlay'
|
|
||||||
db.add_column('euscan_package', 'n_overlay', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'HerdLog.n_overlay'
|
|
||||||
db.add_column('euscan_herdlog', 'n_overlay', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'MaintainerLog.n_overlay'
|
|
||||||
db.add_column('euscan_maintainerlog', 'n_overlay', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
|
|
||||||
def backwards(self, orm):
|
|
||||||
|
|
||||||
# Deleting field 'CategoryLog.n_overlay'
|
|
||||||
db.delete_column('euscan_categorylog', 'n_overlay')
|
|
||||||
|
|
||||||
# Deleting field 'Package.n_overlay'
|
|
||||||
db.delete_column('euscan_package', 'n_overlay')
|
|
||||||
|
|
||||||
# Deleting field 'HerdLog.n_overlay'
|
|
||||||
db.delete_column('euscan_herdlog', 'n_overlay')
|
|
||||||
|
|
||||||
# Deleting field 'MaintainerLog.n_overlay'
|
|
||||||
db.delete_column('euscan_maintainerlog', 'n_overlay')
|
|
||||||
|
|
||||||
|
|
||||||
models = {
|
|
||||||
'euscan.categorylog': {
|
|
||||||
'Meta': {'object_name': 'CategoryLog'},
|
|
||||||
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'n_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
|
||||||
},
|
|
||||||
'euscan.euscanresult': {
|
|
||||||
'Meta': {'object_name': 'EuscanResult'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
|
||||||
'result': ('django.db.models.fields.TextField', [], {'blank': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.herd': {
|
|
||||||
'Meta': {'object_name': 'Herd'},
|
|
||||||
'email': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
|
|
||||||
'herd': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.herdlog': {
|
|
||||||
'Meta': {'object_name': 'HerdLog'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'herd': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Herd']"}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'n_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
|
||||||
},
|
|
||||||
'euscan.maintainer': {
|
|
||||||
'Meta': {'object_name': 'Maintainer'},
|
|
||||||
'email': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.maintainerlog': {
|
|
||||||
'Meta': {'object_name': 'MaintainerLog'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'maintainer': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Maintainer']"}),
|
|
||||||
'n_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
|
||||||
},
|
|
||||||
'euscan.package': {
|
|
||||||
'Meta': {'unique_together': "(['category', 'name'],)", 'object_name': 'Package'},
|
|
||||||
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
||||||
'herds': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['euscan.Herd']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
||||||
'homepage': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'maintainers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['euscan.Maintainer']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
||||||
'n_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.version': {
|
|
||||||
'Meta': {'unique_together': "(['package', 'slot', 'revision', 'version', 'overlay'],)", 'object_name': 'Version'},
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'overlay': ('django.db.models.fields.CharField', [], {'default': "'gentoo'", 'max_length': '128'}),
|
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
|
||||||
'packaged': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
|
|
||||||
'revision': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'slot': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'urls': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
||||||
'version': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
complete_apps = ['euscan']
|
|
@ -1,277 +0,0 @@
|
|||||||
# encoding: utf-8
|
|
||||||
import datetime
|
|
||||||
from south.db import db
|
|
||||||
from south.v2 import SchemaMigration
|
|
||||||
from django.db import models
|
|
||||||
|
|
||||||
class Migration(SchemaMigration):
|
|
||||||
|
|
||||||
def forwards(self, orm):
|
|
||||||
|
|
||||||
# Deleting field 'CategoryLog.n_versions'
|
|
||||||
db.delete_column('euscan_categorylog', 'n_versions')
|
|
||||||
|
|
||||||
# Deleting field 'CategoryLog.n_packaged'
|
|
||||||
db.delete_column('euscan_categorylog', 'n_packaged')
|
|
||||||
|
|
||||||
# Deleting field 'CategoryLog.n_packages'
|
|
||||||
db.delete_column('euscan_categorylog', 'n_packages')
|
|
||||||
|
|
||||||
# Deleting field 'CategoryLog.n_overlay'
|
|
||||||
db.delete_column('euscan_categorylog', 'n_overlay')
|
|
||||||
|
|
||||||
# Adding field 'CategoryLog.n_packages_gentoo'
|
|
||||||
db.add_column('euscan_categorylog', 'n_packages_gentoo', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'CategoryLog.n_packages_overlay'
|
|
||||||
db.add_column('euscan_categorylog', 'n_packages_overlay', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'CategoryLog.n_packages_outdated'
|
|
||||||
db.add_column('euscan_categorylog', 'n_packages_outdated', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'CategoryLog.n_versions_gentoo'
|
|
||||||
db.add_column('euscan_categorylog', 'n_versions_gentoo', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'CategoryLog.n_versions_overlay'
|
|
||||||
db.add_column('euscan_categorylog', 'n_versions_overlay', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'CategoryLog.n_versions_upstream'
|
|
||||||
db.add_column('euscan_categorylog', 'n_versions_upstream', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Deleting field 'HerdLog.n_versions'
|
|
||||||
db.delete_column('euscan_herdlog', 'n_versions')
|
|
||||||
|
|
||||||
# Deleting field 'HerdLog.n_packaged'
|
|
||||||
db.delete_column('euscan_herdlog', 'n_packaged')
|
|
||||||
|
|
||||||
# Deleting field 'HerdLog.n_packages'
|
|
||||||
db.delete_column('euscan_herdlog', 'n_packages')
|
|
||||||
|
|
||||||
# Deleting field 'HerdLog.n_overlay'
|
|
||||||
db.delete_column('euscan_herdlog', 'n_overlay')
|
|
||||||
|
|
||||||
# Adding field 'HerdLog.n_packages_gentoo'
|
|
||||||
db.add_column('euscan_herdlog', 'n_packages_gentoo', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'HerdLog.n_packages_overlay'
|
|
||||||
db.add_column('euscan_herdlog', 'n_packages_overlay', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'HerdLog.n_packages_outdated'
|
|
||||||
db.add_column('euscan_herdlog', 'n_packages_outdated', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'HerdLog.n_versions_gentoo'
|
|
||||||
db.add_column('euscan_herdlog', 'n_versions_gentoo', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'HerdLog.n_versions_overlay'
|
|
||||||
db.add_column('euscan_herdlog', 'n_versions_overlay', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'HerdLog.n_versions_upstream'
|
|
||||||
db.add_column('euscan_herdlog', 'n_versions_upstream', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Deleting field 'MaintainerLog.n_versions'
|
|
||||||
db.delete_column('euscan_maintainerlog', 'n_versions')
|
|
||||||
|
|
||||||
# Deleting field 'MaintainerLog.n_packaged'
|
|
||||||
db.delete_column('euscan_maintainerlog', 'n_packaged')
|
|
||||||
|
|
||||||
# Deleting field 'MaintainerLog.n_packages'
|
|
||||||
db.delete_column('euscan_maintainerlog', 'n_packages')
|
|
||||||
|
|
||||||
# Deleting field 'MaintainerLog.n_overlay'
|
|
||||||
db.delete_column('euscan_maintainerlog', 'n_overlay')
|
|
||||||
|
|
||||||
# Adding field 'MaintainerLog.n_packages_gentoo'
|
|
||||||
db.add_column('euscan_maintainerlog', 'n_packages_gentoo', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'MaintainerLog.n_packages_overlay'
|
|
||||||
db.add_column('euscan_maintainerlog', 'n_packages_overlay', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'MaintainerLog.n_packages_outdated'
|
|
||||||
db.add_column('euscan_maintainerlog', 'n_packages_outdated', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'MaintainerLog.n_versions_gentoo'
|
|
||||||
db.add_column('euscan_maintainerlog', 'n_versions_gentoo', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'MaintainerLog.n_versions_overlay'
|
|
||||||
db.add_column('euscan_maintainerlog', 'n_versions_overlay', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'MaintainerLog.n_versions_upstream'
|
|
||||||
db.add_column('euscan_maintainerlog', 'n_versions_upstream', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
|
|
||||||
def backwards(self, orm):
|
|
||||||
|
|
||||||
# Adding field 'CategoryLog.n_versions'
|
|
||||||
db.add_column('euscan_categorylog', 'n_versions', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'CategoryLog.n_packaged'
|
|
||||||
db.add_column('euscan_categorylog', 'n_packaged', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'CategoryLog.n_packages'
|
|
||||||
db.add_column('euscan_categorylog', 'n_packages', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'CategoryLog.n_overlay'
|
|
||||||
db.add_column('euscan_categorylog', 'n_overlay', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Deleting field 'CategoryLog.n_packages_gentoo'
|
|
||||||
db.delete_column('euscan_categorylog', 'n_packages_gentoo')
|
|
||||||
|
|
||||||
# Deleting field 'CategoryLog.n_packages_overlay'
|
|
||||||
db.delete_column('euscan_categorylog', 'n_packages_overlay')
|
|
||||||
|
|
||||||
# Deleting field 'CategoryLog.n_packages_outdated'
|
|
||||||
db.delete_column('euscan_categorylog', 'n_packages_outdated')
|
|
||||||
|
|
||||||
# Deleting field 'CategoryLog.n_versions_gentoo'
|
|
||||||
db.delete_column('euscan_categorylog', 'n_versions_gentoo')
|
|
||||||
|
|
||||||
# Deleting field 'CategoryLog.n_versions_overlay'
|
|
||||||
db.delete_column('euscan_categorylog', 'n_versions_overlay')
|
|
||||||
|
|
||||||
# Deleting field 'CategoryLog.n_versions_upstream'
|
|
||||||
db.delete_column('euscan_categorylog', 'n_versions_upstream')
|
|
||||||
|
|
||||||
# Adding field 'HerdLog.n_versions'
|
|
||||||
db.add_column('euscan_herdlog', 'n_versions', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'HerdLog.n_packaged'
|
|
||||||
db.add_column('euscan_herdlog', 'n_packaged', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'HerdLog.n_packages'
|
|
||||||
db.add_column('euscan_herdlog', 'n_packages', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'HerdLog.n_overlay'
|
|
||||||
db.add_column('euscan_herdlog', 'n_overlay', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Deleting field 'HerdLog.n_packages_gentoo'
|
|
||||||
db.delete_column('euscan_herdlog', 'n_packages_gentoo')
|
|
||||||
|
|
||||||
# Deleting field 'HerdLog.n_packages_overlay'
|
|
||||||
db.delete_column('euscan_herdlog', 'n_packages_overlay')
|
|
||||||
|
|
||||||
# Deleting field 'HerdLog.n_packages_outdated'
|
|
||||||
db.delete_column('euscan_herdlog', 'n_packages_outdated')
|
|
||||||
|
|
||||||
# Deleting field 'HerdLog.n_versions_gentoo'
|
|
||||||
db.delete_column('euscan_herdlog', 'n_versions_gentoo')
|
|
||||||
|
|
||||||
# Deleting field 'HerdLog.n_versions_overlay'
|
|
||||||
db.delete_column('euscan_herdlog', 'n_versions_overlay')
|
|
||||||
|
|
||||||
# Deleting field 'HerdLog.n_versions_upstream'
|
|
||||||
db.delete_column('euscan_herdlog', 'n_versions_upstream')
|
|
||||||
|
|
||||||
# Adding field 'MaintainerLog.n_versions'
|
|
||||||
db.add_column('euscan_maintainerlog', 'n_versions', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'MaintainerLog.n_packaged'
|
|
||||||
db.add_column('euscan_maintainerlog', 'n_packaged', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'MaintainerLog.n_packages'
|
|
||||||
db.add_column('euscan_maintainerlog', 'n_packages', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'MaintainerLog.n_overlay'
|
|
||||||
db.add_column('euscan_maintainerlog', 'n_overlay', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
|
|
||||||
|
|
||||||
# Deleting field 'MaintainerLog.n_packages_gentoo'
|
|
||||||
db.delete_column('euscan_maintainerlog', 'n_packages_gentoo')
|
|
||||||
|
|
||||||
# Deleting field 'MaintainerLog.n_packages_overlay'
|
|
||||||
db.delete_column('euscan_maintainerlog', 'n_packages_overlay')
|
|
||||||
|
|
||||||
# Deleting field 'MaintainerLog.n_packages_outdated'
|
|
||||||
db.delete_column('euscan_maintainerlog', 'n_packages_outdated')
|
|
||||||
|
|
||||||
# Deleting field 'MaintainerLog.n_versions_gentoo'
|
|
||||||
db.delete_column('euscan_maintainerlog', 'n_versions_gentoo')
|
|
||||||
|
|
||||||
# Deleting field 'MaintainerLog.n_versions_overlay'
|
|
||||||
db.delete_column('euscan_maintainerlog', 'n_versions_overlay')
|
|
||||||
|
|
||||||
# Deleting field 'MaintainerLog.n_versions_upstream'
|
|
||||||
db.delete_column('euscan_maintainerlog', 'n_versions_upstream')
|
|
||||||
|
|
||||||
|
|
||||||
models = {
|
|
||||||
'euscan.categorylog': {
|
|
||||||
'Meta': {'object_name': 'CategoryLog'},
|
|
||||||
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'n_packages_gentoo': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages_outdated': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_gentoo': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_upstream': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
|
||||||
},
|
|
||||||
'euscan.euscanresult': {
|
|
||||||
'Meta': {'object_name': 'EuscanResult'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
|
||||||
'result': ('django.db.models.fields.TextField', [], {'blank': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.herd': {
|
|
||||||
'Meta': {'object_name': 'Herd'},
|
|
||||||
'email': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
|
|
||||||
'herd': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.herdlog': {
|
|
||||||
'Meta': {'object_name': 'HerdLog'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'herd': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Herd']"}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'n_packages_gentoo': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages_outdated': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_gentoo': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_upstream': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
|
||||||
},
|
|
||||||
'euscan.maintainer': {
|
|
||||||
'Meta': {'object_name': 'Maintainer'},
|
|
||||||
'email': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.maintainerlog': {
|
|
||||||
'Meta': {'object_name': 'MaintainerLog'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'maintainer': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Maintainer']"}),
|
|
||||||
'n_packages_gentoo': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages_outdated': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_gentoo': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_upstream': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
|
||||||
},
|
|
||||||
'euscan.package': {
|
|
||||||
'Meta': {'unique_together': "(['category', 'name'],)", 'object_name': 'Package'},
|
|
||||||
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
||||||
'herds': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['euscan.Herd']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
||||||
'homepage': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'maintainers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['euscan.Maintainer']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
||||||
'n_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.version': {
|
|
||||||
'Meta': {'unique_together': "(['package', 'slot', 'revision', 'version', 'overlay'],)", 'object_name': 'Version'},
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'overlay': ('django.db.models.fields.CharField', [], {'default': "'gentoo'", 'max_length': '128'}),
|
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
|
||||||
'packaged': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
|
|
||||||
'revision': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'slot': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'urls': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
||||||
'version': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
complete_apps = ['euscan']
|
|
@ -1,139 +0,0 @@
|
|||||||
# encoding: utf-8
|
|
||||||
import datetime
|
|
||||||
from south.db import db
|
|
||||||
from south.v2 import SchemaMigration
|
|
||||||
from django.db import models
|
|
||||||
|
|
||||||
class Migration(SchemaMigration):
|
|
||||||
|
|
||||||
def forwards(self, orm):
|
|
||||||
|
|
||||||
# Deleting model 'CategoryLog'
|
|
||||||
db.delete_table('euscan_categorylog')
|
|
||||||
|
|
||||||
# Deleting model 'HerdLog'
|
|
||||||
db.delete_table('euscan_herdlog')
|
|
||||||
|
|
||||||
# Deleting model 'MaintainerLog'
|
|
||||||
db.delete_table('euscan_maintainerlog')
|
|
||||||
|
|
||||||
# Adding model 'Log'
|
|
||||||
db.create_table('euscan_log', (
|
|
||||||
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
|
||||||
('datetime', self.gf('django.db.models.fields.DateTimeField')()),
|
|
||||||
('n_packages_gentoo', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_packages_overlay', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_packages_outdated', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_versions_gentoo', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_versions_overlay', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_versions_upstream', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
))
|
|
||||||
db.send_create_signal('euscan', ['Log'])
|
|
||||||
|
|
||||||
|
|
||||||
def backwards(self, orm):
|
|
||||||
|
|
||||||
# Adding model 'CategoryLog'
|
|
||||||
db.create_table('euscan_categorylog', (
|
|
||||||
('category', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
|
||||||
('n_packages_gentoo', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_packages_outdated', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_packages_overlay', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_versions_upstream', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_versions_overlay', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_versions_gentoo', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
|
||||||
('datetime', self.gf('django.db.models.fields.DateTimeField')()),
|
|
||||||
))
|
|
||||||
db.send_create_signal('euscan', ['CategoryLog'])
|
|
||||||
|
|
||||||
# Adding model 'HerdLog'
|
|
||||||
db.create_table('euscan_herdlog', (
|
|
||||||
('n_packages_gentoo', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_versions_overlay', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_packages_outdated', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_packages_overlay', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_versions_upstream', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('herd', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['euscan.Herd'])),
|
|
||||||
('n_versions_gentoo', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
|
||||||
('datetime', self.gf('django.db.models.fields.DateTimeField')()),
|
|
||||||
))
|
|
||||||
db.send_create_signal('euscan', ['HerdLog'])
|
|
||||||
|
|
||||||
# Adding model 'MaintainerLog'
|
|
||||||
db.create_table('euscan_maintainerlog', (
|
|
||||||
('n_packages_gentoo', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_versions_overlay', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_packages_outdated', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('maintainer', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['euscan.Maintainer'])),
|
|
||||||
('n_packages_overlay', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_versions_upstream', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('n_versions_gentoo', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
|
||||||
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
|
||||||
('datetime', self.gf('django.db.models.fields.DateTimeField')()),
|
|
||||||
))
|
|
||||||
db.send_create_signal('euscan', ['MaintainerLog'])
|
|
||||||
|
|
||||||
# Deleting model 'Log'
|
|
||||||
db.delete_table('euscan_log')
|
|
||||||
|
|
||||||
|
|
||||||
models = {
|
|
||||||
'euscan.euscanresult': {
|
|
||||||
'Meta': {'object_name': 'EuscanResult'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
|
||||||
'result': ('django.db.models.fields.TextField', [], {'blank': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.herd': {
|
|
||||||
'Meta': {'object_name': 'Herd'},
|
|
||||||
'email': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
|
|
||||||
'herd': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.log': {
|
|
||||||
'Meta': {'object_name': 'Log'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'n_packages_gentoo': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages_outdated': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_gentoo': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_upstream': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
|
||||||
},
|
|
||||||
'euscan.maintainer': {
|
|
||||||
'Meta': {'object_name': 'Maintainer'},
|
|
||||||
'email': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.package': {
|
|
||||||
'Meta': {'unique_together': "(['category', 'name'],)", 'object_name': 'Package'},
|
|
||||||
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
||||||
'herds': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['euscan.Herd']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
||||||
'homepage': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'maintainers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['euscan.Maintainer']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
||||||
'n_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.version': {
|
|
||||||
'Meta': {'unique_together': "(['package', 'slot', 'revision', 'version', 'overlay'],)", 'object_name': 'Version'},
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'overlay': ('django.db.models.fields.CharField', [], {'default': "'gentoo'", 'max_length': '128'}),
|
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
|
||||||
'packaged': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
|
|
||||||
'revision': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'slot': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'urls': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
||||||
'version': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
complete_apps = ['euscan']
|
|
@ -1,130 +0,0 @@
|
|||||||
# encoding: utf-8
|
|
||||||
import datetime
|
|
||||||
from south.db import db
|
|
||||||
from south.v2 import SchemaMigration
|
|
||||||
from django.db import models
|
|
||||||
|
|
||||||
class Migration(SchemaMigration):
|
|
||||||
|
|
||||||
def forwards(self, orm):
|
|
||||||
|
|
||||||
# Adding model 'WorldLog'
|
|
||||||
db.create_table('euscan_worldlog', (
|
|
||||||
('log_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['euscan.Log'], unique=True, primary_key=True)),
|
|
||||||
))
|
|
||||||
db.send_create_signal('euscan', ['WorldLog'])
|
|
||||||
|
|
||||||
# Adding model 'CategoryLog'
|
|
||||||
db.create_table('euscan_categorylog', (
|
|
||||||
('log_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['euscan.Log'], unique=True, primary_key=True)),
|
|
||||||
('category', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
|
||||||
))
|
|
||||||
db.send_create_signal('euscan', ['CategoryLog'])
|
|
||||||
|
|
||||||
# Adding model 'HerdLog'
|
|
||||||
db.create_table('euscan_herdlog', (
|
|
||||||
('log_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['euscan.Log'], unique=True, primary_key=True)),
|
|
||||||
('herd', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['euscan.Herd'])),
|
|
||||||
))
|
|
||||||
db.send_create_signal('euscan', ['HerdLog'])
|
|
||||||
|
|
||||||
# Adding model 'MaintainerLog'
|
|
||||||
db.create_table('euscan_maintainerlog', (
|
|
||||||
('log_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['euscan.Log'], unique=True, primary_key=True)),
|
|
||||||
('maintainer', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['euscan.Maintainer'])),
|
|
||||||
))
|
|
||||||
db.send_create_signal('euscan', ['MaintainerLog'])
|
|
||||||
|
|
||||||
|
|
||||||
def backwards(self, orm):
|
|
||||||
|
|
||||||
# Deleting model 'WorldLog'
|
|
||||||
db.delete_table('euscan_worldlog')
|
|
||||||
|
|
||||||
# Deleting model 'CategoryLog'
|
|
||||||
db.delete_table('euscan_categorylog')
|
|
||||||
|
|
||||||
# Deleting model 'HerdLog'
|
|
||||||
db.delete_table('euscan_herdlog')
|
|
||||||
|
|
||||||
# Deleting model 'MaintainerLog'
|
|
||||||
db.delete_table('euscan_maintainerlog')
|
|
||||||
|
|
||||||
|
|
||||||
models = {
|
|
||||||
'euscan.categorylog': {
|
|
||||||
'Meta': {'object_name': 'CategoryLog', '_ormbases': ['euscan.Log']},
|
|
||||||
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['euscan.Log']", 'unique': 'True', 'primary_key': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.euscanresult': {
|
|
||||||
'Meta': {'object_name': 'EuscanResult'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
|
||||||
'result': ('django.db.models.fields.TextField', [], {'blank': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.herd': {
|
|
||||||
'Meta': {'object_name': 'Herd'},
|
|
||||||
'email': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
|
|
||||||
'herd': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.herdlog': {
|
|
||||||
'Meta': {'object_name': 'HerdLog', '_ormbases': ['euscan.Log']},
|
|
||||||
'herd': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Herd']"}),
|
|
||||||
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['euscan.Log']", 'unique': 'True', 'primary_key': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.log': {
|
|
||||||
'Meta': {'object_name': 'Log'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'n_packages_gentoo': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages_outdated': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_gentoo': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_upstream': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
|
||||||
},
|
|
||||||
'euscan.maintainer': {
|
|
||||||
'Meta': {'object_name': 'Maintainer'},
|
|
||||||
'email': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.maintainerlog': {
|
|
||||||
'Meta': {'object_name': 'MaintainerLog', '_ormbases': ['euscan.Log']},
|
|
||||||
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['euscan.Log']", 'unique': 'True', 'primary_key': 'True'}),
|
|
||||||
'maintainer': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Maintainer']"})
|
|
||||||
},
|
|
||||||
'euscan.package': {
|
|
||||||
'Meta': {'unique_together': "(['category', 'name'],)", 'object_name': 'Package'},
|
|
||||||
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
||||||
'herds': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['euscan.Herd']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
||||||
'homepage': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'maintainers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['euscan.Maintainer']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
||||||
'n_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.version': {
|
|
||||||
'Meta': {'unique_together': "(['package', 'slot', 'revision', 'version', 'overlay'],)", 'object_name': 'Version'},
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'overlay': ('django.db.models.fields.CharField', [], {'default': "'gentoo'", 'max_length': '128'}),
|
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
|
||||||
'packaged': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
|
|
||||||
'revision': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'slot': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'urls': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
||||||
'version': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.worldlog': {
|
|
||||||
'Meta': {'object_name': 'WorldLog', '_ormbases': ['euscan.Log']},
|
|
||||||
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['euscan.Log']", 'unique': 'True', 'primary_key': 'True'})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
complete_apps = ['euscan']
|
|
@ -1,127 +0,0 @@
|
|||||||
# encoding: utf-8
|
|
||||||
import datetime
|
|
||||||
from south.db import db
|
|
||||||
from south.v2 import SchemaMigration
|
|
||||||
from django.db import models
|
|
||||||
|
|
||||||
class Migration(SchemaMigration):
|
|
||||||
|
|
||||||
def forwards(self, orm):
|
|
||||||
|
|
||||||
# Adding model 'VersionLog'
|
|
||||||
db.create_table('euscan_versionlog', (
|
|
||||||
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
|
||||||
('package', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['euscan.Package'])),
|
|
||||||
('datetime', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2011, 8, 22, 21, 41, 33, 285480))),
|
|
||||||
('slot', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
|
||||||
('revision', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
|
||||||
('version', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
|
||||||
('packaged', self.gf('django.db.models.fields.BooleanField')(default=False)),
|
|
||||||
('overlay', self.gf('django.db.models.fields.CharField')(default='gentoo', max_length=128)),
|
|
||||||
('action', self.gf('django.db.models.fields.IntegerField')()),
|
|
||||||
))
|
|
||||||
db.send_create_signal('euscan', ['VersionLog'])
|
|
||||||
|
|
||||||
# Adding field 'Version.alive'
|
|
||||||
db.add_column('euscan_version', 'alive', self.gf('django.db.models.fields.BooleanField')(default=True, db_index=True), keep_default=False)
|
|
||||||
|
|
||||||
|
|
||||||
def backwards(self, orm):
|
|
||||||
|
|
||||||
# Deleting model 'VersionLog'
|
|
||||||
db.delete_table('euscan_versionlog')
|
|
||||||
|
|
||||||
# Deleting field 'Version.alive'
|
|
||||||
db.delete_column('euscan_version', 'alive')
|
|
||||||
|
|
||||||
|
|
||||||
models = {
|
|
||||||
'euscan.categorylog': {
|
|
||||||
'Meta': {'object_name': 'CategoryLog', '_ormbases': ['euscan.Log']},
|
|
||||||
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['euscan.Log']", 'unique': 'True', 'primary_key': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.euscanresult': {
|
|
||||||
'Meta': {'object_name': 'EuscanResult'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
|
||||||
'result': ('django.db.models.fields.TextField', [], {'blank': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.herd': {
|
|
||||||
'Meta': {'object_name': 'Herd'},
|
|
||||||
'email': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
|
|
||||||
'herd': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.herdlog': {
|
|
||||||
'Meta': {'object_name': 'HerdLog', '_ormbases': ['euscan.Log']},
|
|
||||||
'herd': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Herd']"}),
|
|
||||||
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['euscan.Log']", 'unique': 'True', 'primary_key': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.log': {
|
|
||||||
'Meta': {'object_name': 'Log'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'n_packages_gentoo': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages_outdated': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_gentoo': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_upstream': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
|
||||||
},
|
|
||||||
'euscan.maintainer': {
|
|
||||||
'Meta': {'object_name': 'Maintainer'},
|
|
||||||
'email': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.maintainerlog': {
|
|
||||||
'Meta': {'object_name': 'MaintainerLog', '_ormbases': ['euscan.Log']},
|
|
||||||
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['euscan.Log']", 'unique': 'True', 'primary_key': 'True'}),
|
|
||||||
'maintainer': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Maintainer']"})
|
|
||||||
},
|
|
||||||
'euscan.package': {
|
|
||||||
'Meta': {'unique_together': "(['category', 'name'],)", 'object_name': 'Package'},
|
|
||||||
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
||||||
'herds': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['euscan.Herd']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
||||||
'homepage': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'maintainers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['euscan.Maintainer']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
||||||
'n_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.version': {
|
|
||||||
'Meta': {'unique_together': "(['package', 'slot', 'revision', 'version', 'overlay'],)", 'object_name': 'Version'},
|
|
||||||
'alive': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'db_index': 'True'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'overlay': ('django.db.models.fields.CharField', [], {'default': "'gentoo'", 'max_length': '128'}),
|
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
|
||||||
'packaged': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
|
|
||||||
'revision': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'slot': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'urls': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
||||||
'version': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.versionlog': {
|
|
||||||
'Meta': {'object_name': 'VersionLog'},
|
|
||||||
'action': ('django.db.models.fields.IntegerField', [], {}),
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2011, 8, 22, 21, 41, 33, 285480)'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'overlay': ('django.db.models.fields.CharField', [], {'default': "'gentoo'", 'max_length': '128'}),
|
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
|
||||||
'packaged': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
|
|
||||||
'revision': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'slot': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'version': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.worldlog': {
|
|
||||||
'Meta': {'object_name': 'WorldLog', '_ormbases': ['euscan.Log']},
|
|
||||||
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['euscan.Log']", 'unique': 'True', 'primary_key': 'True'})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
complete_apps = ['euscan']
|
|
@ -1,125 +0,0 @@
|
|||||||
# encoding: utf-8
|
|
||||||
import datetime
|
|
||||||
from south.db import db
|
|
||||||
from south.v2 import SchemaMigration
|
|
||||||
from django.db import models
|
|
||||||
|
|
||||||
class Migration(SchemaMigration):
|
|
||||||
|
|
||||||
def forwards(self, orm):
|
|
||||||
|
|
||||||
# Adding field 'Package.last_version_gentoo'
|
|
||||||
db.add_column('euscan_package', 'last_version_gentoo', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='last_version_gentoo', null=True, to=orm['euscan.Version']), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'Package.last_version_overlay'
|
|
||||||
db.add_column('euscan_package', 'last_version_overlay', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='last_version_overlay', null=True, to=orm['euscan.Version']), keep_default=False)
|
|
||||||
|
|
||||||
# Adding field 'Package.last_version_upstream'
|
|
||||||
db.add_column('euscan_package', 'last_version_upstream', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='last_version_upstream', null=True, to=orm['euscan.Version']), keep_default=False)
|
|
||||||
|
|
||||||
|
|
||||||
def backwards(self, orm):
|
|
||||||
|
|
||||||
# Deleting field 'Package.last_version_gentoo'
|
|
||||||
db.delete_column('euscan_package', 'last_version_gentoo_id')
|
|
||||||
|
|
||||||
# Deleting field 'Package.last_version_overlay'
|
|
||||||
db.delete_column('euscan_package', 'last_version_overlay_id')
|
|
||||||
|
|
||||||
# Deleting field 'Package.last_version_upstream'
|
|
||||||
db.delete_column('euscan_package', 'last_version_upstream_id')
|
|
||||||
|
|
||||||
|
|
||||||
models = {
|
|
||||||
'euscan.categorylog': {
|
|
||||||
'Meta': {'object_name': 'CategoryLog', '_ormbases': ['euscan.Log']},
|
|
||||||
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['euscan.Log']", 'unique': 'True', 'primary_key': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.euscanresult': {
|
|
||||||
'Meta': {'object_name': 'EuscanResult'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
|
||||||
'result': ('django.db.models.fields.TextField', [], {'blank': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.herd': {
|
|
||||||
'Meta': {'object_name': 'Herd'},
|
|
||||||
'email': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
|
|
||||||
'herd': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.herdlog': {
|
|
||||||
'Meta': {'object_name': 'HerdLog', '_ormbases': ['euscan.Log']},
|
|
||||||
'herd': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Herd']"}),
|
|
||||||
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['euscan.Log']", 'unique': 'True', 'primary_key': 'True'})
|
|
||||||
},
|
|
||||||
'euscan.log': {
|
|
||||||
'Meta': {'object_name': 'Log'},
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'n_packages_gentoo': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages_outdated': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packages_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_gentoo': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions_upstream': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
|
||||||
},
|
|
||||||
'euscan.maintainer': {
|
|
||||||
'Meta': {'object_name': 'Maintainer'},
|
|
||||||
'email': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.maintainerlog': {
|
|
||||||
'Meta': {'object_name': 'MaintainerLog', '_ormbases': ['euscan.Log']},
|
|
||||||
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['euscan.Log']", 'unique': 'True', 'primary_key': 'True'}),
|
|
||||||
'maintainer': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Maintainer']"})
|
|
||||||
},
|
|
||||||
'euscan.package': {
|
|
||||||
'Meta': {'unique_together': "(['category', 'name'],)", 'object_name': 'Package'},
|
|
||||||
'category': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
||||||
'herds': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['euscan.Herd']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
||||||
'homepage': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'last_version_gentoo': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_version_gentoo'", 'null': 'True', 'to': "orm['euscan.Version']"}),
|
|
||||||
'last_version_overlay': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_version_overlay'", 'null': 'True', 'to': "orm['euscan.Version']"}),
|
|
||||||
'last_version_upstream': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_version_upstream'", 'null': 'True', 'to': "orm['euscan.Version']"}),
|
|
||||||
'maintainers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['euscan.Maintainer']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
||||||
'n_overlay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_packaged': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'n_versions': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
||||||
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.version': {
|
|
||||||
'Meta': {'unique_together': "(['package', 'slot', 'revision', 'version', 'overlay'],)", 'object_name': 'Version'},
|
|
||||||
'alive': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'db_index': 'True'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'overlay': ('django.db.models.fields.CharField', [], {'default': "'gentoo'", 'max_length': '128', 'db_index': 'True'}),
|
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
|
||||||
'packaged': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
|
|
||||||
'revision': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'slot': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'urls': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
|
||||||
'version': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.versionlog': {
|
|
||||||
'Meta': {'object_name': 'VersionLog'},
|
|
||||||
'action': ('django.db.models.fields.IntegerField', [], {}),
|
|
||||||
'datetime': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2012, 3, 2, 16, 32, 3, 656974)'}),
|
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
||||||
'overlay': ('django.db.models.fields.CharField', [], {'default': "'gentoo'", 'max_length': '128'}),
|
|
||||||
'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['euscan.Package']"}),
|
|
||||||
'packaged': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
|
|
||||||
'revision': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'slot': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
||||||
'version': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
|
||||||
},
|
|
||||||
'euscan.worldlog': {
|
|
||||||
'Meta': {'object_name': 'WorldLog', '_ormbases': ['euscan.Log']},
|
|
||||||
'log_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['euscan.Log']", 'unique': 'True', 'primary_key': 'True'})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
complete_apps = ['euscan']
|
|
0
euscanwww/euscanwww/__init__.py
Normal file
0
euscanwww/euscanwww/__init__.py
Normal file
209
euscanwww/euscanwww/settings.py
Normal file
209
euscanwww/euscanwww/settings.py
Normal file
@ -0,0 +1,209 @@
|
|||||||
|
# Django settings for euscanwww project.
|
||||||
|
|
||||||
|
import os.path
|
||||||
|
|
||||||
|
DEBUG = True
|
||||||
|
TEMPLATE_DEBUG = DEBUG
|
||||||
|
|
||||||
|
ADMINS = (
|
||||||
|
('admin', 'admin@example.com'),
|
||||||
|
)
|
||||||
|
|
||||||
|
MANAGERS = ADMINS
|
||||||
|
|
||||||
|
"""
|
||||||
|
# MySQL Example:
|
||||||
|
'default': {
|
||||||
|
'ENGINE': 'django.db.backends.mysql',
|
||||||
|
'NAME': 'euscan',
|
||||||
|
'USER': 'euscan',
|
||||||
|
'PASSWORD': 'password',
|
||||||
|
'HOST': 'localhost',
|
||||||
|
'PORT': '',
|
||||||
|
'OPTIONS': {
|
||||||
|
'init_command': 'SET storage_engine=INNODB',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
# PostGreSQL Example:
|
||||||
|
'default': {
|
||||||
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||||
|
'NAME': 'euscan',
|
||||||
|
'USER': 'euscan',
|
||||||
|
'PASSWORD': '',
|
||||||
|
'HOST': 'localhost',
|
||||||
|
'PORT': '',
|
||||||
|
},
|
||||||
|
"""
|
||||||
|
|
||||||
|
SITE_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
|
||||||
|
# euscan specific config
|
||||||
|
EUSCAN_ROOT = SITE_ROOT
|
||||||
|
RRD_ROOT = os.path.join(EUSCAN_ROOT, 'var', 'rrd')
|
||||||
|
|
||||||
|
DATABASES = {
|
||||||
|
'default': {
|
||||||
|
'ENGINE': 'django.db.backends.sqlite3',
|
||||||
|
'NAME': os.path.join(EUSCAN_ROOT, 'var', 'db', 'euscan.db')
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
CACHES = {
|
||||||
|
'default': {
|
||||||
|
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
|
||||||
|
'LOCATION': os.path.join(EUSCAN_ROOT, 'var', 'cache'),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Local time zone for this installation. Choices can be found here:
|
||||||
|
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
|
||||||
|
# although not all choices may be available on all operating systems.
|
||||||
|
# On Unix systems, a value of None will cause Django to use the same
|
||||||
|
# timezone as the operating system.
|
||||||
|
# If running in a Windows environment this must be set to the same as your
|
||||||
|
# system time zone.
|
||||||
|
TIME_ZONE = 'Europe/Paris'
|
||||||
|
|
||||||
|
# Language code for this installation. All choices can be found here:
|
||||||
|
# http://www.i18nguy.com/unicode/language-identifiers.html
|
||||||
|
LANGUAGE_CODE = 'en-us'
|
||||||
|
|
||||||
|
SITE_ID = 1
|
||||||
|
|
||||||
|
# If you set this to False, Django will make some optimizations so as not
|
||||||
|
# to load the internationalization machinery.
|
||||||
|
USE_I18N = True
|
||||||
|
|
||||||
|
# If you set this to False, Django will not format dates, numbers and
|
||||||
|
# calendars according to the current locale
|
||||||
|
USE_L10N = True
|
||||||
|
|
||||||
|
# If you set this to False, Django will not use timezone-aware datetimes.
|
||||||
|
USE_TZ = True
|
||||||
|
|
||||||
|
# Absolute filesystem path to the directory that will hold user-uploaded files.
|
||||||
|
# Example: "/home/media/media.lawrence.com/"
|
||||||
|
MEDIA_ROOT = os.path.join(SITE_ROOT, 'var', 'uploads')
|
||||||
|
|
||||||
|
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
||||||
|
# trailing slash if there is a path component (optional in other cases).
|
||||||
|
# Examples: "http://media.lawrence.com", "http://example.com/media/"
|
||||||
|
MEDIA_URL = '/media/'
|
||||||
|
|
||||||
|
# URL prefix for static files.
|
||||||
|
# Example: "http://media.lawrence.com/static/"
|
||||||
|
STATIC_URL = '/static/'
|
||||||
|
|
||||||
|
# Additional locations of static files
|
||||||
|
STATICFILES_DIRS = (
|
||||||
|
os.path.join(SITE_ROOT, 'htdocs'),
|
||||||
|
)
|
||||||
|
|
||||||
|
# List of finder classes that know how to find static files in
|
||||||
|
# various locations.
|
||||||
|
STATICFILES_FINDERS = (
|
||||||
|
'django.contrib.staticfiles.finders.FileSystemFinder',
|
||||||
|
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
||||||
|
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
|
||||||
|
)
|
||||||
|
|
||||||
|
# Make this unique, and don't share it with anybody.
|
||||||
|
SECRET_KEY = ''
|
||||||
|
|
||||||
|
# List of callables that know how to import templates from various sources.
|
||||||
|
TEMPLATE_LOADERS = (
|
||||||
|
'django.template.loaders.filesystem.Loader',
|
||||||
|
'django.template.loaders.app_directories.Loader',
|
||||||
|
# 'django.template.loaders.eggs.Loader',
|
||||||
|
)
|
||||||
|
|
||||||
|
MIDDLEWARE_CLASSES = (
|
||||||
|
'django.middleware.common.CommonMiddleware',
|
||||||
|
# Cache middleware
|
||||||
|
'django.middleware.cache.UpdateCacheMiddleware',
|
||||||
|
'django.middleware.cache.FetchFromCacheMiddleware',
|
||||||
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
|
# Disable Csrf for now
|
||||||
|
# 'django.middleware.csrf.CsrfViewMiddleware',
|
||||||
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||||
|
'django.contrib.messages.middleware.MessageMiddleware',
|
||||||
|
# Uncomment the next line for simple clickjacking protection:
|
||||||
|
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||||
|
)
|
||||||
|
|
||||||
|
CACHE_MIDDLEWARE_SECONDS=3600
|
||||||
|
CACHE_MIDDLEWARE_ANONYMOUS_ONLY=True
|
||||||
|
|
||||||
|
ROOT_URLCONF = 'euscanwww.urls'
|
||||||
|
|
||||||
|
# Python dotted path to the WSGI application used by Django's runserver.
|
||||||
|
WSGI_APPLICATION = 'euscanwww.wsgi.application'
|
||||||
|
|
||||||
|
FORCE_SCRIPT_NAME=""
|
||||||
|
|
||||||
|
TEMPLATE_DIRS = (
|
||||||
|
os.path.join(SITE_ROOT, 'templates'),
|
||||||
|
)
|
||||||
|
|
||||||
|
TEMPLATE_CONTEXT_PROCESSORS = (
|
||||||
|
"django.contrib.auth.context_processors.auth",
|
||||||
|
"django.core.context_processors.debug",
|
||||||
|
"django.core.context_processors.i18n",
|
||||||
|
"django.core.context_processors.media",
|
||||||
|
"django.core.context_processors.static",
|
||||||
|
"django.contrib.messages.context_processors.messages",
|
||||||
|
"django.core.context_processors.request",
|
||||||
|
)
|
||||||
|
|
||||||
|
INSTALLED_APPS = (
|
||||||
|
'django.contrib.auth',
|
||||||
|
'django.contrib.contenttypes',
|
||||||
|
'django.contrib.sessions',
|
||||||
|
'django.contrib.sites',
|
||||||
|
'django.contrib.messages',
|
||||||
|
'django.contrib.admin',
|
||||||
|
# Uncomment the next line to enable admin documentation:
|
||||||
|
# 'django.contrib.admindocs',
|
||||||
|
'south',
|
||||||
|
'djeuscan',
|
||||||
|
)
|
||||||
|
|
||||||
|
# A sample logging configuration. The only tangible logging
|
||||||
|
# performed by this configuration is to send an email to
|
||||||
|
# the site admins on every HTTP 500 error when DEBUG=False.
|
||||||
|
# See http://docs.djangoproject.com/en/dev/topics/logging for
|
||||||
|
# more details on how to customize your logging configuration.
|
||||||
|
LOGGING = {
|
||||||
|
'version': 1,
|
||||||
|
'disable_existing_loggers': False,
|
||||||
|
'filters': {
|
||||||
|
'require_debug_false': {
|
||||||
|
'()': 'django.utils.log.RequireDebugFalse'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'handlers': {
|
||||||
|
'mail_admins': {
|
||||||
|
'level': 'ERROR',
|
||||||
|
'filters': ['require_debug_false'],
|
||||||
|
'class': 'django.utils.log.AdminEmailHandler'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'loggers': {
|
||||||
|
'django.request': {
|
||||||
|
'handlers': ['mail_admins'],
|
||||||
|
'level': 'ERROR',
|
||||||
|
'propagate': True,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
try:
|
||||||
|
from local_settings import *
|
||||||
|
except ImportError, ex:
|
||||||
|
import sys
|
||||||
|
sys.stderr.write(\
|
||||||
|
("settings.py: error importing local settings file:\n" + \
|
||||||
|
"\t%s\n" + \
|
||||||
|
"Do you have a local_settings.py module?\n") % str(ex))
|
||||||
|
raise
|
25
euscanwww/euscanwww/urls.py
Normal file
25
euscanwww/euscanwww/urls.py
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
from django.conf import settings
|
||||||
|
from django.conf.urls import patterns, include, url
|
||||||
|
|
||||||
|
# Uncomment the next two lines to enable the admin:
|
||||||
|
from django.contrib import admin
|
||||||
|
admin.autodiscover()
|
||||||
|
|
||||||
|
urlpatterns = patterns('',
|
||||||
|
# Uncomment the admin/doc line below to enable admin documentation:
|
||||||
|
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
||||||
|
|
||||||
|
(r'^admin/', include(admin.site.urls)),
|
||||||
|
(r'^', include('djeuscan.urls')),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
if settings.DEBUG:
|
||||||
|
import os
|
||||||
|
|
||||||
|
urlpatterns += patterns('',
|
||||||
|
url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {
|
||||||
|
'document_root': os.path.join(settings.EUSCAN_ROOT, 'htdocs'),
|
||||||
|
}),
|
||||||
|
)
|
||||||
|
|
28
euscanwww/euscanwww/wsgi.py
Normal file
28
euscanwww/euscanwww/wsgi.py
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
"""
|
||||||
|
WSGI config for {{ project_name }} project.
|
||||||
|
|
||||||
|
This module contains the WSGI application used by Django's development server
|
||||||
|
and any production WSGI deployments. It should expose a module-level variable
|
||||||
|
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
|
||||||
|
this application via the ``WSGI_APPLICATION`` setting.
|
||||||
|
|
||||||
|
Usually you will have the standard Django WSGI application here, but it also
|
||||||
|
might make sense to replace the whole Django WSGI application with a custom one
|
||||||
|
that later delegates to the Django one. For example, you could introduce WSGI
|
||||||
|
middleware here, or combine a Django application with an application of another
|
||||||
|
framework.
|
||||||
|
|
||||||
|
"""
|
||||||
|
import os
|
||||||
|
|
||||||
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "euscanwww.settings")
|
||||||
|
|
||||||
|
# This application object is used by any WSGI server configured to use this
|
||||||
|
# file. This includes Django's development server, if the WSGI_APPLICATION
|
||||||
|
# setting points here.
|
||||||
|
from django.core.wsgi import get_wsgi_application
|
||||||
|
application = get_wsgi_application()
|
||||||
|
|
||||||
|
# Apply WSGI middleware here.
|
||||||
|
# from helloworld.wsgi import HelloWorldApplication
|
||||||
|
# application = HelloWorldApplication(application)
|
@ -27,13 +27,13 @@
|
|||||||
<div class="menu">
|
<div class="menu">
|
||||||
<ul>
|
<ul>
|
||||||
{% block menu %}
|
{% block menu %}
|
||||||
<li><a href="{% url euscan.views.index %}">Home</a></li>
|
<li><a href="{% url djeuscan.views.index %}">Home</a></li>
|
||||||
<li><a href="{% url euscan.views.categories %}">Categories</a></li>
|
<li><a href="{% url djeuscan.views.categories %}">Categories</a></li>
|
||||||
<li><a href="{% url euscan.views.herds %}">Herds</a></li>
|
<li><a href="{% url djeuscan.views.herds %}">Herds</a></li>
|
||||||
<li><a href="{% url euscan.views.maintainers %}">Maintainers</a></li>
|
<li><a href="{% url djeuscan.views.maintainers %}">Maintainers</a></li>
|
||||||
<li><a href="{% url euscan.views.overlays %}">Overlays</a></li>
|
<li><a href="{% url djeuscan.views.overlays %}">Overlays</a></li>
|
||||||
<li><a href="{% url euscan.views.world %}">Scan World</a></li>
|
<li><a href="{% url djeuscan.views.world %}">Scan World</a></li>
|
||||||
<li><a href="{% url euscan.views.statistics %}">Statistics</a></li>
|
<li><a href="{% url djeuscan.views.statistics %}">Statistics</a></li>
|
||||||
<!--
|
<!--
|
||||||
<li>---</li>
|
<li>---</li>
|
||||||
<li><a href="#">Login</a></li>
|
<li><a href="#">Login</a></li>
|
||||||
@ -47,8 +47,8 @@
|
|||||||
</li>
|
</li>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<li>---</li>
|
<li>---</li>
|
||||||
<li><a href="{% url euscan.views.api %}">API</a></li>
|
<li><a href="{% url djeuscan.views.api %}">API</a></li>
|
||||||
<li><a href="{% url euscan.views.about %}">About</a></li>
|
<li><a href="{% url djeuscan.views.about %}">About</a></li>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
{% for package in packages %}
|
{% for package in packages %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="{% url euscan.views.package package.category package.name %}">
|
<a href="{% url djeuscan.views.package package.category package.name %}">
|
||||||
{{ package.category }}/{{ package.name }}
|
{{ package.category }}/{{ package.name }}
|
||||||
</a>
|
</a>
|
||||||
{% package_bar package %}
|
{% package_bar package %}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
This web interface allow you to browse the portage tree, and find outdated ebuilds. It is designed to help maintainers monitor their packages and bump them.
|
This web interface allow you to browse the portage tree, and find outdated ebuilds. It is designed to help maintainers monitor their packages and bump them.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
euscan code source is available at <a href="http://git.iksaif.net/?p=euscan.git;a=summary">http://git.iksaif.net/?p=euscan.git;a=summary</a>.
|
euscan code source is available at <a href="http://git.iksaif.net/?p=djeuscan.git;a=summary">http://git.iksaif.net/?p=euscan.git;a=summary</a>.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Original Gentoo artwork and logos copyright (C) Gentoo Foundation.
|
Original Gentoo artwork and logos copyright (C) Gentoo Foundation.
|
||||||
|
@ -24,14 +24,14 @@
|
|||||||
{% for category in categories %}
|
{% for category in categories %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="{% url euscan.views.category category.category %}">{{ category.category }}</a>
|
<a href="{% url djeuscan.views.category category.category %}">{{ category.category }}</a>
|
||||||
{% package_bar category %}
|
{% package_bar category %}
|
||||||
</td>
|
</td>
|
||||||
{% package_cols category %}
|
{% package_cols category %}
|
||||||
{% if request.GET.extras %}
|
{% if request.GET.extras %}
|
||||||
<td>
|
<td>
|
||||||
<img src="{% url euscan.views.chart_category category.category 'packages-monthly-small' %}" />
|
<img src="{% url djeuscan.views.chart_category category.category 'packages-monthly-small' %}" />
|
||||||
<img src="{% url euscan.views.chart_category category.category 'versions-monthly-small' %}" />
|
<img src="{% url djeuscan.views.chart_category category.category 'versions-monthly-small' %}" />
|
||||||
</td>
|
</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -22,19 +22,19 @@
|
|||||||
<h3>Statistics</h2>
|
<h3>Statistics</h2>
|
||||||
<h4>Current statistics</h4>
|
<h4>Current statistics</h4>
|
||||||
<p>
|
<p>
|
||||||
<img src="{% url euscan.views.chart_category category 'pie-versions' %}" />
|
<img src="{% url djeuscan.views.chart_category category 'pie-versions' %}" />
|
||||||
<img src="{% url euscan.views.chart_category category 'pie-packages' %}" />
|
<img src="{% url djeuscan.views.chart_category category 'pie-packages' %}" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h4>All Time</h4>
|
<h4>All Time</h4>
|
||||||
<p>
|
<p>
|
||||||
<img src="{% url euscan.views.chart_category category 'versions-weekly' %}" />
|
<img src="{% url djeuscan.views.chart_category category 'versions-weekly' %}" />
|
||||||
<img src="{% url euscan.views.chart_category category 'versions-monthly' %}" />
|
<img src="{% url djeuscan.views.chart_category category 'versions-monthly' %}" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<img src="{% url euscan.views.chart_category category 'packages-weekly' %}" />
|
<img src="{% url djeuscan.views.chart_category category 'packages-weekly' %}" />
|
||||||
<img src="{% url euscan.views.chart_category category 'packages-monthly' %}" />
|
<img src="{% url djeuscan.views.chart_category category 'packages-monthly' %}" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@ -44,9 +44,9 @@
|
|||||||
<div class="menu">
|
<div class="menu">
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Versions</dt>
|
<dt>Versions</dt>
|
||||||
<dd><img src="{% url euscan.views.chart_category category 'versions-monthly-small' %}" /></dd>
|
<dd><img src="{% url djeuscan.views.chart_category category 'versions-monthly-small' %}" /></dd>
|
||||||
<dt>Packages</dt>
|
<dt>Packages</dt>
|
||||||
<dd><img src="{% url euscan.views.chart_category category 'packages-monthly-small' %}" /></dd>
|
<dd><img src="{% url djeuscan.views.chart_category category 'packages-monthly-small' %}" /></dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -21,18 +21,18 @@
|
|||||||
<h3>Statistics</h2>
|
<h3>Statistics</h2>
|
||||||
<h4>Current statistics</h4>
|
<h4>Current statistics</h4>
|
||||||
<p>
|
<p>
|
||||||
<img src="{% url euscan.views.chart_herd herd.herd 'pie-versions' %}" />
|
<img src="{% url djeuscan.views.chart_herd herd.herd 'pie-versions' %}" />
|
||||||
<img src="{% url euscan.views.chart_herd herd.herd 'pie-packages' %}" />
|
<img src="{% url djeuscan.views.chart_herd herd.herd 'pie-packages' %}" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h4>All Time</h4>
|
<h4>All Time</h4>
|
||||||
<p>
|
<p>
|
||||||
<img src="{% url euscan.views.chart_herd herd.herd 'versions-weekly' %}" />
|
<img src="{% url djeuscan.views.chart_herd herd.herd 'versions-weekly' %}" />
|
||||||
<img src="{% url euscan.views.chart_herd herd.herd 'versions-monthly' %}" />
|
<img src="{% url djeuscan.views.chart_herd herd.herd 'versions-monthly' %}" />
|
||||||
<p>
|
<p>
|
||||||
</p>
|
</p>
|
||||||
<img src="{% url euscan.views.chart_herd herd.herd 'packages-weekly' %}" />
|
<img src="{% url djeuscan.views.chart_herd herd.herd 'packages-weekly' %}" />
|
||||||
<img src="{% url euscan.views.chart_herd herd.herd 'packages-monthly' %}" />
|
<img src="{% url djeuscan.views.chart_herd herd.herd 'packages-monthly' %}" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@ -42,9 +42,9 @@
|
|||||||
<div class="menu">
|
<div class="menu">
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Versions</dt>
|
<dt>Versions</dt>
|
||||||
<dd><img src="{% url euscan.views.chart_herd herd.herd 'versions-monthly-small' %}" /></dd>
|
<dd><img src="{% url djeuscan.views.chart_herd herd.herd 'versions-monthly-small' %}" /></dd>
|
||||||
<dt>Packages</dt>
|
<dt>Packages</dt>
|
||||||
<dd><img src="{% url euscan.views.chart_herd herd.herd 'packages-monthly-small' %}" /></dd>
|
<dd><img src="{% url djeuscan.views.chart_herd herd.herd 'packages-monthly-small' %}" /></dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
{% for herd in herds %}
|
{% for herd in herds %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="{% url euscan.views.herd herd.herds__herd %}">
|
<a href="{% url djeuscan.views.herd herd.herds__herd %}">
|
||||||
{{ herd.herds__herd }}
|
{{ herd.herds__herd }}
|
||||||
</a>
|
</a>
|
||||||
{% package_bar herd %}
|
{% package_bar herd %}
|
||||||
@ -31,8 +31,8 @@
|
|||||||
{% package_cols herd %}
|
{% package_cols herd %}
|
||||||
{% if request.GET.extras %}
|
{% if request.GET.extras %}
|
||||||
<td>
|
<td>
|
||||||
<img src="{% url euscan.views.chart_herd herd.herds__herd 'packages-monthly-small' %}" />
|
<img src="{% url djeuscan.views.chart_herd herd.herds__herd 'packages-monthly-small' %}" />
|
||||||
<img src="{% url euscan.views.chart_herd herd.herds__herd 'versions-monthly-small' %}" />
|
<img src="{% url djeuscan.views.chart_herd herd.herds__herd 'versions-monthly-small' %}" />
|
||||||
</td>
|
</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -21,19 +21,19 @@
|
|||||||
<h3>Statistics</h2>
|
<h3>Statistics</h2>
|
||||||
<h4>Current statistics</h4>
|
<h4>Current statistics</h4>
|
||||||
<p>
|
<p>
|
||||||
<img src="{% url euscan.views.chart_maintainer maintainer.id 'pie-versions' %}" />
|
<img src="{% url djeuscan.views.chart_maintainer maintainer.id 'pie-versions' %}" />
|
||||||
<img src="{% url euscan.views.chart_maintainer maintainer.id 'pie-packages' %}" />
|
<img src="{% url djeuscan.views.chart_maintainer maintainer.id 'pie-packages' %}" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h4>All Time</h4>
|
<h4>All Time</h4>
|
||||||
<p>
|
<p>
|
||||||
<img src="{% url euscan.views.chart_maintainer maintainer.id 'versions-weekly' %}" />
|
<img src="{% url djeuscan.views.chart_maintainer maintainer.id 'versions-weekly' %}" />
|
||||||
<img src="{% url euscan.views.chart_maintainer maintainer.id 'versions-monthly' %}" />
|
<img src="{% url djeuscan.views.chart_maintainer maintainer.id 'versions-monthly' %}" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<img src="{% url euscan.views.chart_maintainer maintainer.id 'packages-weekly' %}" />
|
<img src="{% url djeuscan.views.chart_maintainer maintainer.id 'packages-weekly' %}" />
|
||||||
<img src="{% url euscan.views.chart_maintainer maintainer.id 'packages-monthly' %}" />
|
<img src="{% url djeuscan.views.chart_maintainer maintainer.id 'packages-monthly' %}" />
|
||||||
</p>
|
</p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
@ -42,9 +42,9 @@
|
|||||||
<div class="menu">
|
<div class="menu">
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Versions</dt>
|
<dt>Versions</dt>
|
||||||
<dd><img src="{% url euscan.views.chart_maintainer maintainer.id 'versions-monthly-small' %}" /></dd>
|
<dd><img src="{% url djeuscan.views.chart_maintainer maintainer.id 'versions-monthly-small' %}" /></dd>
|
||||||
<dt>Packages</dt>
|
<dt>Packages</dt>
|
||||||
<dd><img src="{% url euscan.views.chart_maintainer maintainer.id 'packages-monthly-small' %}" /></dd>
|
<dd><img src="{% url djeuscan.views.chart_maintainer maintainer.id 'packages-monthly-small' %}" /></dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
{% for maintainer in maintainers %}
|
{% for maintainer in maintainers %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="{% url euscan.views.maintainer maintainer.maintainers__id %}">
|
<a href="{% url djeuscan.views.maintainer maintainer.maintainers__id %}">
|
||||||
{% if maintainer.maintainers__name != maintainer.maintainers__email %}
|
{% if maintainer.maintainers__name != maintainer.maintainers__email %}
|
||||||
{{ maintainer.maintainers__name }} <{{ maintainer.maintainers__email }}>
|
{{ maintainer.maintainers__name }} <{{ maintainer.maintainers__email }}>
|
||||||
{% else %}
|
{% else %}
|
||||||
@ -35,8 +35,8 @@
|
|||||||
{% package_cols maintainer %}
|
{% package_cols maintainer %}
|
||||||
{% if request.GET.extras %}
|
{% if request.GET.extras %}
|
||||||
<td>
|
<td>
|
||||||
<img src="{% url euscan.views.chart_maintainer maintainer.maintainers__id 'packages-monthly-small' %}" />
|
<img src="{% url djeuscan.views.chart_maintainer maintainer.maintainers__id 'packages-monthly-small' %}" />
|
||||||
<img src="{% url euscan.views.chart_maintainer maintainer.maintainers__id 'versions-monthly-small' %}" />
|
<img src="{% url djeuscan.views.chart_maintainer maintainer.maintainers__id 'versions-monthly-small' %}" />
|
||||||
</td>
|
</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
{% for overlay in overlays %}
|
{% for overlay in overlays %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="{% url euscan.views.overlay overlay.version__overlay %}">{{ overlay.version__overlay }}</a>
|
<a href="{% url djeuscan.views.overlay overlay.version__overlay %}">{{ overlay.version__overlay }}</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
<dt>Herds</dt>
|
<dt>Herds</dt>
|
||||||
<dd>
|
<dd>
|
||||||
{% for herd in package.herds.all %}
|
{% for herd in package.herds.all %}
|
||||||
<a href="{% url euscan.views.herd herd.herd %}">
|
<a href="{% url djeuscan.views.herd herd.herd %}">
|
||||||
{{ herd.herd }}
|
{{ herd.herd }}
|
||||||
</a>
|
</a>
|
||||||
<{{ herd.email }}>
|
<{{ herd.email }}>
|
||||||
@ -50,12 +50,12 @@
|
|||||||
<dd>
|
<dd>
|
||||||
{% for maintainer in package.maintainers.all %}
|
{% for maintainer in package.maintainers.all %}
|
||||||
{% if maintainer.name != maintainer.email %}
|
{% if maintainer.name != maintainer.email %}
|
||||||
<a href="{% url euscan.views.maintainer maintainer.id %}">
|
<a href="{% url djeuscan.views.maintainer maintainer.id %}">
|
||||||
{{ maintainer.name }}
|
{{ maintainer.name }}
|
||||||
</a>
|
</a>
|
||||||
<{{ maintainer.email }}>
|
<{{ maintainer.email }}>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{% url euscan.views.maintainer maintainer.id %}">
|
<a href="{% url djeuscan.views.maintainer maintainer.id %}">
|
||||||
{{ maintainer.email }}
|
{{ maintainer.email }}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -5,15 +5,15 @@
|
|||||||
<h2>Statistics</h2>
|
<h2>Statistics</h2>
|
||||||
|
|
||||||
<h3>Current statistics</h3>
|
<h3>Current statistics</h3>
|
||||||
<img src="{% url euscan.views.chart 'pie-versions' %}" />
|
<img src="{% url djeuscan.views.chart 'pie-versions' %}" />
|
||||||
<img src="{% url euscan.views.chart 'pie-packages' %}" />
|
<img src="{% url djeuscan.views.chart 'pie-packages' %}" />
|
||||||
|
|
||||||
<h3>All time statistics</h3>
|
<h3>All time statistics</h3>
|
||||||
|
|
||||||
<img src="{% url euscan.views.chart 'packages-weekly' %}" />
|
<img src="{% url djeuscan.views.chart 'packages-weekly' %}" />
|
||||||
<img src="{% url euscan.views.chart 'packages-monthly' %}" />
|
<img src="{% url djeuscan.views.chart 'packages-monthly' %}" />
|
||||||
|
|
||||||
<img src="{% url euscan.views.chart 'versions-weekly' %}" />
|
<img src="{% url djeuscan.views.chart 'versions-weekly' %}" />
|
||||||
<img src="{% url euscan.views.chart 'versions-monthly' %}" />
|
<img src="{% url djeuscan.views.chart 'versions-monthly' %}" />
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<p>Import your /var/lib/portage/world file</p>
|
<p>Import your /var/lib/portage/world file</p>
|
||||||
|
|
||||||
<form action="{% url euscan.views.world_scan %}" method="post" enctype="multipart/form-data">{% csrf_token %}
|
<form action="{% url djeuscan.views.world_scan %}" method="post" enctype="multipart/form-data">{% csrf_token %}
|
||||||
{{ world_form.as_p }}
|
{{ world_form.as_p }}
|
||||||
<input type="submit" value="Submit" />
|
<input type="submit" value="Submit" />
|
||||||
</form>
|
</form>
|
||||||
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
<p>Or just list some packages</p>
|
<p>Or just list some packages</p>
|
||||||
|
|
||||||
<form action="{% url euscan.views.world_scan %}" method="post">{% csrf_token %}
|
<form action="{% url djeuscan.views.world_scan %}" method="post">{% csrf_token %}
|
||||||
{{ packages_form.as_p }}
|
{{ packages_form.as_p }}
|
||||||
<input type="submit" value="Submit" />
|
<input type="submit" value="Submit" />
|
||||||
</form>
|
</form>
|
||||||
|
Binary file not shown.
BIN
euscanwww/var/snapshots/snapshot-20120404.json.gz
Normal file
BIN
euscanwww/var/snapshots/snapshot-20120404.json.gz
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user