Skip to content

Commit 02c4252

Browse files
committed
refactor: add old pip modules
1 parent 5dbdfbe commit 02c4252

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+44355
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ db_dumps/
2222

2323
*node_modules*
2424

25+
.venv*
26+
2527

2628

2729
util/remote_to_local.conf
Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# General files to ignore
2+
*~
3+
*.bak
4+
*.log
5+
*.pot
6+
*.pyc
7+
8+
# PyPI packaging leftovers
9+
/dist
10+
/djangocms_panel.egg-info
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Copyright (c) 2015, T. Scott Barnes
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
* Redistributions of source code must retain the above copyright
7+
notice, this list of conditions and the following disclaimer.
8+
* Redistributions in binary form must reproduce the above copyright
9+
notice, this list of conditions and the following disclaimer in the
10+
documentation and/or other materials provided with the distribution.
11+
* The author's name may not be used to endorse or promote products
12+
derived from this software without specific prior written permission.
13+
14+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17+
DISCLAIMED. IN NO EVENT SHALL DJEESE FACTORY GMBH BE LIABLE FOR ANY
18+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include README.md
2+
recursive-include djangocms_panel/templates *
3+
recursive-exclude * *.py[co]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
djangocms-panel
2+
=================
3+
4+
A Bootstrap panel plugin for Django CMS.
5+
6+
7+
Installation
8+
------------
9+
10+
This plugin requires `Django-CMS` 3.0 or higher, and `Django` 1.7 or higher.
11+
12+
* Add ``'djangocms_panel'`` to your ``INSTALLED_APPS`` setting.
13+
* Run ``manage.py migrate djangocms_panel``.
14+
15+
16+
Usage
17+
-----
18+
19+
Just add the `Panel` CMS plugin to any placeholder in your pages. It acts as a
20+
container for other plugins, much like the built-in columns plugin.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '1.0.0'
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from cms.plugin_base import CMSPluginBase
2+
from cms.plugin_pool import plugin_pool
3+
from django.utils.translation import ugettext_lazy as _
4+
from .models import Panel
5+
6+
class PanelPlugin(CMSPluginBase):
7+
model = Panel
8+
name = _("Panel")
9+
allow_children = True
10+
render_template = "djangocms_panel/panel.html"
11+
12+
def render(self, context, instance, placeholder):
13+
context['instance'] = instance
14+
return context
15+
16+
plugin_pool.register_plugin(PanelPlugin)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
operations = [
10+
migrations.CreateModel(
11+
name='Panel',
12+
fields=[
13+
('cmsplugin_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='cms.CMSPlugin')),
14+
('extra_classes', models.CharField(max_length=100, null=True, blank=True)),
15+
],
16+
options={
17+
'abstract': False,
18+
},
19+
bases=('cms.cmsplugin',),
20+
),
21+
]

pip-legacy-packages/djangocms-panel/djangocms_panel/migrations/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)