zope

Open source simple CRM database / Social Network site that

Does anyone know of a simple social network type of site that can be easily customised? It should suck, but in the sense the blosxom sucks in this article: http://www.plover.com/blog/oops/blosxom-sux.html I.e. take the "Worse-is-Better" approach, and try to cover most of the main features, more or less, while keeping the implementation...

What are the Zope essentials ?

I started a job where Zope is involved. I know Python and my new Boss think I am going to handle the application server quickly. I had a look to this system and it's obviously very complex, so I'd like to know where to start and to look next; Can somebody gives a step by step way to learn Zope ? For once, I don't need the how, I need ...

How do you programmatically reorder children of an ATFolder subclass?

I have Plone product that uses a custom folder type for containing a set of custom content objects. The folder type was created by subclassing BaseFolder and it has a schema with a couple of text fields. Currently, when custom objects are added to the custom folder, the objects are sorted alphabetically by their id. How can I override...

How to back up a huge file with Bacula?

It currently is 700MB but it's conceivable that it'll grow beyond the 1GB. Normally I just copy this file to another location (for the curious, it's the database of a Zope instance, a ZODB file). This file changes little from day to day, but I understand Bacula can't do inside-the-file subdivision for incremental backups. Anyway, it doe...

What could justify the complexity of Plone?

Plone is very complex. Zope2, Zope3, Five, ZCML, ZODB, ZEO, a whole bunch of acronyms and abbreviations. It's hard to begin and the current state seems to be undecided. It is mainly based on Zope2, but incorporates Zope3 via Five. And there are XML config files everywhere. Does the steep learning curve pay of? Is this complexity still ...

Split HTML after N words in python

Is there any way to split a long string of HTML after N words? Obviously I could use: ' '.join(foo.split(' ')[:n]) to get the first n words of a plain text string, but that might split in the middle of an html tag, and won't produce valid html because it won't close the tags that have been opened. I need to do this in a zope / plone ...

What is the correct way to backup ZODB blobs?

I am using plone.app.blob to store large ZODB objects in a blobstorage directory. This reduces size pressure on Data.fs but I have not been able to find any advice on backing up this data. I am already backing up Data.fs by pointing a network backup tool at a directory of repozo backups. Should I simply point that tool at the blobstorag...

How do I check if it's the homepage in a Plone website using ZPT?

I want to change my website's header only it if's not the homepage. Is there a tal:condition expression for that? I've been reading this and can't find what I'm looking for... thanks! ...

301 redirect in Plone CMS (Zope)

Hi! I'm running a website hosted on Apache and Plone (based on Zope). My problem is that i have duplicate content with following urls: www.site.com www.site.nl/en www.site.com/nl and so on, every page shows the same content. Google Webmaster Tools also reports sites in the following format to be duplicate: www.site.nl/news www.site....

Does anyone know about workflow frameworks/libraries in Python?

I'm searching for a workflow library/framework for Python. I'm astonished that there I cannot find anything which is simple and not attached to Zope/Plone. Does anyone know of an open-source, simple workflow library/framework. It's preferred to support Django, but not required. ...

Convert Zope data to Mysql

How to Convert Zope 2.1 data to Mysql db. Have any way to convert? I want argent please. ...

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...

Exporting a zope folder with python

We have two zope servers running our company's internal site. One is the live site and one is the dev site. I'm working on writing a python script that moves everything from the dev server to the live server. Right now the process involves a bunch of steps that are done in the zope management interface. I need to make all that automa...

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 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. ...

Configure pyflakes to work with Zope's "script (python)" objects on the filesystem

When I run pyflakes on a Zope Filesystem Directory View file (as are found a lot in plone) it always returns lots of warnings that my parameters and special values like 'context' are not defined, which would be true if it were a real python script, but for a Filesystem Directory View script, they are defined by magic comments at the top,...

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...

What's the simplest possible buildout.cfg to install Zope 2?

I know that the reccomended way to install Zope is with Buildout, but I can't seem to find a simple buildout.cfg to install a minimal Zope 2 environment. There are lots to install Plone and other things. I've tried: [buildout] parts = zope [zope] recipe = plone.recipe.zope2install eggs = But I get: An internal error occured due to ...

Why can't I import this Zope component in a Python 2.4 virtualenv?

I'm trying to install Plone 3.3rc4 with plone.app.blob and repoze but nothing I've tried has worked so far. For one attempt I've pip-installed repoze.zope2, Plone, and plone.app.blob into a virtualenv. I have this version of DocumentTemplate in the virtualenv's site-packages directory and I'm trying to get it running in RHEL5. For some ...