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:
Category: Docs
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>
JavaScript to TypeScript
Problem: You need to convert a big JavaScript project to TypeScript. Solution: ts-migrate
Local test empty plone backend
Just some notes:
cors-test.codehappy.dev
Salvez asta aici: https://cors-test.codehappy.dev
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
docker build test local
rsync rancher config
Go to rancher stack Add service eeacms/rsync (same settings as for other projects) Volumes – use the volume listed in storages: my_website_data:/data then $ ssh root@vv.vvv.vv.vv -p 22222 yes $ cd /data/