Permalink
Browse files

renamed app

  • Loading branch information...
1 parent d3bd6a4 commit 822252a0ed813738b3a140599372e5298ee84ac0 @Tyrdall Tyrdall committed Feb 26, 2013
View
@@ -3,7 +3,7 @@ include LICENSE
include DESCRIPTION
include CHANGELOG.txt
include README.md
-graft filer_gallery
+graft image_gallery
global-exclude *.orig *.pyc *.log
-prune filer_gallery/tests/coverage/
-prune filer_gallery/.ropeproject/
+prune image_gallery/tests/coverage/
+prune image_gallery/.ropeproject/
View
@@ -16,17 +16,17 @@ You need to install the following prerequisites in order to use this app::
If you want to install the latest stable release from PyPi::
- $ pip install django-filer-gallery
+ $ pip install cmsplugin-image-gallery
If you feel adventurous and want to install the latest commit from GitHub::
- $ pip install -e git://github.com/bitmazk/django-filer-gallery.git#egg=filer_gallery
+ $ pip install -e git://github.com/bitmazk/cmsplugin-image-gallery.git#egg=image_gallery
-Add ``filer_gallery`` to your ``INSTALLED_APPS``::
+Add ``image_gallery`` to your ``INSTALLED_APPS``::
INSTALLED_APPS = (
...,
- 'filer_gallery',
+ 'image_gallery',
)
File renamed without changes.
@@ -1,9 +1,9 @@
-"""Simple admin registration for ``filer_gallery`` models."""
+"""Simple admin registration for ``image_gallery`` models."""
from django.contrib import admin
from cms.admin.placeholderadmin import PlaceholderAdmin
-from filer_gallery.models import Gallery
+from image_gallery.models import Gallery
admin.site.register(Gallery, PlaceholderAdmin)
@@ -1,17 +1,17 @@
-"""CMS Plugins for the ``filer_gallery`` app."""
+"""CMS Plugins for the ``image_gallery`` app."""
from django.utils.translation import ugettext as _
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from filer.models.imagemodels import Image
-from filer_gallery.models import GalleryPlugin
+from image_gallery.models import GalleryPlugin
class CMSGalleryPlugin(CMSPluginBase):
model = GalleryPlugin
name = _('Filer Gallery')
- render_template = 'filer_gallery/gallery.html'
+ render_template = 'image_gallery/gallery.html'
def get_folder_images(self, folder, user):
qs_files = folder.files.instance_of(Image)
@@ -10,27 +10,27 @@ class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Gallery'
- db.create_table('filer_gallery_gallery', (
+ db.create_table('image_gallery_gallery', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('title', self.gf('django.db.models.fields.CharField')(max_length=100)),
('date', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
('location', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)),
('description', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['cms.Placeholder'], null=True)),
('folder', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['filer.Folder'])),
))
- db.send_create_signal('filer_gallery', ['Gallery'])
+ db.send_create_signal('image_gallery', ['Gallery'])
# Adding model 'GalleryPlugin'
db.create_table('cmsplugin_galleryplugin', (
('cmsplugin_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['cms.CMSPlugin'], unique=True, primary_key=True)),
- ('gallery', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['filer_gallery.Gallery'])),
+ ('gallery', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['image_gallery.Gallery'])),
))
- db.send_create_signal('filer_gallery', ['GalleryPlugin'])
+ db.send_create_signal('image_gallery', ['GalleryPlugin'])
def backwards(self, orm):
# Deleting model 'Gallery'
- db.delete_table('filer_gallery_gallery')
+ db.delete_table('image_gallery_gallery')
# Deleting model 'GalleryPlugin'
db.delete_table('cmsplugin_galleryplugin')
@@ -108,7 +108,7 @@ def backwards(self, orm):
'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
'uploaded_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'})
},
- 'filer_gallery.gallery': {
+ 'image_gallery.gallery': {
'Meta': {'object_name': 'Gallery'},
'date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'description': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cms.Placeholder']", 'null': 'True'}),
@@ -117,11 +117,11 @@ def backwards(self, orm):
'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '100'})
},
- 'filer_gallery.galleryplugin': {
+ 'image_gallery.galleryplugin': {
'Meta': {'object_name': 'GalleryPlugin', 'db_table': "'cmsplugin_galleryplugin'", '_ormbases': ['cms.CMSPlugin']},
'cmsplugin_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['cms.CMSPlugin']", 'unique': 'True', 'primary_key': 'True'}),
- 'gallery': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['filer_gallery.Gallery']"})
+ 'gallery': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['image_gallery.Gallery']"})
}
}
- complete_apps = ['filer_gallery']
+ complete_apps = ['image_gallery']
@@ -1,4 +1,4 @@
-"""Models for the ``filer_gallery`` app."""
+"""Models for the ``image_gallery`` app."""
from django.db import models
from django.utils.translation import ugettext_lazy as _
File renamed without changes.
@@ -1,8 +1,8 @@
-"""Tests for models of the ``filer_gallery``` application."""
+"""Tests for models of the ``image_gallery``` application."""
from django.test import TestCase
-from filer_gallery.cms_plugins import CMSGalleryPlugin
-from filer_gallery.tests.factories import GalleryPluginFactory
+from image_gallery.cms_plugins import CMSGalleryPlugin
+from image_gallery.tests.factories import GalleryPluginFactory
class CMSGalleryPluginTestCase(TestCase):
@@ -1,7 +1,7 @@
-"""Factories for the models of the ``filer_gallery`` app."""
+"""Factories for the models of the ``image_gallery`` app."""
from factory import Factory, SubFactory
-from filer_gallery.models import Gallery, GalleryPlugin
+from image_gallery.models import Gallery, GalleryPlugin
class GalleryFactory(Factory):
@@ -1,7 +1,7 @@
-"""Tests for the models of the ``filer_gallery`` app."""
+"""Tests for the models of the ``image_gallery`` app."""
from django.test import TestCase
-from filer_gallery.models import Gallery
+from image_gallery.models import Gallery
class GalleryTestCase(TestCase):
File renamed without changes.
@@ -9,7 +9,7 @@
defining two routers ("default" and "south") does not work.
"""
-from filer_gallery.tests.test_settings import * # NOQA
+from image_gallery.tests.test_settings import * # NOQA
DATABASES = {
@@ -12,7 +12,7 @@
}
}
-ROOT_URLCONF = 'filer_gallery.tests.urls'
+ROOT_URLCONF = 'image_gallery.tests.urls'
PROJECT_ROOT = os.path.realpath(
os.path.join(os.path.dirname(__file__), "../"))
@@ -67,7 +67,7 @@
INTERNAL_APPS = [
'django_nose',
- 'filer_gallery',
+ 'image_gallery',
]
INSTALLED_APPS = EXTERNAL_APPS + INTERNAL_APPS
File renamed without changes.
View
@@ -5,7 +5,7 @@
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE",
- "filer_gallery.tests.south_settings")
+ "image_gallery.tests.south_settings")
from django.core.management import execute_from_command_line
View
@@ -1,6 +1,6 @@
import os
from setuptools import setup, find_packages
-import filer_gallery
+import image_gallery
def read(fname):
@@ -12,7 +12,7 @@ def read(fname):
setup(
name="django-filer-gallery",
- version=filer_gallery.__version__,
+ version=image_gallery.__version__,
description=read('DESCRIPTION'),
long_description=read('README.rst'),
license='The MIT License',
@@ -31,5 +31,5 @@ def read(fname):
'django-coverage',
'mock',
],
- test_suite='filer_gallery.tests.runtests.runtests',
+ test_suite='image_gallery.tests.runtests.runtests',
)

0 comments on commit 822252a

Please sign in to comment.