Questions tagged [zope]

Zope is an open source application server written in the Python programming language. It features a transactional object database (ZODB) which can store not only content and custom data, but also dynamic HTML templates, scripts, a search engine, and relational database (RDBMS) connections and code. It features a strong through-the-web development model, allowing you to update your web site from anywhere made possible by a tightly integrated security model.

It features a transactional object database () which can store not only content and custom data, but also dynamic HTML templates, scripts, a search engine, and relational database (RDBMS) connections and code.

It features a strong through-the-web development model, allowing you to update your web site from anywhere made possible by a tightly integrated security model.

Zope has been around for a long time; it saw it's first release in 1998. It was long regarded as the "killer app" of python, and many ideas and libraries that are now part of the Python core stem from Zope.

736 questions
8
votes
2 answers

SQLAlchemy, Serializable transactions isolation and retries in idiomatic Python way

PostgreSQL and SQL defines a Serializable transaction isolation level. If you isolate transactions to this level, conflicting concurrent transactions abort and need retrying. I am familiar with the concept of transaction retries from Plone / Zope…
Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435
8
votes
3 answers

What is the best way to convert a zope DateTime object into Python datetime object?

I need to convert a zope 2 DateTime object into a Python datetime object. What is the best way to do that? Thanks, Erika
8
votes
7 answers

Get stacktrace from stuck python process that does not accept signals

I have to run a legacy Zope2 website and have some grievance with it. The biggest issue is that, occasionally, it just locks up, running at 100% CPU load and not answering to requests anymore. While the problem isn't reproducible on a regular basis,…
Benjamin Wohlwend
  • 30,958
  • 11
  • 90
  • 100
8
votes
6 answers

Understanding Zope internals, from Django eyes

I am a newbie to zope and I previously worked on Django for about 2.5 years. So when I first jumped into Zope(v2) (only because my new company is using it since 7 years), I faced these questions. Please help me in understanding them. What is the…
Nanda Kishore
  • 2,789
  • 5
  • 38
  • 61
8
votes
1 answer

What are the valid conditions for zcml:condition?

ZCML can include conditional directives of the form (conditional configuration directives) What is the expression syntax for condition? Is 'or' allowed?
joeforker
  • 40,459
  • 37
  • 151
  • 246
7
votes
3 answers

Plone - Best practice on where to store image and file attachments in pages?

We are building an Intranet website using Plone 4.1.3 and would like to know if there is a Plone best practice on storing the files and images that are attached to pages. Our Intranet is more of a collaborative site where users can post News item…
user1017702
  • 295
  • 3
  • 11
7
votes
2 answers

Where can I find Plone 4.1 wsgi config examples?

While Zope 2.13 have native wsgi support, I haven't been able to find any documentation/deployment tutorial/article/blog yet. Would anyone point/post a working example ?
quyetnd
  • 589
  • 3
  • 8
7
votes
1 answer

How to add a css class to a z3c.form button

I want to add the css class allowMultiSubmit to a zrc.form button to avoid multi-submit alert. The button is defined like this: from z3c.form import form from plone.app.z3cform.layout import wrap_form class MyForm(form.Form): ... …
Giacomo Spettoli
  • 4,476
  • 1
  • 16
  • 24
7
votes
2 answers

Is it necessary to keep data.fs.old after packing?

My data.fs was 500 MB, so I packed it then backed it up, resulting in 100 MB. My hosting account is only 500 MB, so I am wondering if it is safe to delete data.fs.old (500 MB)?
Adrian Garner
  • 5,235
  • 2
  • 23
  • 29
7
votes
3 answers

ComponentLookupError when querying the Registry at startup time

I'm building an app that queries some data in an external relational database, using collective.lead (trunk). The user can modify the database connection settings in a custom Plone control panel tool (I followed the example in Aspeli's Professional…
Rigel Di Scala
  • 3,150
  • 2
  • 17
  • 23
7
votes
4 answers

Error notification on plone 4

I just want to have email notification when an error is declared in plone 4. Any ideas of product or any "how-to" ? Thanks
bklups
  • 101
  • 1
7
votes
3 answers

Limiting one Content item per Member in a Folder on Plone 4

I have created a custom Archetypes content type called "Résumé" and would like to enforce a limitation that lets a Member add only one item of this type inside a folder. Even better would be redirecting the member to the edit page of his or her…
Rigel Di Scala
  • 3,150
  • 2
  • 17
  • 23
7
votes
1 answer

TypeError: expected string or Unicode object, NoneType found - Multiprocessing Pool not working in Zope/Plone external methods

I'm using Zope - 2.13.19 Python - 2.6.8 The below piece of code works when run manually but not when in External method. It throws the following error. Am I doing something conceptually wrong ? Exception in thread Thread-3: Traceback (most recent…
Ravi
  • 2,472
  • 3
  • 20
  • 26
7
votes
4 answers

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…
rjmunro
  • 27,203
  • 20
  • 110
  • 132
7
votes
2 answers

How to get rid of ConflictError on ZEO workers?

Looking at my ZEO workers I get to see quite a lot of: 2013-10-18T11:59:54 INFO ZPublisher.Conflict ConflictError at /VirtualHostBase/http/www.domain.com:80/Plone/VirtualHostRoot/: database conflict error (oid 0x533cd5,…
gforcada
  • 2,498
  • 17
  • 26
1
2
3
49 50