diff --git a/TODO b/TODO index 7e373b4..e2337bb 100644 --- a/TODO +++ b/TODO @@ -34,9 +34,8 @@ Site Handlers euscanwww --------- -- quick install doc -- sort verions on package page -- export a sqlite database +- rename euscan application django-euscan/djeuscan +- try to separate portage stuff in django-portage/djportage - 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 a table for overlays, change euscan_versions [0.2.0] diff --git a/euscanwww/INSTALL b/euscanwww/INSTALL index 8aa2588..d6b6cfc 100644 --- a/euscanwww/INSTALL +++ b/euscanwww/INSTALL @@ -1,7 +1,8 @@ ## Basic Install # 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 ./manage.py syncdb @@ -35,10 +36,10 @@ eix --only-names -C dev-python | ./manage.py scan-upstream ./manage.py migrate # Import snapshot -./manage.py loaddata snapshot-yyyymmdd.js +./manage.py loaddata var/snapshots/snapshot-yyyymmdd.js -rm -rf rrd/* -rm -rf euscan.cache -rm -rf media/charts/* +rm -rf var/rrd/* +rm -rf var/cache/* +rm -rf var/charts/* ./manage.py regen-rrds diff --git a/euscanwww/api/__init__.py b/euscanwww/djeuscan/__init__.py similarity index 100% rename from euscanwww/api/__init__.py rename to euscanwww/djeuscan/__init__.py diff --git a/euscanwww/euscan/admin.py b/euscanwww/djeuscan/admin.py similarity index 76% rename from euscanwww/euscan/admin.py rename to euscanwww/djeuscan/admin.py index d65853c..3b7d8e9 100644 --- a/euscanwww/euscan/admin.py +++ b/euscanwww/djeuscan/admin.py @@ -1,5 +1,4 @@ -from euscan.models import Herd, Maintainer, Package, Version, VersionLog, EuscanResult, Log, \ - WorldLog, CategoryLog, HerdLog, MaintainerLog +from models import * from django.contrib import admin admin.site.register(Herd) diff --git a/euscanwww/euscan/__init__.py b/euscanwww/djeuscan/api/__init__.py similarity index 100% rename from euscanwww/euscan/__init__.py rename to euscanwww/djeuscan/api/__init__.py diff --git a/euscanwww/api/emitters.py b/euscanwww/djeuscan/api/emitters.py similarity index 100% rename from euscanwww/api/emitters.py rename to euscanwww/djeuscan/api/emitters.py diff --git a/euscanwww/api/handlers.py b/euscanwww/djeuscan/api/handlers.py similarity index 97% rename from euscanwww/api/handlers.py rename to euscanwww/djeuscan/api/handlers.py index 2a3b4e6..1297edb 100644 --- a/euscanwww/api/handlers.py +++ b/euscanwww/djeuscan/api/handlers.py @@ -5,12 +5,12 @@ from django.db.models import Sum, Max from django.core.exceptions import ObjectDoesNotExist from django.forms.models import model_to_dict -from euscan.models import Version, Package, Herd, Maintainer, EuscanResult, VersionLog -from euscan.forms import WorldForm, PackagesForm +from djeuscan.models import Version, Package, Herd, Maintainer, EuscanResult, VersionLog +from djeuscan.forms import WorldForm, PackagesForm # replace default XMLEmitter with ours from piston.emitters import Emitter -from api.emitters import EuscanXMLEmitter +from emitters import EuscanXMLEmitter Emitter.register('xml', EuscanXMLEmitter, 'text/xml; charset=utf-8') def xint(i): diff --git a/euscanwww/api/urls.py b/euscanwww/djeuscan/api/urls.py similarity index 95% rename from euscanwww/api/urls.py rename to euscanwww/djeuscan/api/urls.py index 089f52d..8fe4b4b 100644 --- a/euscanwww/api/urls.py +++ b/euscanwww/djeuscan/api/urls.py @@ -1,7 +1,7 @@ from django.conf.urls.defaults import * from piston.resource import Resource -from api.handlers import * +from handlers import * root_handler = Resource(handler=RootHandler) statistics_handler = Resource(handler=StatisticsHandler) @@ -11,7 +11,7 @@ maintainers_handler = Resource(handler=MaintainersHandler) packages_handler = Resource(handler=PackagesHandler) package_handler = Resource(handler=PackageHandler) -urlpatterns = patterns('api.views', +urlpatterns = patterns('djeuscan.api.views', url(r'^1.0/statistics\.(?P.+)$', statistics_handler, name='api.views.statistics'), url(r'^1.0/herds\.(?P.+)$', herds_handler, name='api.views.herds'), url(r'^1.0/categories\.(?P.+)$', categories_handler, name='api.views.categories'), diff --git a/euscanwww/euscan/charts.py b/euscanwww/djeuscan/charts.py similarity index 98% rename from euscanwww/euscan/charts.py rename to euscanwww/djeuscan/charts.py index 4f0fd03..544c693 100644 --- a/euscanwww/euscan/charts.py +++ b/euscanwww/djeuscan/charts.py @@ -4,8 +4,8 @@ import time from euscanwww import settings from django.db.models import F, Sum, Max -from euscan.models import Version, Package, Herd, Maintainer -from euscan.models import CategoryLog +from djeuscan.models import Version, Package, Herd, Maintainer +from djeuscan.models import CategoryLog import rrdtool diff --git a/euscanwww/euscan/feeds.py b/euscanwww/djeuscan/feeds.py similarity index 88% rename from euscanwww/euscan/feeds.py rename to euscanwww/djeuscan/feeds.py index 5c8b664..5099fa7 100644 --- a/euscanwww/euscan/feeds.py +++ b/euscanwww/djeuscan/feeds.py @@ -4,8 +4,8 @@ from django.http import Http404 from django.utils.feedgenerator import Atom1Feed from django.core.urlresolvers import reverse -from euscan.models import Version, Package, Herd, Maintainer, VersionLog -from euscan.views import * +from djeuscan.models import Version, Package, Herd, Maintainer, VersionLog +from djeuscan.views import * class BaseFeed(Feed): feed_type = Atom1Feed @@ -37,7 +37,7 @@ class BaseFeed(Feed): def item_link(self, vlog): 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): return vlog.datetime @@ -67,7 +67,7 @@ class PackageFeed(BaseFeed): return "%s" % 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): return package.description @@ -91,7 +91,7 @@ class MaintainerFeed(BaseFeed): return "Last changes for %s" % 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): q = VersionLog.objects.filter(package__maintainers__id=maintainer.id) @@ -110,7 +110,7 @@ class HerdFeed(BaseFeed): return "Last changes for %s" % 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): q = VersionLog.objects.filter(package__herds__id=herd.id) @@ -131,7 +131,7 @@ class CategoryFeed(BaseFeed): return "Last changes for %s" % category def link(self, category): - return reverse('euscan.views.category', args=[category]) + return reverse('djeuscan.views.category', args=[category]) def items(self, category): q = VersionLog.objects.filter(package__category=category) diff --git a/euscanwww/euscan/forms.py b/euscanwww/djeuscan/forms.py similarity index 100% rename from euscanwww/euscan/forms.py rename to euscanwww/djeuscan/forms.py diff --git a/euscanwww/euscan/management/__init__.py b/euscanwww/djeuscan/management/__init__.py similarity index 100% rename from euscanwww/euscan/management/__init__.py rename to euscanwww/djeuscan/management/__init__.py diff --git a/euscanwww/euscan/management/commands/__init__.py b/euscanwww/djeuscan/management/commands/__init__.py similarity index 100% rename from euscanwww/euscan/management/commands/__init__.py rename to euscanwww/djeuscan/management/commands/__init__.py diff --git a/euscanwww/euscan/management/commands/list-packages.py b/euscanwww/djeuscan/management/commands/list-packages.py similarity index 97% rename from euscanwww/euscan/management/commands/list-packages.py rename to euscanwww/djeuscan/management/commands/list-packages.py index 842e24a..bfd3293 100644 --- a/euscanwww/euscan/management/commands/list-packages.py +++ b/euscanwww/djeuscan/management/commands/list-packages.py @@ -1,7 +1,7 @@ from optparse import make_option from django.core.management.base import BaseCommand, CommandError -from euscanwww.euscan.models import Package +from djeuscan.models import Package class Command(BaseCommand): _overlays = {} diff --git a/euscanwww/euscan/management/commands/regen-rrds.py b/euscanwww/djeuscan/management/commands/regen-rrds.py similarity index 86% rename from euscanwww/euscan/management/commands/regen-rrds.py rename to euscanwww/djeuscan/management/commands/regen-rrds.py index f3ed5c8..c8eba34 100644 --- a/euscanwww/euscan/management/commands/regen-rrds.py +++ b/euscanwww/djeuscan/management/commands/regen-rrds.py @@ -3,8 +3,8 @@ import datetime from optparse import make_option from django.core.management.base import BaseCommand, CommandError -from euscanwww.euscan.models import HerdLog, MaintainerLog, CategoryLog, WorldLog -from euscanwww.euscan import charts +from djeuscan.models import HerdLog, MaintainerLog, CategoryLog, WorldLog +from djeuscan import charts class Command(BaseCommand): _overlays = {} diff --git a/euscanwww/euscan/management/commands/scan-metadata.py b/euscanwww/djeuscan/management/commands/scan-metadata.py similarity index 98% rename from euscanwww/euscan/management/commands/scan-metadata.py rename to euscanwww/djeuscan/management/commands/scan-metadata.py index 4366601..da9f26e 100644 --- a/euscanwww/euscan/management/commands/scan-metadata.py +++ b/euscanwww/djeuscan/management/commands/scan-metadata.py @@ -9,7 +9,7 @@ from optparse import make_option from django.db.transaction import commit_on_success 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.errors import GentoolkitFatalError diff --git a/euscanwww/euscan/management/commands/scan-portage.py b/euscanwww/djeuscan/management/commands/scan-portage.py similarity index 99% rename from euscanwww/euscan/management/commands/scan-portage.py rename to euscanwww/djeuscan/management/commands/scan-portage.py index 2260873..197ed16 100644 --- a/euscanwww/euscan/management/commands/scan-portage.py +++ b/euscanwww/djeuscan/management/commands/scan-portage.py @@ -9,7 +9,7 @@ from optparse import make_option from django.db.transaction import commit_on_success 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): _overlays = {} diff --git a/euscanwww/euscan/management/commands/scan-upstream.py b/euscanwww/djeuscan/management/commands/scan-upstream.py similarity index 98% rename from euscanwww/euscan/management/commands/scan-upstream.py rename to euscanwww/djeuscan/management/commands/scan-upstream.py index 0a2ee35..4469f38 100644 --- a/euscanwww/euscan/management/commands/scan-upstream.py +++ b/euscanwww/djeuscan/management/commands/scan-upstream.py @@ -11,7 +11,7 @@ from optparse import make_option from django.db.transaction import commit_on_success 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): _overlays = {} diff --git a/euscanwww/euscan/management/commands/update-counters.py b/euscanwww/djeuscan/management/commands/update-counters.py similarity index 97% rename from euscanwww/euscan/management/commands/update-counters.py rename to euscanwww/djeuscan/management/commands/update-counters.py index 813227d..65a6179 100644 --- a/euscanwww/euscan/management/commands/update-counters.py +++ b/euscanwww/djeuscan/management/commands/update-counters.py @@ -6,9 +6,9 @@ from django.db.models import Count, Sum from django.db.transaction import commit_on_success from django.core.management.base import BaseCommand, CommandError -from euscanwww.euscan.models import Package, Herd, Maintainer, Version -from euscanwww.euscan.models import HerdLog, MaintainerLog, CategoryLog, WorldLog -from euscanwww.euscan import charts +from djeuscan.models import Package, Herd, Maintainer, Version +from djeuscan.models import HerdLog, MaintainerLog, CategoryLog, WorldLog +from djeuscan import charts from distutils.version import StrictVersion, LooseVersion diff --git a/euscanwww/euscan/management/commands/utils.py b/euscanwww/djeuscan/management/commands/utils.py similarity index 100% rename from euscanwww/euscan/management/commands/utils.py rename to euscanwww/djeuscan/management/commands/utils.py diff --git a/euscanwww/djeuscan/migrations/0001_initial.py b/euscanwww/djeuscan/migrations/0001_initial.py new file mode 100644 index 0000000..d05d2e8 --- /dev/null +++ b/euscanwww/djeuscan/migrations/0001_initial.py @@ -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'] diff --git a/euscanwww/euscan/migrations/0008_index_overlay.py b/euscanwww/djeuscan/migrations/0002_auto__chg_field_package_homepage.py similarity index 69% rename from euscanwww/euscan/migrations/0008_index_overlay.py rename to euscanwww/djeuscan/migrations/0002_auto__chg_field_package_homepage.py index c77ccd0..1d0aa00 100644 --- a/euscanwww/euscan/migrations/0008_index_overlay.py +++ b/euscanwww/djeuscan/migrations/0002_auto__chg_field_package_homepage.py @@ -8,41 +8,41 @@ class Migration(SchemaMigration): def forwards(self, orm): - # Adding index on 'Version', fields ['overlay'] - db.create_index('euscan_version', ['overlay']) + # Changing field 'Package.homepage' + db.alter_column('djeuscan_package', 'homepage', self.gf('django.db.models.fields.TextField')()) def backwards(self, orm): - # Removing index on 'Version', fields ['overlay'] - db.delete_index('euscan_version', ['overlay']) + # Changing field 'Package.homepage' + db.alter_column('djeuscan_package', 'homepage', self.gf('django.db.models.fields.CharField')(max_length=256)) models = { - 'euscan.categorylog': { - 'Meta': {'object_name': 'CategoryLog', '_ormbases': ['euscan.Log']}, + '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['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'}, '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']"}), + 'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['djeuscan.Package']"}), 'result': ('django.db.models.fields.TextField', [], {'blank': 'True'}) }, - 'euscan.herd': { + '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'}) }, - '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'}) + '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'}) }, - 'euscan.log': { + 'djeuscan.log': { 'Meta': {'object_name': 'Log'}, 'datetime': ('django.db.models.fields.DateTimeField', [], {}), '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_upstream': ('django.db.models.fields.IntegerField', [], {'default': '0'}) }, - 'euscan.maintainer': { + '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'}) }, - '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']"}) + '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']"}) }, - 'euscan.package': { + '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['euscan.Herd']", 'symmetrical': 'False', 'blank': 'True'}), - 'homepage': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}), + 'herds': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['djeuscan.Herd']", 'symmetrical': 'False', 'blank': 'True'}), + 'homepage': ('django.db.models.fields.TextField', [], {'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'}), + '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'}) }, - 'euscan.version': { + '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['euscan.Package']"}), + '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'}) }, - 'euscan.versionlog': { + 'djeuscan.versionlog': { 'Meta': {'object_name': 'VersionLog'}, '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'}), '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'}), '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'}) + '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 = ['euscan'] + complete_apps = ['djeuscan'] diff --git a/euscanwww/euscan/migrations/__init__.py b/euscanwww/djeuscan/migrations/__init__.py similarity index 100% rename from euscanwww/euscan/migrations/__init__.py rename to euscanwww/djeuscan/migrations/__init__.py diff --git a/euscanwww/euscan/models.py b/euscanwww/djeuscan/models.py similarity index 98% rename from euscanwww/euscan/models.py rename to euscanwww/djeuscan/models.py index 9652747..180f9d5 100644 --- a/euscanwww/euscan/models.py +++ b/euscanwww/djeuscan/models.py @@ -20,7 +20,7 @@ class Package(models.Model): category = models.CharField(max_length=128) name = models.CharField(max_length=128) description = models.TextField(blank=True) - homepage = models.CharField(max_length=256, blank=True) + homepage = models.TextField(blank=True) herds = models.ManyToManyField(Herd, blank=True) maintainers = models.ManyToManyField(Maintainer, blank=True) diff --git a/euscanwww/euscan/templatetags/__init__.py b/euscanwww/djeuscan/templatetags/__init__.py similarity index 100% rename from euscanwww/euscan/templatetags/__init__.py rename to euscanwww/djeuscan/templatetags/__init__.py diff --git a/euscanwww/euscan/templatetags/div.py b/euscanwww/djeuscan/templatetags/div.py similarity index 100% rename from euscanwww/euscan/templatetags/div.py rename to euscanwww/djeuscan/templatetags/div.py diff --git a/euscanwww/euscan/templatetags/math_.py b/euscanwww/djeuscan/templatetags/math_.py similarity index 100% rename from euscanwww/euscan/templatetags/math_.py rename to euscanwww/djeuscan/templatetags/math_.py diff --git a/euscanwww/euscan/templatetags/mul.py b/euscanwww/djeuscan/templatetags/mul.py similarity index 100% rename from euscanwww/euscan/templatetags/mul.py rename to euscanwww/djeuscan/templatetags/mul.py diff --git a/euscanwww/euscan/templatetags/packages.py b/euscanwww/djeuscan/templatetags/packages.py similarity index 100% rename from euscanwww/euscan/templatetags/packages.py rename to euscanwww/djeuscan/templatetags/packages.py diff --git a/euscanwww/euscan/templatetags/sub.py b/euscanwww/djeuscan/templatetags/sub.py similarity index 100% rename from euscanwww/euscan/templatetags/sub.py rename to euscanwww/djeuscan/templatetags/sub.py diff --git a/euscanwww/euscan/templatetags/timedelta.py b/euscanwww/djeuscan/templatetags/timedelta.py similarity index 100% rename from euscanwww/euscan/templatetags/timedelta.py rename to euscanwww/djeuscan/templatetags/timedelta.py diff --git a/euscanwww/euscan/tests.py b/euscanwww/djeuscan/tests.py similarity index 100% rename from euscanwww/euscan/tests.py rename to euscanwww/djeuscan/tests.py diff --git a/euscanwww/euscan/urls.py b/euscanwww/djeuscan/urls.py similarity index 83% rename from euscanwww/euscan/urls.py rename to euscanwww/djeuscan/urls.py index c825d4a..5ce8b6d 100644 --- a/euscanwww/euscan/urls.py +++ b/euscanwww/djeuscan/urls.py @@ -1,39 +1,41 @@ from django.conf.urls.defaults import * from feeds import * -package_patterns = patterns('euscan.views', +package_patterns = patterns('djeuscan.views', url(r'^(?P[\w+][\w+.-]*)/(?P[\w+][\w+.-]*)/feed/$', PackageFeed(), name='package_feed'), (r'^(?P[\w+][\w+.-]*)/(?P[\w+][\w+.-]*)/$', 'package'), ) -categories_patterns = patterns('euscan.views', +categories_patterns = patterns('djeuscan.views', (r'^(?P[\w+][\w+.-]*)/(view/)?$', 'category'), url(r'^(?P[\w+][\w+.-]*)/feed/$', CategoryFeed(), name='category_feed'), (r'^(?P[\w+][\w+.-]*)/charts/(?P[\w\-]+).png$', 'chart_category'), (r'^$', 'categories'), ) -herds_patterns = patterns('euscan.views', +herds_patterns = patterns('djeuscan.views', (r'^(?P[\@\{\}\w+.-]*)/(view/)?$', 'herd'), url(r'^(?P[\@\{\}\w+.-]*)/feed/$', HerdFeed(), name='herd_feed'), (r'^(?P[\@\{\}\w+.-]*)/charts/(?P[\w\-]+).png$', 'chart_herd'), (r'^$', 'herds'), ) -maintainers_patterns = patterns('euscan.views', +maintainers_patterns = patterns('djeuscan.views', (r'^(?P\d+)/(view/)?$', 'maintainer'), url(r'^(?P\d+)/feed/$', MaintainerFeed(), name='maintainer_feed'), (r'^(?P\d+)/charts/(?P[\w\-]+).png$', 'chart_maintainer'), (r'^$', 'maintainers'), ) -overlays_patterns = patterns('euscan.views', +overlays_patterns = patterns('djeuscan.views', (r'^(?P[\w+][\w+.-]*)/(view/)?$', 'overlay'), (r'^$', 'overlays'), ) -urlpatterns = patterns('euscan.views', +urlpatterns = patterns('djeuscan.views', # Global stuff + (r'^api/', include('djeuscan.api.urls')), + (r'^$', 'index'), url(r'^feed/$', GlobalFeed(), name='global_feed'), (r'^about/$', 'about'), diff --git a/euscanwww/euscan/views.py b/euscanwww/djeuscan/views.py similarity index 100% rename from euscanwww/euscan/views.py rename to euscanwww/djeuscan/views.py diff --git a/euscanwww/euscan/migrations/0001_initial.py b/euscanwww/euscan/migrations/0001_initial.py deleted file mode 100644 index fcac998..0000000 --- a/euscanwww/euscan/migrations/0001_initial.py +++ /dev/null @@ -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'] diff --git a/euscanwww/euscan/migrations/0002_auto__add_unique_maintainer_email__del_unique_maintainer_name_email.py b/euscanwww/euscan/migrations/0002_auto__add_unique_maintainer_email__del_unique_maintainer_name_email.py deleted file mode 100644 index 8c8b720..0000000 --- a/euscanwww/euscan/migrations/0002_auto__add_unique_maintainer_email__del_unique_maintainer_name_email.py +++ /dev/null @@ -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'] diff --git a/euscanwww/euscan/migrations/0003_auto__add_field_categorylog_n_overlay__add_field_package_n_overlay__ad.py b/euscanwww/euscan/migrations/0003_auto__add_field_categorylog_n_overlay__add_field_package_n_overlay__ad.py deleted file mode 100644 index fcef666..0000000 --- a/euscanwww/euscan/migrations/0003_auto__add_field_categorylog_n_overlay__add_field_package_n_overlay__ad.py +++ /dev/null @@ -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'] diff --git a/euscanwww/euscan/migrations/0004_auto__del_field_categorylog_n_versions__del_field_categorylog_n_packag.py b/euscanwww/euscan/migrations/0004_auto__del_field_categorylog_n_versions__del_field_categorylog_n_packag.py deleted file mode 100644 index 7c3a309..0000000 --- a/euscanwww/euscan/migrations/0004_auto__del_field_categorylog_n_versions__del_field_categorylog_n_packag.py +++ /dev/null @@ -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'] diff --git a/euscanwww/euscan/migrations/0005_auto__del_categorylog__del_herdlog__del_maintainerlog__add_log.py b/euscanwww/euscan/migrations/0005_auto__del_categorylog__del_herdlog__del_maintainerlog__add_log.py deleted file mode 100644 index 3c9d744..0000000 --- a/euscanwww/euscan/migrations/0005_auto__del_categorylog__del_herdlog__del_maintainerlog__add_log.py +++ /dev/null @@ -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'] diff --git a/euscanwww/euscan/migrations/0006_auto__add_worldlog__add_categorylog__add_herdlog__add_maintainerlog.py b/euscanwww/euscan/migrations/0006_auto__add_worldlog__add_categorylog__add_herdlog__add_maintainerlog.py deleted file mode 100644 index 14804f1..0000000 --- a/euscanwww/euscan/migrations/0006_auto__add_worldlog__add_categorylog__add_herdlog__add_maintainerlog.py +++ /dev/null @@ -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'] diff --git a/euscanwww/euscan/migrations/0007_auto__add_versionlog__add_field_version_alive.py b/euscanwww/euscan/migrations/0007_auto__add_versionlog__add_field_version_alive.py deleted file mode 100644 index 2d3f759..0000000 --- a/euscanwww/euscan/migrations/0007_auto__add_versionlog__add_field_version_alive.py +++ /dev/null @@ -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'] diff --git a/euscanwww/euscan/migrations/0009_auto__add_field_package_last_version_gentoo__add_field_package_last_ve.py b/euscanwww/euscan/migrations/0009_auto__add_field_package_last_version_gentoo__add_field_package_last_ve.py deleted file mode 100644 index 320fc55..0000000 --- a/euscanwww/euscan/migrations/0009_auto__add_field_package_last_version_gentoo__add_field_package_last_ve.py +++ /dev/null @@ -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'] diff --git a/euscanwww/euscanwww/__init__.py b/euscanwww/euscanwww/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/euscanwww/euscanwww/settings.py b/euscanwww/euscanwww/settings.py new file mode 100644 index 0000000..8512442 --- /dev/null +++ b/euscanwww/euscanwww/settings.py @@ -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 diff --git a/euscanwww/euscanwww/urls.py b/euscanwww/euscanwww/urls.py new file mode 100644 index 0000000..2f9fbb3 --- /dev/null +++ b/euscanwww/euscanwww/urls.py @@ -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.*)$', 'django.views.static.serve', { + 'document_root': os.path.join(settings.EUSCAN_ROOT, 'htdocs'), + }), + ) + diff --git a/euscanwww/euscanwww/wsgi.py b/euscanwww/euscanwww/wsgi.py new file mode 100644 index 0000000..3c37f1b --- /dev/null +++ b/euscanwww/euscanwww/wsgi.py @@ -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) diff --git a/euscanwww/templates/_base.html b/euscanwww/templates/_base.html index 2d50183..22f9220 100644 --- a/euscanwww/templates/_base.html +++ b/euscanwww/templates/_base.html @@ -27,13 +27,13 @@