plone

Upgrade failed - Plone 4.3.7 to Plone 5.0

寵の児 提交于 2019-12-10 03:36:11
问题 I'm trying to upgrade Plone 4.3.7 to Plone 5.0 via the portal_migration tool, and encounter the following error. Any thoughts? This is simple site (no add-ons), but it dates back to Plone 2.x, so there may be some old crud left that I've forgotten about. Output of UPGRADE tool: Dry run selected. Starting the migration from version: 4311 Ran upgrade step: Miscellaneous Role / permission map imported. Archetype tool imported. Step languagetool has an invalid import handler Step kupu-setup has

Migrating Archetype news items to Dexterity content types

*爱你&永不变心* 提交于 2019-12-09 18:25:44
问题 I'm trying to copy the content in news items to other content type that I wrote. In my script I have the news item and the project item. The second, project , is a content type defined using Dexterity. It would be wonderful if I could to copy the image and the body text from news to project in the next way. project.text = news.text project.image = news.image Where text and image are defined in the project schema as RichText and NamedBlobImage. I don't know how the attributes are in the news

Invalidate/prevent memoize with plone.memoize.ram

≯℡__Kan透↙ 提交于 2019-12-09 13:05:39
问题 I've and Zope utility with a method that perform network processes. As the result of the is valid for a while, I'm using plone.memoize.ram to cache the result. MyClass(object): @cache(cache_key) def do_auth(self, adapter, data): # performing expensive network process here ...and the cache function: def cache_key(method, utility, data): return time() // 60 * 60)) But I want to prevent the memoization to take place when the do_auth call returns empty results (or raise network errors). Looking

Plone & CGI single-sign-on using mod_auth_tkt

不羁岁月 提交于 2019-12-09 06:44:25
问题 A couple of questions have had answers suggesting making use of mod_auth_tkt to allow Plone 4 (Plone and Asp.Net Integration, Use Plone's authentication mechanism to login to other sites.) to authenticate other web applications, and since I have a couple of CGIs that already jump through hoops to authenticate via Plone, this seems ideal for my purpose. However, I can't seem to find much documentation about using mod_auth_tkt in general, and absolutely none about using it with Plone. I have

Plone - Best practice on where to store image and file attachments in pages?

☆樱花仙子☆ 提交于 2019-12-08 19:17:48
问题 We are building an Intranet website using Plone 4.1.3 and would like to know if there is a Plone best practice on storing the files and images that are attached to pages. Our Intranet is more of a collaborative site where users can post News item and other articles. So users will be inserting images (using TinyMCE's insert/edit Image) and attaching files to pages. Question: where should we ask the users to upload the images and files to? Should we let users upload images and files to the same

Where is the main space used up in Plone file upload?

懵懂的女人 提交于 2019-12-08 02:08:29
问题 In plone I have uploaded only 800 GB of data (mainly pdfs), it has occupied already 2 TB of hard disk space. Where exactly is the space being used up? I am using collective.documentviewer with its default settings. and plone 4.3. Are files stored by documentviewer changed to various image sizes ie Thumbnail, large image etc and stored in the blobstorage folder? 回答1: With collective.documentviewer, space is nearly doubled(or more) for every PDF. In order for collective.documentviewer to do

According to german BSI, Plone does not use secure cookies OOTB. How do I change that?

梦想的初衷 提交于 2019-12-08 02:01:36
问题 The BSI has published a Security Analysis of various CMS Systems. Plone was quite successful, but got negative points for OOTB security functionality. Namely, no HTTPS by default and no secure cookies for Authentication OOTB. How can I change to secure cookies. 回答1: Yes, it can be done: Given the prerequisite of using Plone over HTTPS, the following extra settings can be used for the cookie: 'HttpOnly' and 'Secure'. The easiest method to do this with the least impact is using the Apache mod

Openshift plone quickstart permission denied

泄露秘密 提交于 2019-12-08 01:57:31
问题 I'm trying to set up plone on openshift using this guide, on windows. I've got git and rhc following the openshift quickstart guide. However, when I get to git pull -s recursive -X theirs upstream master in the plone guide, I get a permission denied error: The authenticity of host 'github.com (192.30.252.130)' can't be established. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added

Plone 4 dexterity viewform - add css Class to widget in fieldset X

梦想的初衷 提交于 2019-12-08 01:55:15
问题 I have a dexterity based content type with different edit views and fieldsets defined in the schema. Whenever I want to update a widget/field in another than the first fieldset, it gets crumpy. For example: self.groups[0].fields['my_field'].mode = HIDDEN_MODE must be used to hide my_field from the 2nd fieldset. To make the same field required self.schema['my_field'].required = True does the trick. But how can I add a css class to a widget on another than the first fieldset? I mean, what self

How to restrict image file extension on Plone?

时间秒杀一切 提交于 2019-12-08 01:30:27
问题 I have a Plone application in which I can upload images, which are ATImages. I want to validate the extension file (mainly to forbid pdf files). There are created with a url call like http://blablba.com/createObject?type_name=Image I have tried setting the /content_type_registry with file extensions associated with images, with no success (pdf upload still work) I guess I could write a new class extending ATImages, create a form with a validator, but it looks a little bit complicated and it