Products.CMFPlone | The core of the Plone content management system
kandi X-RAY | Products.CMFPlone Summary
kandi X-RAY | Products.CMFPlone Summary
The core of the Plone content management system
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Sends a test email
- Extracts smtp password field
- Overrides PloneType
- Returns a list of worklists that have the same worklists
- Last modification date
- Update the renderer
- Return a set of all available bundles
- Return a list of all worklists in the workflow
- Returns the chain for the given object
- Called when a email is sent
- Return portal state
- Apply patches
- Wrap update function
- Returns the state map for the current workflow
- Return bundle data
- Handles get username request
- Returns a list of available workflows
- Returns a list of all allowed roles for an object
- Return a dict of all available languages
- Handle a restart action
- Test whether the given properties are valid
- Handle email data
- Returns the chain for the given context
- Returns a list of ActionInfo objects
- Return a list of available profiles
- Install the final import steps
Products.CMFPlone Key Features
Products.CMFPlone Examples and Code Snippets
Community Discussions
Trending Discussions on Products.CMFPlone
QUESTION
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 bin/instance debug
session, I "developed" Products.CMFPlone
(branch 2.2
) and changed the TypesTool.py
like so:
ANSWER
Answered 2017-Oct-01 at 10:19These are the missing parts to make your contenttype addable:
1.) Register the content-directory in MyCompany/MyProduct/configure.zcml
by adding:
2.) Add the file MyCompany/MyProduct/content/configure.zcml
with this content:
QUESTION
I have a Plone site with internationalized content, using Archetypes and LinguaPlone.
Some of my objects (including folders) are language neutral, others are not. For generation of menus and navigation breadcrumbs, I'd like a method which
- returns the untranslated
Title()
, if theLanguage()
is non-empty (because under this condition thetitle
attribute is supposed to match the language), and - returns a translation of the
Title()
otherwise (because the object is used for multiple languages, and I have a small set of affected strings).
I couldn't find any *title*
method in the Products.LinguaPlone
package; pretty_title_or_id
is apparently language-agnostic.
Is there really no such method yet?
(Products.LinguaPlone 4.1.8, Products.CMFPlone 4.3.3, Products.ATContentTypes 2.1.14)
Edit: The affected objects are a limited number of folders (near the site root) whose titles very rarely change; most others have a non-empty Language
(which will cause their Title
not to be translated) or are non-folders (and won't have a known translation, I admit, but in those cases the original title would be used). I could imagine to patch pretty_title_or_id
accordingly, and I wonder about reasons not to do so.
ANSWER
Answered 2017-Jun-14 at 06:56I don't think that's going to work, because navigation menus will look at the index and metadata only, and there's definitely only one Title
column in there, and you definitely don't want to not use the metadata there, for performance reasons.
You could, in theory, patch all templates you need (like the navigation portlet and the breadcrumb viewlet, but to be thorough, you'd need to patch everything that looks at Title
anywhere, ever) to pass all their strings through the translation layer (basically adding i18n:domain="..." i18n:translate=""
), and maintain your translations in a .mo
/.po
language file, but you'll have no way to change them at runtime. My gut feeling would be that that's patching over a conceptual problem with what lang-neutral items can and cannot do.
QUESTION
I'm trying to delete a Plone site I am testing. However, when I delete it, I get an error.
From the console:
...ANSWER
Answered 2017-Mar-27 at 12:31What basically prevents you from deleting your site are the events that are triggered everytime (that run your mentioned troublesome code). To prevent this behavior, I can suggest doing the following:
QUESTION
I just added a new product to my Plone5 buildout and it throws the error below, now even if I comment out all the add-ons, I still get this error, and Plone will not start.
...ANSWER
Answered 2017-Mar-09 at 19:05I re-ran buildout without any add-ons, then re-ran several times, enabling packages one at a time. Not sure how or why, but now it works--even with the slidertemplates packge...still a black box in terms of reasons why the error was thrown in the first place.
QUESTION
I'm trying to show the full name for each news item in a list. For the moment I have only the user id (nickname).
Is there a simple way (in existing .pt file) to show the full name of creator or owner instead of a nickname?
The page must work for anonymous users, too. I mean - the page must be public.
Some details:
...ANSWER
Answered 2017-Feb-17 at 13:59
You are are
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Products.CMFPlone
You can use Products.CMFPlone like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page