Having a ABCPlone6Website.blabla with ABCPlone6Staging.blabla, let’s say you delete some images and you want to restore them from staging website. My method was to: The script:
Tag: plone
Plone 6, random debug commands
cat docker-entrypoint.sh cat /etc/passwd ls data/cache id -u plone su – plone stat /app/var…lock sudo rm data/filestorage/Data.fs.lock id -u (mounted type fakeowner data -> permission denied on data) docker context ls (ok: default, wrong: Docker Desktop)
Plone 6: unauthorized, after replacing database
Solution: clear cookies and session cache in your browser.
UID to object in Plone
(Pdb) from plone.app.uuid.utils import uuidToObject(Pdb) uuidToObject(’40asdasde33′)<Product at /Plone/en/blabla/something>
Local test empty plone backend
Just some notes:
Plone 6, Volto: find items containing a block
In my case I searched for items that contains any kind of “form” block: Register a view (MyView): configure.zcml admin.py Then go to localhost:8080/Plone/my-view
KeyError brain in getObject Plone 6
I received this error because of some issues with portal catalog. A folder containing images was deleted but the catalog was not updated correctly. my-obj-path was just one of the 899 images. I created in Management Interface a python script to find all broken brains: Then, the solution was to go to Catalog and press…
Disable LDAP (Plone 6)
Site Setup -> Management Interface (ZMI) -> acl_users -> pasldap -> Activate -> uncheck all -> Update
Sitemap Plone 6
yourwebsite/sitemap.xml.gz
Tests volto addon (in your local app)
In Makefile add: Then $ cd clms-frontend$ env ADDON=volto-clms-theme make test