====================
Products.CPUtils
====================
This products contains useful external methods and some monkey patches.
Installation
============
Go in ZMI
1) Add an External Method with :
- id = cputils_install
- title = cputils_install
- Module Name = Products.CPUtils.utils
- Function Name = install
2) click on test to execute added method. This adds all main external methods of utils.py, prefixed by "cputils\_".
Changelog
=========
1.25 (2024-04-10)
-----------------
- Imported `safe_encode` from imio.pyutils.
[sgeulette]
1.24 (2024-02-12)
-----------------
- Improved `set_attr`.
[sgeulette]
- Added `obj_from_uid`
[sgeulette]
1.23 (2023-06-26)
-----------------
- Added parameter `use_registry=False` to `configure_ckeditor`, set it to `True`
with `collective.ckeditor 4.11+`.
[gbastien]
- Removed file `CONTRIBUTORS.rst`.
[gbastien]
- `utils.check_zope_admin` has been moved to `imio.helpers.security`.
[gbastien]
- Removed `utils.safe_encode` as already imported from `imio.helpers.content`.
[gbastien]
1.22 (2022-09-19)
-----------------
- Automatically install External methods at the root of Zope app.
[odelaere]
1.21 (2022-03-15)
-----------------
- Modified del_objects.
[sgeulette]
- Added parameter `removeWsc=1` to `utils.configure_ckeditor`, this will disable
the WSC link (Spellcheck) in the scayt menu of CKeditor as it is broken for years.
[gbastien]
1.20 (2021-11-08)
-----------------
- Completed `object_info`, display `UID` and class name
(as `meta_type` is not more relevant with `DX`).
[gbastien]
1.19 (2021-09-28)
-----------------
- Added `del_object` to bypass link integrity check.
[sgeulette]
- Improved `set_attr` to set a None value
[sgeulette]
- Added `get_user_pwd_hash` and `set_user_pwd_hash` methods
[sgeulette]
- Added `check_groups_users` method
[sgeulette]
- Do not break when generating output log in `utils.change_user_properties`,
in some cases, like when using an LDAP, a `UnicodeDecodeError` may be raised.
[gbastien]
1.18 (2021-04-21)
-----------------
- Added Check all catalog intids for registration method
[fngaha]
- Fix for password validation that was validating the hash
[bleybaert]
- Added uid method to display current uid
[sgeulette]
- Modified ged ckeditor configuration
[sgeulette]
- Added `filtering` option in `configure_ckeditor` method
[sgeulette]
- Added `target` option in `object_link`
[sgeulette]
- Added `show_object_relations` method to display zc relations
[sgeulette]
1.17 (2020-04-02)
-----------------
- Add a function to cleanup documentviewer generated previews
[mpeeters]
- Added redirect after order.
[sgeulette]
1.16 (2019-08-23)
-----------------
- Corrected list_users.
[sgeulette]
- Improved object_link function.
[sgeulette]
1.15 (2019-06-08)
-----------------
- The list_users method returns also global roles of groups/users.
[odelaere]
1.14 (2019-05-20)
-----------------
- Added function to construct link to object
[sgeulette]
- Added function to set an attribute on context
[sgeulette]
- Improved dv_conversion
[sgeulette]
- Improved dv_images_size
[sgeulette]
- Added script to remove dependency step from import registry
[sgeulette]
- Improved configure_ckeditor and list_portlets
[sgeulette]
- Improved order_folder
[sgeulette]
1.13 (2017-11-27)
-----------------
- In utils.configure_ckeditor, removed FontSize from default
PloneMeeting CKeditor toolbar.
[gbastien]
- Update unlock_webdav_objects to search locked objects in context
[sgeulette]
1.12 (2017-08-11)
-----------------
- Check Missing.Value on tobytes method. It's prevent error on bad indexed object on cputils_audit_catalog.
[bsuttor]
- Added method check_blobs
[sgeulette]
- Added del_objects method
[sgeulette]
1.11 (2017-05-08)
-----------------
- list_users script: added fullname and email, added separator option
[sgeulette]
- Added 'Subscript' and 'Superscript' to the CKeditor custom toolbar
used for 'plonemeeting'.
[gbastien]
1.10 (2017-01-24)
-----------------
- Improve zmi scripts for Docker instances.
[bsuttor]
- Added correct_intids (Correct intids key references after a zodb change: mount point to main).
[sgeulette]
1.9 (2017-01-17)
----------------
- Corrected default value.
[sgeulette]
- Added method to change UID (after zmi import by example).
[sgeulette]
- Added Link and Unlink in ckeditor config to configure correctly messagesviewlet
[sgeulette]
1.8 (2016-11-24)
----------------
- configure_ckeditor : added buttons 'FontSize', 'NbSpace' and 'NbHyphen' and
removed button 'Blockquote', from the default CKeditor custom toolbar used
for 'plonemeeting'.
[gbastien]
- resources_order : function to list resources and output order.
[sgeulette]
- configure_ckeditor : disable tinymce resources.
[sgeulette]
- load_site : load site during specified time
[sgeulette]
- objects_stats : output as csv
[sgeulette]
- fileSize : force format
[sgeulette]
- dv_conversion : function to list documentviewer stats or do conversion
[sgeulette]
- dv_images_size : return documentviewer blobs information
[sgeulette]
- remove_empty_related_items : remove broken related items
[bsuttor]
- creators : change recursively creators
[sgeulette]
1.7 (2016-02-16)
----------------
- configure_ckeditor : added buttons 'Link', 'Unlink' and 'Image' to the
default CKeditor custom toolbar used for 'plonemeeting'.
[gbastien]
1.6 (2015-11-24)
----------------
- configure_ckeditor: added ged config, added scayt activation
[sgeulette]
- list_users: output users without group
[sgeulette]
- Added method to update version in portal_quickinstaller.
[sgeulette]
- Added safe_encode method. Improved list_users
[sgeulette]
- Updated listInstallableProducts for Plone 4.3.4 and Plone 4.3.7
[sgeulette]
- Added method "list_objects" to view all objects path for specific type
[boulch]
1.5 (2015-04-21)
----------------
- Added check_users method to check email validity.
[sgeulette]
1.4 (2015-03-20)
----------------
- Added try except to avoid plone 4.3.3 to 4.3.4 migration error.
[sgeulette]
1.3 (2015-02-24)
----------------
- Added method to clear and rebuild zc.relation.catalog
[sgeulette]
- Added method to display portal types used in site
[sgeulette]
- Added method to reset passwords
[sgeulette]
- Modified user & group listing
[sgeulette]
- Modified user properties export information
[sgeulette]
- Added method to move or copy objects
[sgeulette]
- Adapted CKEditor toolbar for PloneMeeting
[gbastien]
1.2 (2014-09-01)
----------------
- Plone 4 compatibility Plone version detection
[sgeulette]
- Corrected and improved views listing method
[sgeulette]
- Improved users and groups migration method
[sgeulette]
1.1 (2014-03-18)
----------------
- Added utils module.
[sgeulette]
1.0 (2014-03-10)
----------------
- First release.
[sgeulette]
Raw data
{
"_id": null,
"home_page": "http://pypi.python.org/pypi/Products.CPUtils",
"name": "Products.CPUtils",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "plone imio utils",
"author": "Stephan Geulette",
"author_email": "s.geulette@imio.be",
"download_url": "https://files.pythonhosted.org/packages/f0/24/980dac98f7cf4f012c5a5f0f0bd31dcc6b21bff7ef29e04a3e907c982744/Products.CPUtils-1.25.tar.gz",
"platform": null,
"description": "====================\nProducts.CPUtils\n====================\n\nThis products contains useful external methods and some monkey patches.\n\nInstallation\n============\n\nGo in ZMI\n\n1) Add an External Method with :\n\n - id = cputils_install\n - title = cputils_install\n - Module Name = Products.CPUtils.utils\n - Function Name = install\n\n2) click on test to execute added method. This adds all main external methods of utils.py, prefixed by \"cputils\\_\".\n\n\nChangelog\n=========\n\n\n1.25 (2024-04-10)\n-----------------\n\n- Imported `safe_encode` from imio.pyutils.\n [sgeulette]\n\n1.24 (2024-02-12)\n-----------------\n\n- Improved `set_attr`.\n [sgeulette]\n- Added `obj_from_uid`\n [sgeulette]\n\n1.23 (2023-06-26)\n-----------------\n\n- Added parameter `use_registry=False` to `configure_ckeditor`, set it to `True`\n with `collective.ckeditor 4.11+`.\n [gbastien]\n- Removed file `CONTRIBUTORS.rst`.\n [gbastien]\n- `utils.check_zope_admin` has been moved to `imio.helpers.security`.\n [gbastien]\n- Removed `utils.safe_encode` as already imported from `imio.helpers.content`.\n [gbastien]\n\n1.22 (2022-09-19)\n-----------------\n\n- Automatically install External methods at the root of Zope app.\n [odelaere]\n\n1.21 (2022-03-15)\n-----------------\n\n- Modified del_objects.\n [sgeulette]\n- Added parameter `removeWsc=1` to `utils.configure_ckeditor`, this will disable\n the WSC link (Spellcheck) in the scayt menu of CKeditor as it is broken for years.\n [gbastien]\n\n1.20 (2021-11-08)\n-----------------\n\n- Completed `object_info`, display `UID` and class name\n (as `meta_type` is not more relevant with `DX`).\n [gbastien]\n\n1.19 (2021-09-28)\n-----------------\n\n- Added `del_object` to bypass link integrity check.\n [sgeulette]\n- Improved `set_attr` to set a None value\n [sgeulette]\n- Added `get_user_pwd_hash` and `set_user_pwd_hash` methods\n [sgeulette]\n- Added `check_groups_users` method\n [sgeulette]\n- Do not break when generating output log in `utils.change_user_properties`,\n in some cases, like when using an LDAP, a `UnicodeDecodeError` may be raised.\n [gbastien]\n\n1.18 (2021-04-21)\n-----------------\n- Added Check all catalog intids for registration method\n [fngaha]\n- Fix for password validation that was validating the hash\n [bleybaert]\n- Added uid method to display current uid\n [sgeulette]\n- Modified ged ckeditor configuration\n [sgeulette]\n- Added `filtering` option in `configure_ckeditor` method\n [sgeulette]\n- Added `target` option in `object_link`\n [sgeulette]\n- Added `show_object_relations` method to display zc relations\n [sgeulette]\n\n1.17 (2020-04-02)\n-----------------\n\n- Add a function to cleanup documentviewer generated previews\n [mpeeters]\n- Added redirect after order.\n [sgeulette]\n\n1.16 (2019-08-23)\n-----------------\n\n- Corrected list_users.\n [sgeulette]\n- Improved object_link function.\n [sgeulette]\n\n1.15 (2019-06-08)\n-----------------\n\n- The list_users method returns also global roles of groups/users.\n [odelaere]\n\n1.14 (2019-05-20)\n-----------------\n\n- Added function to construct link to object\n [sgeulette]\n- Added function to set an attribute on context\n [sgeulette]\n- Improved dv_conversion\n [sgeulette]\n- Improved dv_images_size\n [sgeulette]\n- Added script to remove dependency step from import registry\n [sgeulette]\n- Improved configure_ckeditor and list_portlets\n [sgeulette]\n- Improved order_folder\n [sgeulette]\n\n1.13 (2017-11-27)\n-----------------\n\n- In utils.configure_ckeditor, removed FontSize from default\n PloneMeeting CKeditor toolbar.\n [gbastien]\n- Update unlock_webdav_objects to search locked objects in context\n [sgeulette]\n\n1.12 (2017-08-11)\n-----------------\n\n- Check Missing.Value on tobytes method. It's prevent error on bad indexed object on cputils_audit_catalog.\n [bsuttor]\n- Added method check_blobs\n [sgeulette]\n- Added del_objects method\n [sgeulette]\n\n1.11 (2017-05-08)\n-----------------\n\n- list_users script: added fullname and email, added separator option\n [sgeulette]\n- Added 'Subscript' and 'Superscript' to the CKeditor custom toolbar\n used for 'plonemeeting'.\n [gbastien]\n\n1.10 (2017-01-24)\n-----------------\n\n- Improve zmi scripts for Docker instances.\n [bsuttor]\n- Added correct_intids (Correct intids key references after a zodb change: mount point to main).\n [sgeulette]\n\n1.9 (2017-01-17)\n----------------\n\n- Corrected default value.\n [sgeulette]\n- Added method to change UID (after zmi import by example).\n [sgeulette]\n- Added Link and Unlink in ckeditor config to configure correctly messagesviewlet\n [sgeulette]\n\n1.8 (2016-11-24)\n----------------\n\n- configure_ckeditor : added buttons 'FontSize', 'NbSpace' and 'NbHyphen' and\n removed button 'Blockquote', from the default CKeditor custom toolbar used\n for 'plonemeeting'.\n [gbastien]\n- resources_order : function to list resources and output order.\n [sgeulette]\n- configure_ckeditor : disable tinymce resources.\n [sgeulette]\n- load_site : load site during specified time\n [sgeulette]\n- objects_stats : output as csv\n [sgeulette]\n- fileSize : force format\n [sgeulette]\n- dv_conversion : function to list documentviewer stats or do conversion\n [sgeulette]\n- dv_images_size : return documentviewer blobs information\n [sgeulette]\n- remove_empty_related_items : remove broken related items\n [bsuttor]\n- creators : change recursively creators\n [sgeulette]\n\n1.7 (2016-02-16)\n----------------\n\n- configure_ckeditor : added buttons 'Link', 'Unlink' and 'Image' to the\n default CKeditor custom toolbar used for 'plonemeeting'.\n [gbastien]\n\n1.6 (2015-11-24)\n----------------\n\n- configure_ckeditor: added ged config, added scayt activation\n [sgeulette]\n- list_users: output users without group\n [sgeulette]\n- Added method to update version in portal_quickinstaller.\n [sgeulette]\n- Added safe_encode method. Improved list_users\n [sgeulette]\n- Updated listInstallableProducts for Plone 4.3.4 and Plone 4.3.7\n [sgeulette]\n- Added method \"list_objects\" to view all objects path for specific type\n [boulch]\n\n1.5 (2015-04-21)\n----------------\n\n- Added check_users method to check email validity.\n [sgeulette]\n\n\n1.4 (2015-03-20)\n----------------\n\n- Added try except to avoid plone 4.3.3 to 4.3.4 migration error.\n [sgeulette]\n\n\n1.3 (2015-02-24)\n----------------\n\n- Added method to clear and rebuild zc.relation.catalog\n [sgeulette]\n- Added method to display portal types used in site\n [sgeulette]\n- Added method to reset passwords\n [sgeulette]\n- Modified user & group listing\n [sgeulette]\n- Modified user properties export information\n [sgeulette]\n- Added method to move or copy objects\n [sgeulette]\n- Adapted CKEditor toolbar for PloneMeeting\n [gbastien]\n\n\n1.2 (2014-09-01)\n----------------\n\n- Plone 4 compatibility Plone version detection\n [sgeulette]\n- Corrected and improved views listing method\n [sgeulette]\n- Improved users and groups migration method\n [sgeulette]\n\n\n1.1 (2014-03-18)\n----------------\n\n- Added utils module.\n [sgeulette]\n\n\n1.0 (2014-03-10)\n----------------\n\n- First release.\n [sgeulette]",
"bugtrack_url": null,
"license": "GPL",
"summary": "Some plone utilities as external methods, monkey patches, etc.",
"version": "1.25",
"project_urls": {
"Homepage": "http://pypi.python.org/pypi/Products.CPUtils"
},
"split_keywords": [
"plone",
"imio",
"utils"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f024980dac98f7cf4f012c5a5f0f0bd31dcc6b21bff7ef29e04a3e907c982744",
"md5": "1321279687c24fff2ce253063e25b67e",
"sha256": "6b08f1ee40fb0409300e8ccc6661b3e59d94bd9a3b67bdf0ebea2d201569eb86"
},
"downloads": -1,
"filename": "Products.CPUtils-1.25.tar.gz",
"has_sig": false,
"md5_digest": "1321279687c24fff2ce253063e25b67e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 98184,
"upload_time": "2024-04-10T07:11:00",
"upload_time_iso_8601": "2024-04-10T07:11:00.522918Z",
"url": "https://files.pythonhosted.org/packages/f0/24/980dac98f7cf4f012c5a5f0f0bd31dcc6b21bff7ef29e04a3e907c982744/Products.CPUtils-1.25.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-10 07:11:00",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "products.cputils"
}