plone

circular import references from zope schemas

主宰稳场 提交于 2019-12-02 06:37:44
问题 i'm having a problem very similar to this SO question, but my attempts to apply these previous answers isn't going thru and it was suggested i start it as a new question: in the code below i define a couple of getChoices() functions that i thought would defer the circular refs, but no!? what's wrong here, please? # ns.content/ns/content/foo.py from zope import schema from plone.directives import form from z3c.relationfield.schema import Relation, RelationChoice from plone.formwidget

circular import references from zope schemas

好久不见. 提交于 2019-12-02 06:26:36
i'm having a problem very similar to this SO question , but my attempts to apply these previous answers isn't going thru and it was suggested i start it as a new question: in the code below i define a couple of getChoices() functions that i thought would defer the circular refs, but no!? what's wrong here, please? # ns.content/ns/content/foo.py from zope import schema from plone.directives import form from z3c.relationfield.schema import Relation, RelationChoice from plone.formwidget.contenttree import ObjPathSourceBinder class IFoo(form.Schema): def getBarChoices(): # avoiding circular refs..

Plone with Apache Proxy

丶灬走出姿态 提交于 2019-12-02 05:34:01
I have a plone zinstance set up through Apache Proxy on OS X Server 10.5. The server is set up with a single vhost on port 80, with Proxy & Proxypass directives to the Plone zinstance: ProxyPass / http://localhost:8080/VirtualHostBase/http/server:80/Plone/VirtualHostRoot/ ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/server:80/Plone/VirtualHostRoot/ However, I have some static HTML and PHP content that I want to display in an iframe via the plone site. I'm thinking I'll need to set up another vhost on a different port, then just specify the port # inline? Set up a static URL

How to clean up old interfaces on zc.relation catalog?

瘦欲@ 提交于 2019-12-02 03:36:12
问题 I was using plone.directives.form version 1.0 with Plone 4.2.5 and after upgrading to 4.2.6 I started seeing the following traceback and I guess its due to plone.directives.form being upgraded to version 1.1. How can I avoid this error? The only line of code that is not from default Plone on the traceback is on der.freitag.handlers where it does a transaction.commit() and the content type is just a regular dexterity content type. 1385740390.020.496977141203 http://10.100.0.207:8081/website

Python script to hide ploneformgen form after user has filled it out. (For Plone-4.3.2-64.)

浪子不回头ぞ 提交于 2019-12-02 03:35:13
After a user has filled out a (ploneformgen) form , I would like to use a custom script adapter to call a python script to change the user’s local role so that they can’t see the form anymore. In other words, I want to prevent the user from filling out (or viewing) the form twice. I figured that one way to do this is to call the script permission_changer.py which is located in the form folder. The code I have in that script is this: container.manage_delLocalRoles((‘bob',)) container.reindexObjectSecurity() Where ‘bob’ is just an example user, who has only the global role FormFiller (which I

Control access on future content

China☆狼群 提交于 2019-12-02 02:23:56
问题 this is mostly about public content timed on the future, but not only. In a standard Plone site if you create a top-level content is not shown on the navigation (is still private), then you make it public (via workflow) and it shows up on the navigation, but later you time it in the future and again it disappears from the navigation. Still, at that point, if an anonymous/logged-in user knows the URL they will be able to see the content. In our case, a newspaper, we not only have that (content

What's the modern way to solve Plone deadlock issues?

痴心易碎 提交于 2019-12-02 01:43:11
I currently have a Plone 4.3.8 site where editing a portlet causes a deadlock. I'm trying to find tools to fix this, but most deadlock tools don't work & I'm not getting good information (IMO) from those that at least run. I've tried: z3c.deadlockdebugger => can't get to a stacktrace ZopeHealthWatcher => can't see the results on command line (or webpage) Products.LongRequestLogger => perhaps the best so far, gives me some log output - but it's stack traces focus on Diazo code, but the problem still occurs when Diazo isn't in scope (running against 127.0.0.1) gdb attach - just landed me in C

Control access on future content

筅森魡賤 提交于 2019-12-02 01:41:17
this is mostly about public content timed on the future, but not only. In a standard Plone site if you create a top-level content is not shown on the navigation (is still private), then you make it public (via workflow) and it shows up on the navigation, but later you time it in the future and again it disappears from the navigation. Still, at that point, if an anonymous/logged-in user knows the URL they will be able to see the content. In our case, a newspaper, we not only have that (content timed to the future) but we also have different roles of users which need or don't have to see that

How to clean up old interfaces on zc.relation catalog?

徘徊边缘 提交于 2019-12-02 00:22:50
I was using plone.directives.form version 1.0 with Plone 4.2.5 and after upgrading to 4.2.6 I started seeing the following traceback and I guess its due to plone.directives.form being upgraded to version 1.1. How can I avoid this error? The only line of code that is not from default Plone on the traceback is on der.freitag.handlers where it does a transaction.commit() and the content type is just a regular dexterity content type. 1385740390.020.496977141203 http://10.100.0.207:8081/website/front-page/atomkraft/++add++der.freitag.customizablearticlelink Traceback (innermost last): Module

Unable to use Diazo (plone.app.theming) on Centos

人盡茶涼 提交于 2019-12-01 21:06:49
问题 I made a webportal on my mac using plone4.1 and Diazo. Now, I'm trying to deploy it on my server (CentOs) where there is yet another site with plone4.0.5 + collectivexdv. When I run the site (in a brand new buildout) with my diazotheme I obtain this lines via shell (instance fg): 2011-09-27 09:32:10 ERROR plone.transformchain Unexpected error whilst trying to apply transform chain Traceback (most recent call last): File "/home/plone/.buildout/eggs/plone.transformchain-1.0-py2.6.egg/plone