Ticket #231 (closed defect: fixed)
Need to enable user folders by default
| Reported by: | vik | Owned by: | vik |
|---|---|---|---|
| Priority: | major | Milestone: | 0.3alpha - Plumi to Plone 3 |
| Component: | plone3 | Keywords: | |
| Cc: | Who will test this: |
Description
plone 3 doesn't enable user folders by default (plonesite/Members/username); these need to be enabled in Site Setup->Security Settings. Need to enable this in the plumi product.
Attachments
Change History
comment:2 Changed 3 years ago by vik
- Status changed from new to assigned
Enabling user folders works, but currently the Content Licensing add-on breaks being able to view the user folder.
User folders can be enabled in code by adding to near end of src/plumi.app/plumi/app/profiles/default/actions.xml :
<object name="user" meta_type="CMF Action Category">
<property name="title"></property> <object name="mystuff" meta_type="CMF Action" i18n:domain="plone">
<property name="visible">True</property>
</object>
</object>
comment:3 Changed 3 years ago by vik
- Status changed from assigned to closed
- Resolution set to ready for testing
Added above code to svn:
Creating new ticket with ContentLicensing issue.
comment:4 Changed 3 years ago by vik
Content licensing add-in problem has disappeared. It first occurred after installing the site, including the content-licensing add-in, then enabling user folders. Viewing a user folder would create the error message shown below. I disabled the content licensing add-in, then enabled user folders and they started working. Then I re-enabled the content licensing add-in, and user folders still work. The problem may recur.
Plone Error Log follows: Time
May 22, 2009 01:01 PM
User Name
vik (vik)
Request URL
Exception Type
Exception Value
(<InterfaceClass? Products.ContentLicensing.utilities.interfaces.IContentLicensingUtility>, )
Traceback (innermost last):
- Module ZPublisher.Publish, line 119, in publish
- Module ZPublisher.mapply, line 88, in mapply
- Module ZPublisher.Publish, line 42, in call_object
- Module Shared.DC.Scripts.Bindings, line 313, in call
- Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
- Module Products.CMFCore.FSPageTemplate, line 216, in _exec
- Module Products.CMFCore.FSPageTemplate, line 155, in pt_render
- Module Products.PageTemplates.PageTemplate?, line 98, in pt_render
- Module zope.pagetemplate.pagetemplate, line 117, in pt_render
- Module zope.tal.talinterpreter, line 271, in call
- Module zope.tal.talinterpreter, line 346, in interpret
- Module zope.tal.talinterpreter, line 891, in do_useMacro
- Module zope.tal.talinterpreter, line 346, in interpret
- Module zope.tal.talinterpreter, line 536, in do_optTag_tal
- Module zope.tal.talinterpreter, line 521, in do_optTag
- Module zope.tal.talinterpreter, line 516, in no_tag
- Module zope.tal.talinterpreter, line 346, in interpret
- Module zope.tal.talinterpreter, line 957, in do_defineSlot
- Module zope.tal.talinterpreter, line 346, in interpret
- Module zope.tal.talinterpreter, line 536, in do_optTag_tal
- Module zope.tal.talinterpreter, line 521, in do_optTag
- Module zope.tal.talinterpreter, line 516, in no_tag
- Module zope.tal.talinterpreter, line 346, in interpret
- Module zope.tal.talinterpreter, line 861, in do_defineMacro
- Module zope.tal.talinterpreter, line 346, in interpret
- Module zope.tal.talinterpreter, line 957, in do_defineSlot
- Module zope.tal.talinterpreter, line 346, in interpret
- Module zope.tal.talinterpreter, line 536, in do_optTag_tal
- Module zope.tal.talinterpreter, line 521, in do_optTag
- Module zope.tal.talinterpreter, line 516, in no_tag
- Module zope.tal.talinterpreter, line 346, in interpret
- Module zope.tal.talinterpreter, line 949, in do_defineSlot
- Module zope.tal.talinterpreter, line 346, in interpret
- Module zope.tal.talinterpreter, line 861, in do_defineMacro
- Module zope.tal.talinterpreter, line 346, in interpret
- Module zope.tal.talinterpreter, line 536, in do_optTag_tal
- Module zope.tal.talinterpreter, line 521, in do_optTag
- Module zope.tal.talinterpreter, line 516, in no_tag
- Module zope.tal.talinterpreter, line 346, in interpret
- Module zope.tal.talinterpreter, line 534, in do_optTag_tal
- Module zope.tal.talinterpreter, line 516, in no_tag
- Module zope.tal.talinterpreter, line 346, in interpret
- Module zope.tal.talinterpreter, line 745, in do_insertStructure_tal
- Module Products.PageTemplates.Expressions, line 221, in evaluateStructure
- Module zope.tales.tales, line 696, in evaluate URL: file:/home/vik/src/plumi-0.3/parts/plumi/ContentLicensing/skins/ContentLicensing/folder_listing.pt Line 178, Column 3 Expression: <PathExpr? standard:u'context/@@copyright_byline_view'> Names:
{'container': <PloneSite? at /plumi>,
'context': <ATFolder at /plumi/Members/vik>, 'default': <object object at 0xb7d8e530>, 'here': <ATFolder at /plumi/Members/vik>, 'loop': {}, 'nothing': None, 'options': {'args': ()}, 'repeat': <Products.PageTemplates.Expressions.SafeMapping? object at 0xf0aef2c>, 'request': <HTTPRequest, URL= http://192.168.1.106:9080/plumi/Members/vik/folder_listing>, 'root': <Application at >, 'template': <FSPageTemplate at /plumi/folder_listing used for /plumi/Members/vik>, 'traverse_subpath': [], 'user': <PloneUser? 'vik'>}
- Module zope.tales.expressions, line 217, in call
- Module Products.PageTemplates.Expressions, line 153, in _eval
- Module zope.tales.expressions, line 124, in _eval
- Module Products.PageTemplates.Expressions, line 80, in boboAwareZopeTraverse
- Module OFS.Traversable, line 301, in restrictedTraverse
- Module OFS.Traversable, line 193, in unrestrictedTraverse traceback_info: ([], '@@copyright_byline_view')
- Module zope.traversing.namespace, line 109, in namespaceLookup
- Module zope.traversing.namespace, line 340, in traverse
- Module zope.component._api, line 114, in queryMultiAdapter
- Module zope.component.registry, line 206, in queryMultiAdapter
- Module zope.interface.adapter, line 482, in queryMultiAdapter
- Module Products.ContentLicensing.browser, line 45, in init
- Module zope.component._api, line 207, in getUtility
ComponentLookupError?: (<InterfaceClass? Products.ContentLicensing.utilities.interfaces.IContentLicensingUtility>, )
Display traceback as text REQUEST form -C cookies ac 'pxET0XGmdDSEg8OsfuKe8olYKF8gdmlr' _ZopeId '88689521A34lOO2cA0Q' lazy items SESSION <bound method SessionDataManager?.getSessionData of <SessionDataManager? at /session_data_manager>> other _oai_cache {251969900: <Products.CMFCore.ActionInformation?.oai instance at 0xf09d72c>} TraversalRequestNameStack? [] LANGUAGE 'en-au' AUTHENTICATED_USER <PloneUser? 'vik'> URL ' http://192.168.1.106:9080/plumi/Members/vik/folder_listing' _pts_is_rtl False SERVER_URL ' http://192.168.1.106:9080' LANGUAGE_TOOL <Products.PloneLanguageTool?.LanguageTool?.LanguageBinding? instance at 0xe0be54c> AUTHENTICATION_PATH 'plumi' traverse_subpath [] _ec_cache {251969900: <Products.PageTemplates.Expressions.ZopeContext? object at 0xf0a63cc>} ac 'pxET0XGmdDSEg8OsfuKe8olYKF8gdmlr' PUBLISHED <FSPageTemplate at /plumi/folder_listing used for /plumi/Members/vik> ACTUAL_URL ' http://192.168.1.106:9080/plumi/Members/vik' URL0 http://192.168.1.106:9080/plumi/Members/vik/folder_listing URL1 http://192.168.1.106:9080/plumi/Members/vik URL2 http://192.168.1.106:9080/plumi/Members URL3 http://192.168.1.106:9080/plumi URL4 http://192.168.1.106:9080 BASE0 http://192.168.1.106:9080 BASE1 http://192.168.1.106:9080 BASE2 http://192.168.1.106:9080/plumi BASE3 http://192.168.1.106:9080/plumi/Members BASE4 http://192.168.1.106:9080/plumi/Members/vik BASE5 http://192.168.1.106:9080/plumi/Members/vik/folder_listing environ HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' HTTP_ACCEPT_CHARSET 'ISO-8859-1,utf-8;q=0.7,*;q=0.7' HTTP_USER_AGENT 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10' HTTP_REFERER ' http://192.168.1.106:9080/plumi/' SERVER_NAME '0.0.0.0' GATEWAY_INTERFACE 'CGI/1.1' channel.creation_time 1243011664 SERVER_SOFTWARE 'Zope/(Zope 2.10.7-final, python 2.4.5, linux2) ZServer/1.1 Plone/3.3rc2' REMOTE_ADDR '192.168.1.103' HTTP_ACCEPT_LANGUAGE 'en-us,en;q=0.5' SCRIPT_NAME REQUEST_METHOD 'GET' HTTP_HOST '192.168.1.106:9080' HTTP_KEEP_ALIVE '300' SERVER_PORT '9080' SERVER_PROTOCOL 'HTTP/1.1' PATH_TRANSLATED '/plumi/Members/vik' CONNECTION_TYPE 'keep-alive' HTTP_ACCEPT_ENCODING 'gzip,deflate' HTTP_COOKIE '_ZopeId="88689521A34lOO2cA0Q"; ac="pxET0XGmdDSEg8OsfuKe8olYKF8gdmlr"' PATH_INFO '/plumi/Members/vik'
comment:5 Changed 3 years ago by andycat
- Status changed from closed to reopened
- Resolution ready for testing deleted
The code mentioned above seems to be code that enables portal_actions to display a link for the user to their folder, not actually enabling the option "Enable Users Folders" in site security.
eg go to your-site/@@security-controlpanel and "Enable User Folders" If selected, home folders where users can create content will be created when they log in.
is still unchecked, even after creating a new plumi site with this new code
