plone

How to create a Plone 4 group who's sole purpose is to manage users?

怎甘沉沦 提交于 2020-01-04 09:10:08
问题 I'm trying to set up a Plone group ( Plone 4.0.7 ) that will be responsible purely for creating and amending users. I don't want them to have full admin access to the site, purely to the Users and Groups functionality. I have created a role in my.package/profiles/default/rolemap.xml like so: <role name="Maintain Users" /> and then added a permission thus: <permission name="Manage users" acquire="false"> <role name="Maintain Users" /> <role name="Manager" /> </permission> In my.package

How to create a Plone 4 group who's sole purpose is to manage users?

本秂侑毒 提交于 2020-01-04 09:08:07
问题 I'm trying to set up a Plone group ( Plone 4.0.7 ) that will be responsible purely for creating and amending users. I don't want them to have full admin access to the site, purely to the Users and Groups functionality. I have created a role in my.package/profiles/default/rolemap.xml like so: <role name="Maintain Users" /> and then added a permission thus: <permission name="Manage users" acquire="false"> <role name="Maintain Users" /> <role name="Manager" /> </permission> In my.package

Make Plone give proper 403 Forbidden errors

五迷三道 提交于 2020-01-04 02:43:24
问题 Default Plone behavior is to display login box when the user tries to access content for which he or she does not have permission. How to change this behavior so that instead and Unauthorized page is displayed? How to customize this unauthorized page to have custom texts. etc? 回答1: Customize this template: Products.CMFPlone/Products/CMFPlone/skins/plone_login/require_login.py , either via "old style" skin customization or "new style" jbot customization: http://pypi.python.org/pypi/z3c.jbot

“Unhandled exception in thread started by Error in sys.excepthook” during relstorage zodb pack

和自甴很熟 提交于 2020-01-02 18:38:48
问题 We have a reasonably large Plone instance running on its own mount point. The ZMI interface lists the size of the database as 7101.4M. We run a weekly pack of the database using the Relstorage zodbpack.py script, removing objects older than 7 days. The last two weeks the cron job that runs the pack has output the following: Sun Jun 26 07:00:38 BST 2011 packing cms mount /home/zope/home/parts/zope2/lib/python/zope/configuration/xmlconfig.py:323: DeprecationWarning: zope.app.annotation has

Plone Content Type-Specific Portlet Assignment

情到浓时终转凉″ 提交于 2020-01-02 04:34:10
问题 I'm developing a content type for Plone 4, and I'd like to block all user, group, and context portlets it may inherit from its parent object. I'm thoroughly confused by the documentation at this point–in portlets.xml, <blacklist/> only seems to address path-specific blocking. <assignment/> seems like what I want, but it seems too specific–I don't want to manage the assignment for all possible portlets on my content type. There are hints that I've found that customizing an ILeftColumn and

How would you determine where each property and method of a Python class is defined?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-30 10:30:24
问题 Given an instance of some class in Python, it would be useful to be able to determine which line of source code defined each method and property (e.g. to implement 1). For example, given a module ab.py class A(object): z = 1 q = 2 def y(self): pass def x(self): pass class B(A): q = 4 def x(self): pass def w(self): pass define a function whither(class_, attribute) returning a tuple containing the filename, class, and line in the source code that defined or subclassed attribute . This means the

Backing up (and restoring) a Plone instance

旧城冷巷雨未停 提交于 2019-12-29 09:19:41
问题 I have a Plone installation in my home directory under Linux. ~/Plone . This was made from a default distribution of Plone from its website. So Plone compiled own python and is bundeled with Zope. Please tell me, which files are necessary to backup if I want to: 1) Backup the whole data ever stored in my Plone instance; 2a) Restore the backed-up data in a same version of Plone, but located elsewhere. 2b) Restore the backed-up data in a (slightly) newer version of Plone. I thought, maybe it's

Plone 4.3 default editor isn't showing up

雨燕双飞 提交于 2019-12-29 09:13:46
问题 I have a Plone 4.3 site that was a migration from a Plone 2.5 site. It had been working fine, but for some reason the default editor that shows up when editing any page or content item is the straight HTML view. I've tested it in Firefox, Chrome, and Safari — all shows up the same. The drop down menu above the editing box shows these options: I've also tried switching the "Default editor" both in the Site setup > Editing Control Panel and also through the ZMI > portal_properties > site

How to set the sharing rights of a folder in Plone?

自作多情 提交于 2019-12-29 09:03:19
问题 I want to set sharing rights of many folders by using a Python script in a Plone site. 回答1: You need to look at the AccessControl/rolemanager.py module for details; the sharing tab in Plone is a friendly wrapper around that API. To add roles for a given userid, call manage_addLocalRoles: context.manage_addLocalRoles('userid', ('Role1', 'Role2',)) The other two important methods are manage_setLocalRoles(userid, roles) (replace the current set of roles completely) and manage_delLocalRoles

How to set the sharing rights of a folder in Plone?

人盡茶涼 提交于 2019-12-29 09:02:54
问题 I want to set sharing rights of many folders by using a Python script in a Plone site. 回答1: You need to look at the AccessControl/rolemanager.py module for details; the sharing tab in Plone is a friendly wrapper around that API. To add roles for a given userid, call manage_addLocalRoles: context.manage_addLocalRoles('userid', ('Role1', 'Role2',)) The other two important methods are manage_setLocalRoles(userid, roles) (replace the current set of roles completely) and manage_delLocalRoles