plone

What's the modern way to solve Plone deadlock issues?

守給你的承諾、 提交于 2019-12-20 03:14:08
问题 I currently have a Plone 4.3.8 site where editing a portlet causes a deadlock. I'm trying to find tools to fix this, but most deadlock tools don't work & I'm not getting good information (IMO) from those that at least run. I've tried: z3c.deadlockdebugger => can't get to a stacktrace ZopeHealthWatcher => can't see the results on command line (or webpage) Products.LongRequestLogger => perhaps the best so far, gives me some log output - but it's stack traces focus on Diazo code, but the problem

Assign reviewer from different groups at different stages of workflow in Plone

你说的曾经没有我的故事 提交于 2019-12-20 00:59:55
问题 We are implementing Plone as a document management system in a hospital setting. In doing so, the review process asks for two review steps: where nursing staff review a document where physicians review a document The problem arises when we found out that the nurses are grouped based on the types of machinery they handle (specifically types of scanners, ultrasound,...). On these machines they perform all kinds of exams, on all kinds of bodyparts. The physicians on the other hand are grouped

How I order behavior IDublinCore in Dexterity Type?

廉价感情. 提交于 2019-12-19 19:44:35
问题 I'm writing a product using Python Dexterity Type, and I have Title and Description , this fields come from a behavior plone.app.dexterity.behaviors.metadata.IDublinCore , but I neeed reorder this fields with my fields. Example: My fields: document, collage, age, biography IDublinCore: Title, Description The order: collage, Title, document, age, biography, Description How I Do it? 回答1: Since you got your own Dexterity Type you can handle with form directives aka setting taggedValues on the

Render rich text widget manually in plone custom page

半世苍凉 提交于 2019-12-19 11:34:42
问题 I have a custom edit (browser page) for my dexterity content type. In template I have defined a form using Bootstrap and added some Angular JS code for form behavior. It is working. :) I need to replace a simple textarea with rich text widget. So how can I render in my template the rich text widget (one that is normally used in dexterity)? 回答1: If you are using Mockup (not sure if anybody use it on Plone 4) you can find tips there: Obtaining the "default" mockup TinyMCE configuration on Plone

Using git for a project with many, many repos

谁说我不能喝 提交于 2019-12-18 12:15:23
问题 The Plone project consists of 192 different repos: https://github.com/plone/ During development, sometimes 2 or 4 or 10 different repos will need to be touched to fix a bug or implement a feature. It would be great if all these could be branched together and merged together (e.g. a pull request closing issueX containing commits to repo1 , repo2 and repo3 ). Releases require the entire set of repos to be branched and tagged together. Pre-git, a release was defined by a file listing the svn

Disable TinyMCE absolute to relative URL Conversions

点点圈 提交于 2019-12-18 12:12:20
问题 Can anyone tell me how to get TinyMCE to stop converting my URLs to relative links in Plone? For example, if I enter this in the HTML source: <img src="/images/dir/subdir/my_image.png" /> it will convert it to: <img src="../../../my_image.png" /> I've edited tiny_mce.js (in portal_skins) to set: convert_urls:false, relative_urls:false, but to no effect. I've read all similar posts here, but none really answer this question. It's fine if it does the relative thing when users are picking images

Updating plone addons on several sites at once

≯℡__Kan透↙ 提交于 2019-12-14 04:00:01
问题 I have a plone instance containing several plone sites. Whenever I upgrade plone (ex. from 4.2.1 to 4.2.3) there are some addons which need to be updated as well. My own local products need to be updated from time to time as well. I usually go into the zmi quickinstaller folder reinstall them one by one. However having 18 plone sites in this particular plone instance means that now I have to update the addons for every site manually. Is there a product or script which would automate the

Navigation portlet: all childen always expanded

。_饼干妹妹 提交于 2019-12-14 03:53:50
问题 How can I make the navigation portlet show children even for unselected folders? I mean initial tree state is fully expanded (at least for one level, ie: direct children). I'm looking at INavtreeStrategy, SitemapNavtreeStrategy and INavigationQueryBuilder but no insights so far. 回答1: I got it looking at Products/CMFPlone/browser/sitemap.py I just had to use its query builder instead. Here's the code: from Acquisition import aq_inner from zope.component import getMultiAdapter from plone

Plone: Default front page does not have Add New menu

独自空忆成欢 提交于 2019-12-14 02:37:48
问题 We are using Plone 4.2 (but problem applies to earlier versions as well). We have a folder called news containing all our news items, and have a News tab in the navigation to go to the News default . We set the default front page of our site to our News folder, by configuring Zope Management Interface -> Plone site at / -> Properties -> default_page. This works as every time a user first goes to our site or clicks on the Site title at the top of our site, he will see the News default view.

What is the best way to create a Plone private site

為{幸葍}努か 提交于 2019-12-14 01:07:40
问题 I would like to know every solutions and keep only the best one to "close a website to every anonymous user". An anonymous user should only have the login form. Existing ways: using zope security (remove View permission to anonymous on root plonesite) using workflows (changing security mapping of published state) using apache in proxy with http auth Is there other solutions ? What is the best one ? Note: I had an issue when trying using zope security even the login form was not accessible, so