{ "info": { "author": "Syslab.com GmbH", "author_email": "info@syslab.com", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Framework :: Zope2", "Framework :: Zope3", "License :: OSI Approved :: European Union Public Licence 1.1 (EUPL 1.1)", "License :: OSI Approved :: GNU General Public License (GPL)", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "slc.quickchange\n***************\n\n.. contents::\n\n.. Note!\n -----\n\n - code repository\n - questions/comments feedback mail\n\n\n- Code repository: https://svn.syslab.com/svn/syslabcom/slc.quickchange/\n- Questions and comments to info (at) syslab (dot) com\n\nSearch and Replace for Plone\n============================\n\nThis package adds a view @@search-replace, that lets the user perform search\n& replace operations. Available options:\n\n- Recursive: If selected, not only the current object, but all children are searched as well\n- For all languages: search not only the current object, but all translations of it as well\n (LinguaPlone is required)\n- Use regular expression syntax: don't perform literal string matching, but use python's regex\n- Ignore case: case insensitive search (only for regex)\n- Dotall: search multiple lines (only for regex)\n\nAnd there are two actions:\n\n- Search only: will list all matching documents found, nothing gets modified\n- Replace: do the actual replacement\n\nExamples for regex\n------------------\n\nImagine you have to change URLs that point to an old domain. Plus, the site\nstructure has changed, so you need to re-order the elements of the path.\n\nOld link::\n\n http://osha.eu.int/publications/factsheets/de/index.html\n\nFor the new link, we need to change the domain, and also put the language-folder as first element::\n\n http://osha.europa.eu/de/publications/factsheets/index.html\n\nFor the search term, we use::\n\n osha.eu.int/(.*?)/(..)/(.*)\n\nThe contents of the brackets are availabe as variables in the order of their appearance, like \\1, \\2 etc.\n\nFor the replacement term, we use::\n\n osha.europa.eu/\\2/\\1/\\3\n\nThat means, as first element after the domain, we take the second bracket (the language folder),\nthen the first, and lastly the third.\n\nInstead of numbers, you can also use named backreferences. This makes sense when a numbered\nbackreference collides with the code of a symbol. Suppose you want to replace the number 12,500\nwith 13,000 and also allow for the fact that other languages may use \".\" as delimiter. The\nregex for search::\n\n 12(\\.|,)500\n\nand replace::\n\n 13\\1000\n\nwill not yield the desired result, since \"\\\\100\" is interpreted as '@'. A named backreference\nprevents this. Example for the search pattern::\n\n 12(?P\\.|,)500\n\nand the corresponding replacement pattern::\n\n 13\\g000\n\nIf in doubt, look at the regex documentation :-)\n\nRequirements and Installation\n=============================\n\nThis package only works and makes sense if you have LinguaPlone installed.\n\nAdd \"slc.quickchange\" to the eggs section of your buildout\nconfiguration. After running buildout and restarting your instance, go to the\nSite Setup -> Add-on Products, choose slc.quickchange and click \"install\".\n\nAn new entry named \"Search and replace\" will then appear in the Actions drop-down\nmenu of all objects.\n\nDisclaimer\n==========\n\nBeware, you can wreak havoc with this tool if you don't know what you're doing. There is no\ndocumentation apart from this little text and the source code...\n\nCredits\n=======\n\nCopyright European Agency for Health and Safety at Work and Syslab.com\nGmbH.\n\nslc.quickchange development was funded by the European Agency for\nHealth and Safety at Work.\n\n\nLicense\n=======\n\nslc.quickchange is licensed under the GNU Lesser Generic Public\nLicense, version 2 or later and EUPL version 1.1 only. The complete\nlicense texts can be found in docs/LICENSE.GPL and docs/LICENSE.EUPL.\n\nChange history\n**************\n\nslc.quickchange Changelog\n=========================\n\n2.0.1 (2012-02-05)\n------------------\n\n- Preserve text_format [thomasw]\n\n2.0 (2012-02-04)\n----------------\n\n- Eliminated old cruft, made it work with Plone 4 [thomasw]\n\n\n1.3 (2011-08-05)\n----------------\n\n- Added EUPL license (deroiste)\n\nslc.quickchange 1.2 (2009-06-17)\n--------------------------------\n\n- First changes to get tests working (gerken)\n\nslc.quickchange 1.1 (2009-05-12)\n--------------------------------\n\n- Packaged egg (pilz)\n\nslc.quickchange 1.0 (2008-03-31)\n--------------------------------\n\n- Initial port\n\nContributors\n************\n\n- Alexander Pilz (Syslab.com GmbH)\n- Wolfgang Thomas (Syslab.com GmbH)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://svn.syslab.com/svn/syslabcom/slc.quickchange/", "keywords": "change batch quickchange search replace regex linguaplone", "license": "GPL + EUPL", "maintainer": null, "maintainer_email": null, "name": "slc.quickchange", "package_url": "https://pypi.org/project/slc.quickchange/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/slc.quickchange/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://svn.syslab.com/svn/syslabcom/slc.quickchange/" }, "release_url": "https://pypi.org/project/slc.quickchange/2.0.1/", "requires_dist": null, "requires_python": null, "summary": "A tool that adds Search and Replace functionality for the content of your objects", "version": "2.0.1" }, "last_serial": 799678, "releases": { "2.0": [ { "comment_text": "", "digests": { "md5": "c5eda31015fa71b9dfba2cc2d0548699", "sha256": "b7e5c544908d2f2ca716d3e8446804f130cd6cc14afc75154dda4b00c8695d95" }, "downloads": -1, "filename": "slc.quickchange-2.0.tar.gz", "has_sig": false, "md5_digest": "c5eda31015fa71b9dfba2cc2d0548699", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21322, "upload_time": "2012-02-04T17:03:58", "url": "https://files.pythonhosted.org/packages/32/20/05ae402675a00a97b7400bfbe239923fb20f88a60fc2813c92e2c4cc83fb/slc.quickchange-2.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "e12438346ac8d21295c45e94e4c7f94f", "sha256": "e77d44468868e81d6bee14f1c6644463cfbc78fc7b5a458835a235de4f1fbca5" }, "downloads": -1, "filename": "slc.quickchange-2.0.1.tar.gz", "has_sig": false, "md5_digest": "e12438346ac8d21295c45e94e4c7f94f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21967, "upload_time": "2012-02-05T17:56:22", "url": "https://files.pythonhosted.org/packages/af/77/f11103456073b7c4f3cd3d5efa48bfa946b8356c21b4a060e0b7b8131666/slc.quickchange-2.0.1.tar.gz" } ], "2.0dev": [] }, "urls": [ { "comment_text": "", "digests": { "md5": "e12438346ac8d21295c45e94e4c7f94f", "sha256": "e77d44468868e81d6bee14f1c6644463cfbc78fc7b5a458835a235de4f1fbca5" }, "downloads": -1, "filename": "slc.quickchange-2.0.1.tar.gz", "has_sig": false, "md5_digest": "e12438346ac8d21295c45e94e4c7f94f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21967, "upload_time": "2012-02-05T17:56:22", "url": "https://files.pythonhosted.org/packages/af/77/f11103456073b7c4f3cd3d5efa48bfa946b8356c21b4a060e0b7b8131666/slc.quickchange-2.0.1.tar.gz" } ] }