profile
viewpoint
Claude Paroz claudep 2xlibre.net Sàrl Switzerland https://www.2xlibre.net Python and Web developer, freelance

claudep/django 4

The Web framework for perfectionists with deadlines. Now on GitHub.

claudep/django-linkcheck 2

An app that will analyze and report on links in any model that you register with it. Links can be bare (urls or image and file fields) or embedded in HTML (linkcheck handles the parsing). It's fairly easy to override methods of the Linkcheck object should you need to do anything more complicated (like generate URLs from slug fields etc).

claudep/ateliergit 0

Dépôt expérimental pour atelier Git

claudep/ccs-caldavtester 0

CalDAV/CardDAV Testing Framework used by CalendarServer

claudep/cloudconvert-python 0

Python SDK for the CloudConvert API

claudep/django-background-tasks 0

A database-backed work queue for Django

claudep/django-bootstrap-datepicker-plus 0

Bootstrap3/Bootstrap4 DatePickerInput, TimePickerInput, DateTimePickerInput, MonthPickerInput, YearPickerInput with date-range-picker functionality for django version 2.2, 2.1, 1.11, 1.10 and 1.8

claudep/django-csp-reports 0

Django app for handling browser reports from Content Security Policy violations

PR closed deeplook/svglib

Override the default fillOpacity and strokeOpacity by the respective color property

Override the fillOpacity and strokeOpacity if the defaults for those properties are set and fillColor or strokeColor has an alpha value (opacity) set.

If this is not done, the default opacity (1) will be used regardless of the alpha values of the corresponding colors.

+14 -0

1 comment

1 changed file

ChrisBuergi

pr closed time in 2 hours

pull request commentdeeplook/svglib

Override the default fillOpacity and strokeOpacity by the respective color property

Thanks Chris, I slightly changed the patch (and added tests) to not need the new applied_default_value dict: #310 Is that new patch looking good for you? Also, I would like to know about the safeApplyShapeAttr of your patch, against what value are you guarding there (would be great to complement the tests with those values)?

ChrisBuergi

comment created time in 2 hours

PR opened deeplook/svglib

Set fill and stroke opacity from color alpha

Thanks Chris Buergi for the initial patch.

+31 -1

0 comment

3 changed files

pr created time in 2 hours

push eventclaudep/svglib

Claude Paroz

commit sha e373ceb3222d663b9f8a7538f827d9937ac5dcd9

Set fill and stroke opacity from color alpha Thanks Chris Buergi for the initial patch.

view details

push time in 2 hours

create barnchclaudep/svglib

branch : default_opacity

created branch time in 2 hours

PullRequestReviewEvent

Pull request review commentdjango/django

Fixed #27471 -- Make admin's list_filter choices collapsable

 {% load i18n %}-<h3>{% blocktranslate with filter_title=title %} By {{ filter_title }} {% endblocktranslate %}</h3>++{% with field=title.split|join:"_" %}+<a href="#" class="filter_collapse_{{ field }}">+    <h3>+        <div id="expanded_{{ field }}">-</div>+        <div id="collapsed_{{ field }}">+</div>+        {% blocktranslate with filter_title=title %} By {{ filter_title }} {% endblocktranslate %}+    </h3>+</a> <ul>-{% for choice in choices %}-    <li{% if choice.selected %} class="selected"{% endif %}>-    <a href="{{ choice.query_string|iriencode }}">{{ choice.display }}</a></li>-{% endfor %}+    <div id="collapsable_{{ field }}">+    {% for choice in choices %}+        <li{% if choice.selected %} class="selected"{% endif %}>+        <a href="{{ choice.query_string|iriencode }}">{{ choice.display }}</a></li>+    {% endfor %}+    </div> </ul>++<script>+(function($) {+    $(document).ready(function() {+        const $expanded = $('#expanded_{{ field }}')+        const $collapsed = $('#collapsed_{{ field }}')+        const $collapsable = $('#collapsable_{{ field }}')++        {% if choices|length > 10 %}+            $expanded.hide();+            $collapsable.slideToggle();+        {% else %}+            $collapsed.hide();+        {% endif %}++        $('.filter_collapse_{{ field }}').on('click', function () {+            $collapsed.toggle();+            $expanded.toggle();+            $collapsable.slideToggle('slow');+        });+    });+})(django.jQuery);+</script>

Django is progressively getting rid of jQuery, so IMHO no new code should use jQuery in Django.

Secondly, as you noticed in the tests, embedded JS is an issue for CSP, so the code should live in one of the existing admin JS files.

mgaligniana

comment created time in 13 hours

PullRequestReviewEvent

pull request commentworkalendar/workalendar

Conditional 2-1/26-12 holidays in Neuchatel

Hello Bruno, feel free to merge your PR as planned, I'll take care of rebasing after that.

claudep

comment created time in a day

push eventclaudep/django-two-factor-auth

Matt Molyneaux

commit sha a4a31a08c3c0a750bc526b9f644156bc54b3020d

Binary operators should not be at the end of a line

view details

Matt Molyneaux

commit sha a368979f5c598b128cdd219713868610382c88bf

Merge branch 'master' into minor-flake8-fix

view details

Matt Molyneaux

commit sha b6115b2e45218b15c1d95a00b773af6af88e6d29

Merge branch 'master' into minor-flake8-fix

view details

g-clef

commit sha 210e00117f87a66655eebd2c85a608350d3c55c4

add __hash__ method to PhoneDevice to allow it to be used in hash-based searches.

view details

g-clef

commit sha dcd57da652865bc821259c69a9ffd6a190d141fb

removing both the __eq__ and __hash__ properties of the PhoneDevice, then changing the unit test to validate equality manually.

view details

Bouke Haarsma

commit sha 07e6c146eec16eb8f2bb4d5e1e73b0191b449756

Merge branch 'master' into make-phone-device-hashable

view details

Matt Molyneaux

commit sha 87b644ce5bbd9f65959bd619b1782868f14888d3

Merge pull request #301 from g-clef/make-phone-device-hashable Fix error PhoneDevice in Django 2.2

view details

Ben Webber

commit sha 4918c909a23479be344eb52c40e1461fa94bd330

Add migration for byte string fix Changing the `PhoneDevice.key` default requires a model state migration. See: 268c0d6 (Merge pull request #281 from Ameriks/byte_string_fix)

view details

Matt Molyneaux

commit sha ea77ea4c1b84c1d92bebd5534fc1dbdaa33d5386

Merge pull request #306 from benwebber/fix/phonedevice-key-default Add migration for byte string fix

view details

Matt Molyneaux

commit sha 1d315861968245304de625a49aa351a5a37309f1

Merge branch 'master' into minor-flake8-fix

view details

Matt Molyneaux

commit sha 5732543adc1e030b893b545b635f97f9d5e77365

Merge pull request #283 from moggers87/minor-flake8-fix Binary operators should not be at the end of a line

view details

Matt Molyneaux

commit sha 18131998756697ec65c81636cb4dd04fc384f420

Test on Django 2.2 - Added Django 2.2 to test matrix - Remove Django 2.0 from test matrix, end of support was April 2019 - Add migrations to test models to placate Django 2.2 - Update trove classifiers No code changes required to two_factor itself

view details

Bouke Haarsma

commit sha 2e8f0352e5c2fbf1ccd543d68ba496534336e6ba

Merge pull request #307 from moggers87/django-2.2-tests Test on Django 2.2

view details

Sloman

commit sha bcc1d1f1787ce0ddd9dbafefaee02860f32c3de6

fix #309 add get_issuer

view details

Sloman

commit sha fd580f5c0910c83314e096dcc6cb43a5fb057d7d

test_custom_issuer

view details

Bouke Haarsma

commit sha c8cf4e3ed1836a51f6a85f10997300921bd29dcd

Merge pull request #310 from ChristophRob/customize_issuer Make Issuer customizable in QRGeneratorView

view details

Bouke Haarsma

commit sha 5231068840982b9bc10408351a3f1e7888c31574

Release notes for 1.9.0

view details

Bouke Haarsma

commit sha deadd433fce93397743ac7195491eb542852fd5d

Updated translations

view details

Bouke Haarsma

commit sha afcc8efd52bf26d88a6d5416733df71baba826f0

Rectify release notes, those versions are not dropped

view details

Bouke Haarsma

commit sha f6d10bc16683d5f1d03dfefda7d9b54ced1b770e

Bump version: 1.8.0 → 1.9.0

view details

push time in a day

delete branch claudep/django-two-factor-auth

delete branch : merge1.13.1

delete time in a day

delete branch claudep/django-two-factor-auth

delete branch : reqs

delete time in a day

delete branch claudep/django-two-factor-auth

delete branch : signals

delete time in a day

delete branch claudep/django-two-factor-auth

delete branch : universal

delete time in a day

pull request commentjazzband/django-two-factor-auth

Moved some capabilities to plugins folder

I just rebased on latest master. @moggers87, I think it would be great to finish review and do the merge as soon as possible (no rush, of course), so the upcoming email/webauthn/u2f methods could use the new plugin structure. We may also think about starting a 2.x release series to convey the importance of the structural change.

claudep

comment created time in a day

push eventclaudep/django-two-factor-auth

Matt Molyneaux

commit sha 0439c21262c6ebbad421d7af6132a7f1acaf226b

Remove Travis and housekeeping - Removed Travis and replace it with Github actions - Default branch in Django git is now main - django-admin is preferred over django-admin.py, the latter being removed in a future version of Django - Try to import url_has_allowed_host_and_scheme over is_safe_url where possible - Added Python 3.9 to test matrices

view details

Matt Molyneaux

commit sha 48a611f8d2bdec3a9e47cfb17916963b425dd11e

Coverage changes in tests module - login_user is never used on a single user - `var is None` is the preferred style for testing for `None` - Migrations should not be included in test coverage - Updated codecov action to latest version

view details

Bouke Haarsma

commit sha ffe4422e6f68bfb84ad2b44ca83c15abb0af5e7c

Merge pull request #425 from Bouke/no-more-travis Remove Travis and housekeeping

view details

Bouke Haarsma

commit sha 3b0bd99bf22ef70063a1c29bedcc6b5890a390c7

Run build for pull requests

view details

Claude Paroz

commit sha b412b5a783812fc219d30e9b7c88866c44d7a053

Refs #444 - Updated badges and links in README file

view details

Claude Paroz

commit sha c3f1421cd3467b6fa16bdd7c91b6b6e6e7d5adcc

Refs #444 - Add basic .pre-commit-config.yaml Also fixed isort failures.

view details

Claude Paroz

commit sha 1b6b6a3f9dc39690b1dce0dd30e67f53d51b8816

Suppressed default_app_config warning on Django 3.2+

view details

Claude Paroz

commit sha 791f2f5898f384c0e8de3d95c43e4e0d6ea916d2

Refs #444 - Add CONTRIBUTING.rst file

view details

Claude Paroz

commit sha e61c9959a29d3f7df923d08a32a707a0583f56a2

Added new languages: Hausa, Japanese, Vietnamese

view details

Claude Paroz

commit sha 6371430054be3b9d75a67447e2ebf3bc3f534a52

Updated translations from Transifex

view details

Claude Paroz

commit sha 4e2423a36406b73e6d2f11deecd353a7ea21ca61

Remove languages with no translated strings

view details

Matt Molyneaux

commit sha 4203bf2e79ab112739287f2a542e0f376bb5d08d

Update PO files with moved and removed strings

view details

Matt Molyneaux

commit sha a3e688c01cdf4bc5fccf34fc09cdfa7c7a00f4b0

Update changelog

view details

Matt Molyneaux

commit sha c0e0e899e6a601968421f1a9e7ae46da41f66d06

Bump version: 1.13 → 1.13.1

view details

Claude Paroz

commit sha 3d9f520a171ee1c08f8c4d1e4252bd52da0e340d

Fixes #440 - Add support for Django 4.0

view details

Claude Paroz

commit sha c0abd8b99a90243e8dde297f8fb55743ef7948c8

Fixes #438 - Upped limit of qrcode dependency

view details

Wayne Lambert

commit sha 052813a9a1152a5ed4a332f22196808a64df8c5c

Update configuration.rst Miscellaneous spelling and grammar changes.

view details

Tom Teichler

commit sha 81736410a81f49f6c577f5a61789d6065353ed32

Update django-phonenumber-field to newer version

view details

Claude Paroz

commit sha 2c4c4bf2e215a93a0f06be63431f836b2b60cbe9

Speed up tests with simplified password hasher

view details

Claude Paroz

commit sha e97dc8b8a7b6c42158d82d501685dfdc33db357e

Removed unneeded object inheritance

view details

push time in a day

delete branch claudep/django-two-factor-auth

delete branch : flake8

delete time in a day

PR closed jazzband/django-two-factor-auth

updated classifiers

added support for python 3.10

+2 -1

1 comment

2 changed files

anukaal

pr closed time in a day

pull request commentjazzband/django-two-factor-auth

updated classifiers

Thanks a lot for your contribution, but this was done as part of #464.

anukaal

comment created time in a day

delete branch claudep/django-two-factor-auth

delete branch : droppython

delete time in a day

release jazzband/django-two-factor-auth

1.13.2

released time in a day

PR opened jazzband/django-two-factor-auth

Dropped Python 3.5/3.6 and added Python 3.10

Python 3.5 security support ended 13 Sep 2020 Python 3.6 security support ended 23 Dec 2021

+19 -14

0 comment

6 changed files

pr created time in a day

create barnchclaudep/django-two-factor-auth

branch : droppython

created branch time in a day

create barnchclaudep/django-two-factor-auth

branch : flake8

created branch time in a day

PR opened jazzband/django-two-factor-auth

Stop making universal builds

Only Python 3 is supported by django-two-factor-auth.

+0 -4

0 comment

1 changed file

pr created time in a day

create barnchclaudep/django-two-factor-auth

branch : universal

created branch time in a day

pull request commentjazzband/django-two-factor-auth

Prepare release of django-two-factor-auth 1.13.2

Just pushed 1.13.2 tag. I think all project leads should soon receive an email with instructions.

claudep

comment created time in a day

created tagjazzband/django-two-factor-auth

tag1.13.2

Complete Two-Factor Authentication for Django providing the easiest integration into most Django projects.

created time in a day

delete branch claudep/django-two-factor-auth

delete branch : release1.13.2

delete time in a day

more