Piccolo

Latest version: v1.5.0

Safety actively analyzes 626941 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 24 of 48

0.36.0

Not secure
------

Lots of small enhancements.

* Fixed bugs with the foreign key selector. Sometimes the edit button didn't
work. Also, sometimes the value shown in the input box wasn't refreshing when
navigating to a new page.
* The HTML title now matches the ``site_name`` parameter in ``create_admin``
(thanks to sinisaos for this).
* Updated Vue to the latest version.
* Internal code refactoring.

-------------------------------------------------------------------------------

0.35.0

Not secure
------

``Validators`` can now be specified in ``TableConfig``.

This allows fine grained access control - for example, only allowing some users
to send ``POST`` requests to certain API endpoints:

.. code-block:: python

from piccolo_api.crud.endpoints import PiccoloCRUD
from starlette.exceptions import HTTPException
from starlette.requests import Request


async def manager_only(
piccolo_crud: PiccoloCRUD,
request: Request
):
The Piccolo `BaseUser` can be accessed from the request.
user = request.user.user

Assuming we have another database table where we record
users with certain permissions.
manager = await Manager.exists().where(manager.user == user)

if not manager:
Raise a Starlette exception if we want to reject the
request.
raise HTTPException(
status_code=403,
detail="Only managers are allowed to do this"
)


admin = create_admin(
tables=TableConfig(
Movie,
validators=Validators(post_single=[manager_only])
)
)

-------------------------------------------------------------------------------

0.34.0

Not secure
------

Updated the date / datetime / time picker.

-------------------------------------------------------------------------------

0.33.1

Not secure
------

Fixed an issue with installing ``piccolo_admin`` in editable mode with ``pip``.

Thanks to peterschutt for reporting this issue.

-------------------------------------------------------------------------------

0.33.0

Not secure
------

Improved the UI for error messages. Thanks to sinisaos for adding this.

-------------------------------------------------------------------------------

0.32.0

Not secure
------

Camelcase column names could break parts of Piccolo Admin. It now works as
expected:

.. code-block:: python

class Person(Table):
This now works:
firstName = Varchar()

Even though camelcase is unusual in Python, a user may be using an existing
database, so it makes sense to support it. Thanks to sumitsharansatsangi for
reporting this issue.

-------------------------------------------------------------------------------

Page 24 of 48

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.