plone-4.x

On Plone 4.3.15, how to install latest Stripe's API

不问归期 提交于 2021-01-28 06:50:22
问题 On Plone 4.3.15 (Universal installation), it is not possible to install stripe 2.32.1. See logs : Getting distribution for 'stripe==2.32.1'. /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'project_urls' warnings.warn(msg) /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg)

When I shutdown the Zope server it shows an AttributeError

烈酒焚心 提交于 2020-02-03 10:40:39
问题 I am using Plone 4.3.3 for creating my Plone site but when I shut-down the server it shows the following error. Traceback (most recent call last): File "/Plone/zinstance/parts/instance/bin/interpreter", line 298, in <module> exec(compile(__file__f.read(), __file__, "exec")) File "/Plone/buildout-cache/eggs/Zope2-2.13.22-py2.7.egg/Zope2/Startup/run.py", line 76, in <module> run() File "/Plone/buildout-cache/eggs/Zope2-2.13.22-py2.7.egg/Zope2/Startup/run.py", line 26, in run starter.run() File

My Archetypes-based content type can't be added

末鹿安然 提交于 2020-01-04 12:14:44
问题 I'm developing an add-on package which introduces a few Archetypes-based content types; these are defined in the default profile of that package. After (re-) installing my package in the Quick-Installer, I can see my types in the types tool; but I can't add them TTW, and they are not listed in the folder_constraintypes_form. I did select them in the "Allowed content types" multiselect list of the Folder portal type. Since I got a ValueError from FactoryTypeInformation._getFactoryMethod in an

Plone Intranet workflow and group permissions

做~自己de王妃 提交于 2019-12-24 02:07:25
问题 Now, granted, this may be due to a misunderstanding of the roles/permissions model in Plone, as it's a little different than many systems I've worked with in the past, but here's the situation and where I'm getting stuck. -- Client needs a Plone site (4.3.3) to be restricted to logged-in users only, with the option to make selected content visible to not logged in users. Easy enough, the Intranet workflow suits this purpose, allowing them to publish externally what they wish, and keep the

Only site administrators should be able to set default display view of folders on Plone 4.3

孤人 提交于 2019-12-23 21:30:11
问题 All logged-in members of my plone site have the permission to edit, create and publish content. Unfortunately, they are also able to change the default display view of a folder. This leads to a lot of problems as the site members sometimes - accidentically - change to a view template that a folder is not suitable for. How can I change plone the way that only role administrator is able to set the default view of all folders? Normal site members should not be able. Since I trust my members

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

How do I link the logo to an external site?

本小妞迷上赌 提交于 2019-12-13 05:15:21
问题 I would like to change the link in the Plone logo viewlet. By default it points to the Plone site root, I want to point it to a location that is not within the Plone site. I tried writing a custom logo viewlet, but this seems very complex for such a small change. What is the best way to do this? 回答1: The easiest way to change the Logo link is to override the logo viewlet template. This is best done with z3c.jbot. You need to add z3c.jbot to your projects custom product, by adding it as a

What is externalEditorEnabled do?

本秂侑毒 提交于 2019-12-13 03:47:10
问题 I have key error with externalEditorEnabled. It appears in Products.ATContentTypes. I think it was used Plone4. But I found script at Plone5. Products.CMFPlone-5.0.8-py2.7.egg/Products/CMFPlone/skins/plone_scripts/externalEditorEnabled.py Products.CMFPlone-5.0.8-py2.7.egg/Products/CMFPlone/skins/plone_scripts/external_edit.py 回答1: Goto Plone Skins Tool at /Plone/portal_skins http://0.0.0.0:8086/Plone/portal_skins/manage_skinLayers And add Layers. custom archetypes ATContentTypes cmfeditions

Plone workflow: Publish an object, and all used/referred objects as well

馋奶兔 提交于 2019-12-12 15:43:32
问题 I have a Plone site with Archetypes objects which refer to other objects (by UID). When, say, a news object is published, all image objects which are referred in the text attribute, should automatically be published, too. There are three different kinds of publication - "for all" (visible for anyone), "visible" (for authenticated users), and "restricted" (for members of certain groups). Which one of these is chosen (in the first place) is determined from the type of the objects. The user only