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.

715 questions
80
votes
5 answers

Python PIL "IOError: image file truncated" with big images

I think this problem is not Zope-related. Nonetheless I'll explain what I'm trying to do: I'm using a PUT_factory in Zope to upload images to the ZODB per FTP. The uploaded image is saved as a Zope Image inside a newly created container object. This…
Georg Pfolz
  • 1,125
  • 1
  • 10
  • 12
63
votes
1 answer

ZCML allowed_attributes corresponding method in five.grok

Is there a way to mark methods traversable in grok.CodeView classes, like you can do with Zope 3 BrowserView and allowed_attributes ZCML configuration directive? I found docs about grok.traversable() but it looks like such method does not exist in…
Mikko Ohtamaa
  • 69,174
  • 40
  • 208
  • 346
48
votes
1 answer

How to create zebra-stripe CSS with TAL?

How can I use Chameleon or Zope Page Templates to easily create CSS zebra striping? I want to add odd and even classes to each row in a table, but using a condition with repeat/name/odd or repeat/name/even looks rather verbose even with a…
Martijn Pieters
  • 889,049
  • 245
  • 3,507
  • 2,997
35
votes
4 answers

Purpose of Zope Interfaces?

I have started using Zope interfaces in my code, and as of now, they are really only documentation. I use them to specify what attributes the class should possess, explicitly implement them in the appropriate classes and explicitly check for them…
Nikwin
  • 5,926
  • 4
  • 33
  • 41
33
votes
6 answers

Dump stacktraces of all active Threads

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…
Chriss
  • 333
  • 1
  • 3
  • 5
32
votes
3 answers

Sql Alchemy QueuePool limit overflow

I have a Sql Alchemy application that is returning TimeOut: TimeoutError: QueuePool limit of size 5 overflow 10 reached, connection timed out, timeout 30 I read in a different post that this happens when I don't close the session but I don't…
QLands
  • 1,897
  • 5
  • 24
  • 45
21
votes
12 answers

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…
joeforker
  • 36,731
  • 34
  • 138
  • 231
21
votes
4 answers

Multiple versions of Python on OS X Leopard

I currently have multiple versions of Python installed on my Mac, the one that came with it, a version I downloaded recently from python.org, an older version used to run Zope locally and another version that Appengine is using. It's kind of a mess.…
tomvon
  • 4,261
  • 3
  • 20
  • 16
17
votes
7 answers

What is the suggested way to cron-automate ZODB packs for a production Plone instance?

Looking at plone.org to find a way to periodically pack my instance's ZODB I could only find http://plone.org/documentation/faq/how-do-i-pack-the-zodb that doesn't talk about automated packs, but just manually initiated ones. I know I can simulate…
silviot
  • 3,996
  • 4
  • 35
  • 48
13
votes
8 answers

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…
stesch
  • 7,115
  • 6
  • 45
  • 62
12
votes
3 answers

Django vs. Grok / Zope3 vs. Pylons

I am a computer programmer by training but have been away from web development for a while. I am doing a little bit of background research on various Python web development frameworks. I understand that Django, Grok / Zope 3, and Pylons are all…
John Gu
  • 123
  • 1
  • 4
12
votes
2 answers

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.
pydanny
  • 6,873
  • 6
  • 32
  • 41
9
votes
1 answer

how do I get configuration from buildout in my plone products?

How do I include configuration information from Buildout in my Plone products? One of the plone products i'm working on reads and writes info to and from the filesystem. It currently does that inside the egg namespace (for example inside…
Noe Nieto
  • 2,090
  • 2
  • 15
  • 23
8
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
  • 111
  • 1
8
votes
2 answers

UPDATE statement on table xxx' expected to update 1 row(s); 0 were matched with Zope transactionmanager

I am running a Pyramid + Zope transaction manager + SQLAlchemy + PostgreSQL. On some occasions, I have seen StaleDataError error on a Pyramid web application which should very trivial view of updating one row in a database. As the error happens…
Mikko Ohtamaa
  • 69,174
  • 40
  • 208
  • 346
1
2 3
47 48