Skip to content

Instantly share code, notes, and snippets.

@optilude
optilude / login.txt
Created August 11, 2012 22:09
Using robotframework with Plone
*** Settings ***
Documentation A test suite with a single test for valid login. This test has
... a workflow that is created using keywords from the resource file.
Resource resource.txt
*** Test Cases ***
Valid Login
@optilude
optilude / gist:2290187
Created April 3, 2012 07:32
Trying out the theme mapper
Clone the repository in Git:
$ git clone [email protected]:plone/plone.app.theming.git
$ cd plone.app.theming
$ git checkout optilude-ace
Optional: Use plone-devstart to bootstrap
$ curl -O https://raw.github.com/plone/plone-devstart/master/plone-devstart.py
$ python2.6 plone-devstart.py --version=4.1.3
@optilude
optilude / wsgi-zpublisher-events.diff
Created January 1, 2012 19:04
Zope 2.13 patch for WSGI ZPublisher events
diff --git a/src/ZPublisher/WSGIPublisher.py b/src/ZPublisher/WSGIPublisher.py
index 5d5b702..02bf7e2 100644
--- a/src/ZPublisher/WSGIPublisher.py
+++ b/src/ZPublisher/WSGIPublisher.py
@@ -13,6 +13,7 @@
""" Python Object Publisher -- Publish Python objects on web servers
"""
from cStringIO import StringIO
+import sys
import time
Index: src/infrae/wsgi/publisher.py
===================================================================
--- src/infrae/wsgi/publisher.py (revision 49248)
+++ src/infrae/wsgi/publisher.py (working copy)
@@ -19,6 +19,7 @@
from zope.component import queryMultiAdapter
from zope.event import notify
from zope.interface import implements
+from zope.interface import directlyProvides, directlyProvidedBy
from zope.site.hooks import getSite
@optilude
optilude / buildout.cfg
Created January 1, 2012 11:25
Plone 4.1 and Zope 2.13 WSGI setup
# This buildout.cfg should work to run Zope as a WSGI process
[buildout]
extends = http://dist.plone.org/release/4.1-latest/versions.cfg
parts = instance paster wsgiconfig
[instance]
recipe = plone.recipe.zope2instance
eggs =
Plone

Zope secrets

This guide will attempt to explain some of Zope's internals. It may be useful for debugging purposes, or simply to better understand how Zope works.

The guide pertains to Zope 2.13.

If you only want to know how to use the APIs and features described below,

Zope secrets

This guide will attempt to explain some of Zope's internals. It may be useful for debugging purposes, or simply to better understand how Zope works.

The guide pertains to Zope 2.13.

If you only want to know how to use the APIs and features described below,

Zope secrets

This guide will attempt to explain some of Zope's internals. It may be useful for debugging purposes, or simply to better understand how Zope works.

The guide pertains to Zope 2.13.

If you only want to know how to use the APIs and features described below,

Zope secrets

This guide will attempt to explain some of Zope's internals. It may be useful for debugging purposes, or simply to better understand how Zope works.

If you only want to know how to use the APIs and features described below, you are probably better served reading the Zope Developer's Guide.