plone

how to use plone as a framework

I am creating a web app that allows people to debate topics. I started prototyping with Django and have a functional app. I have not yet decided on what framework to use. I've read about Plone the app and Plone the framework. I just can't seem to find any online documentation on using Plone as a framework. I'm looking for a tutorial...

How do you grep through code that lives in many different directories?

I'm working on a Python program that makes heavy use of eggs (Plone). That means there are 198 directories full of Python code I might want to search through while debugging. Is there a good way to search only the .py files in only those directories, avoiding unrelated code and large binary files? ...

plone + formlib: how to reference form.pt

I'm working on plone 3.2.1 and I've made a formlib's form with a custom template: from Products.Five.formlib import formbase from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile ... class MyForm(formbase.PageForm): ... template = ViewPageTemplateFile('myform.pt') I want to make a simple change to the stand...

Connecting Zope to Postgres with savepoint support - Alternatives to ZPsycopgDA

Is there a way to get savepoint support in a Zope connection to Postgres? I'm currently using ZPsycopgDA, which doesn't support savepoints, and is also hard to install with buildout. Would switching to something like SQLAlchemyDA make things easier? Background: I've got my users in a postgres database, but when I try look at the histor...

How does one default to current date and time for content publishing?

In this link, http://plone.org/documentation/how-to/set-default-datetimefield-current-date-time it describes how to do this with new Schema attributes. I could update all umpteen content types in our system use this method, but I would prefer something a bit less work intensive, since if I have to change umpteen content types it will be ...

How do I update the version number in a Plone add-on?

Version and installation profile numbering for Plone add-ons has been changing and this is very confusing. What worked in one version of Plone will not necessarily work in other places. ...

Dump stacktraces of all active Threads

Hey Guys, I'm trying to dump a list of all active threads including the current stack of each. I can get a list of all threads using threading.enumerate(), but i can't figure out a way to get to the stack from there. Background: A Zope/Plone app freaks out from time to time, consuming 100% of cpu and needs to be restarted. I have a fe...

How do you get and set cookies in Zope and Plone?

Documentation, and more importantly, some code examples would be very useful. I would prefer this to not be in protected scripts, but in the code that goes into modern packages. ...

After a Plone 2.5x to Plone 3.x migration, how do I correct the kss_generic_macros problem?

I get the error below on several views. Which seems identical to what is described here in this other kss_generic_macros post. An answer is supplied, which is "*This was caused by the 2.5->3.0 migration process failing to add the plone_kss layer to a handful of our custom skins. When I went in and added plone_kss by hand to those skins, ...

Plone issue with versioning - Object's versions lost on cut and paste

Plone 2.5.1 Zope 2.9.5 CMFEditions 1.0rc1 If you create a page in a folder at plonesite root and create a new version of it, once you cut and paste that page to a new location the version will be lost. I've tested this on zope 2.10 and Plone 3.0 and its no longer an issue but I'm interested to see if anyone knows a way to fix this on...

Is there a CMS like Plone but in Grails?

I really like plone as a CMS, but its base is in Python. I would like to know if there is a CMS that has Grails as a base. ...

Safari doesn't set Cookie but IE / FF does.

Hi all, I found a strange cookie problem on safari. If you surf to http://2much.ch you can enter with FF/IE and surf inside the site. But if you use safari, you can enter only once; you can't surf inside the site. I found that Safari doesn't set the entered cookie, but FF/IE does. What is wrong here? ...

How can I update the schema of a single archetype object on demand in plone?

I have hundreds of thousands of objects based on plone archetypes (plone 2.5.X) that need their archetypes schema updated to the latest. The archetype schema migration tool is great for a small/medium number objects but is bringing my server to its knees trying to migrate them all, to the point where I always end up killign the script. ...

Plone navigation with one-language-per-folder site

I am developing a multi-lingual site with Plone. I want to have one language per folder but the Plone navigation UI is causing problems. I have several different folders in my root, such as en, de, nl, etcetera. Inside those folders is the actual content, such as en/news, nl/nieuw, de/nachrichten, etcetera. I have set up Plone Language ...

How to change the "Event" portlet in Plone 3

I am trying to customize the "Event" portlet in Plone 3 that shows the upcoming events. The "view" link in the footer of that portlet goes to the /events URL. But my site is multi-lingual so that URL is not always correct. For example, the correct URL for Dutch events should be /evenementen. In my setup I use one folder per language. /e...

User produced site content, potentially massive dataset - Zope/Plone or Django?

I am looking to produce a site similar to a venue "What's on" site. The plan is that the venues can register an account to the site and then through their own 'admin' section upload/post all their latest events that are on. I am hoping that very large number of venues will sign up and each have a large number of events thus producing a ...

Grant anonymous access to a specific url/action in Plone

I am running Plone 3.2.3 and I have installed HumaineMailman so that the users on the website can subscribe and unsubscribe themselves from our various mailinglists. HumaineMailman works very simple. There is a special URL/action that gives you a plain text list of all e-mail addresses that are subscribed on a list. For example: http://...

Moving a Plone site to Radiant CMS.

I've got a large Plone site that I'm moving to Radiant (I love Plone, but it got unusably slow as the site grew). I need a little help with some of the equivalences. How do I do user permissions, signup, login, etc? I'd love to be able to have content that's: Viewable by anyone (status "Published") Viewable by authenticated users (sta...

How do I modify robots.txt in Plone?

I've got a Plone site that I administer and I'd like to add some pages to the Disallow of a robots.txt. It appears that Plone automatically generates a robots.txt file. I can't find any way to modify that. I've also tried adding a 'robots.txt' file to the root of the app, but it says that "robots.txt is reserved" Does anyone know how t...

Adding a Form Folder with a local role in Plone 3

If I assign a user all available local roles using the sharing tab, they still aren't able to add a Form Folder. How do I work around this? I'm using Plone 3.1.7 and PloneFormGen 1.5.2 ...