django-cards 0.8.7__tar.gz → 0.8.8__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {django-cards-0.8.7/django_cards.egg-info → django-cards-0.8.8}/PKG-INFO +1 -1
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/base.py +10 -6
- {django-cards-0.8.7 → django-cards-0.8.8/django_cards.egg-info}/PKG-INFO +1 -1
- {django-cards-0.8.7 → django-cards-0.8.8}/setup.py +1 -1
- {django-cards-0.8.7 → django-cards-0.8.8}/LICENSE +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/MANIFEST.in +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/README.md +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/__init__.py +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/apps.py +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/card_list/__init__.py +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/card_list/base.py +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/card_list/main.py +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/card_list/tree.py +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/includes.py +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/standard.py +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/default/32px.png +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/default/40px.png +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/default/style.css +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/default/style.min.css +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/default/throbber.gif +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/default-dark/32px.png +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/default-dark/40px.png +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/default-dark/style.css +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/default-dark/style.min.css +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/default-dark/throbber.gif +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/30px.png +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/32px.png +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.eot +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.svg +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.ttf +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.woff +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.eot +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.svg +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.ttf +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.woff +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.eot +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.svg +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.ttf +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.woff +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/style.css +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/style.min.css +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/throbber.gif +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/js/jstree.js +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/js/jstree.min.js +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/templates/cards/groups/groups.html +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/templates/cards/standard/blank.html +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/templates/cards/standard/card_group.html +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/templates/cards/standard/datatable.html +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/templates/cards/standard/default.html +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/templates/cards/standard/default_body.html +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/templates/cards/standard/html.html +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/templates/cards/standard/list_selection.html +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/templates/cards/standard/message.html +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/templates/cards/standard/table.html +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/templates/cards/standard/table_body.html +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/templates/cards/standard/tree_selection.html +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/templatetags/__init__.py +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/templatetags/django_cards_tags.py +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/cards/url_converters.py +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/django_cards.egg-info/SOURCES.txt +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/django_cards.egg-info/dependency_links.txt +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/django_cards.egg-info/top_level.txt +0 -0
- {django-cards-0.8.7 → django-cards-0.8.8}/setup.cfg +0 -0
@@ -160,13 +160,15 @@ class CardBase:
|
|
160
160
|
default_if=default_if,
|
161
161
|
**kwargs)
|
162
162
|
|
163
|
-
def add_row(self, *args):
|
163
|
+
def add_row(self, *args, extra_row_kwargs=None):
|
164
|
+
if extra_row_kwargs is None:
|
165
|
+
extra_row_kwargs = {}
|
164
166
|
entries = []
|
165
167
|
for arg in args:
|
166
168
|
if isinstance(arg, str):
|
167
|
-
entry = self._add_entry_internal(field=arg)
|
169
|
+
entry = self._add_entry_internal(field=arg, **extra_row_kwargs)
|
168
170
|
else:
|
169
|
-
entry = self._add_entry_internal(**arg)
|
171
|
+
entry = self._add_entry_internal(**arg, **extra_row_kwargs)
|
170
172
|
if entry is not None:
|
171
173
|
entries.append(entry)
|
172
174
|
|
@@ -452,16 +454,18 @@ class CardBase:
|
|
452
454
|
title += letter
|
453
455
|
return title
|
454
456
|
|
455
|
-
def add_rows(self, *args, default='N/A', hidden=False):
|
457
|
+
def add_rows(self, *args, default='N/A', hidden=False, extra_row_kwargs=None):
|
458
|
+
if extra_row_kwargs is None:
|
459
|
+
extra_row_kwargs = {}
|
456
460
|
for arg in args:
|
457
461
|
if isinstance(arg, str):
|
458
|
-
self.add_entry(field=arg, default=default, hidden=hidden)
|
462
|
+
self.add_entry(field=arg, default=default, hidden=hidden, **extra_row_kwargs)
|
459
463
|
elif isinstance(arg, dict):
|
460
464
|
if 'default' not in arg:
|
461
465
|
arg['default'] = default
|
462
466
|
if 'hidden' not in arg:
|
463
467
|
arg['hidden'] = hidden
|
464
|
-
self.add_entry(**arg)
|
468
|
+
self.add_entry(**arg, **extra_row_kwargs)
|
465
469
|
elif isinstance(arg, (list, tuple)):
|
466
470
|
self.add_row(*arg)
|
467
471
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/default/32px.png
RENAMED
File without changes
|
{django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/default/40px.png
RENAMED
File without changes
|
{django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/default/style.css
RENAMED
File without changes
|
{django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/default/style.min.css
RENAMED
File without changes
|
{django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/default/throbber.gif
RENAMED
File without changes
|
{django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/default-dark/32px.png
RENAMED
File without changes
|
{django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/default-dark/40px.png
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/30px.png
RENAMED
File without changes
|
{django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/32px.png
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/style.css
RENAMED
File without changes
|
{django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/style.min.css
RENAMED
File without changes
|
{django-cards-0.8.7 → django-cards-0.8.8}/cards/static/cards/jstree/css/themes/proton/throbber.gif
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{django-cards-0.8.7 → django-cards-0.8.8}/cards/templates/cards/standard/list_selection.html
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{django-cards-0.8.7 → django-cards-0.8.8}/cards/templates/cards/standard/tree_selection.html
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|