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
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
Cypress tests for Plone 6 + Volto (local)
Example: https://github.com/eea/clms-frontend Make sure that Plone is running: http://localhost:8080/Make sure that Volto is running (or maybe just ignore this?!): The best way is: Solve system limits error: https://github.com/guard/listen/blob/master/README.md#the-technical-details
Plone 6 add manager user
https://github.com/plone/volto/issues/2810#issuecomment-1384056419 Dacă vrei user simplu merge cu /gopdb apoiapi.user.create(email=’blabla@test.com’, username=’testmember’, password=’mytestmember’) api.user.grant_roles(username=’testmember’,roles=[‘Member’])