Skip to content

Instantly share code, notes, and snippets.

View tisto's full-sized avatar

Timo Stollenwerk tisto

View GitHub Profile
$ bin/test -s plone.app.versioningbehavior -D
Running plone.app.testing.bbb.PloneTestCase:Functional tests:
Set up plone.testing.zca.LayerCleanup in 0.000 seconds.
Set up plone.testing.z2.Startup in 0.121 seconds.
Set up plone.app.testing.layers.PloneFixture in 5.133 seconds.
Set up plone.app.testing.bbb.PloneTestCaseFixture LoadLocaleError: The desired locale is not available.
Path: /home/timo/.buildout/eggs/zope.i18n-3.7.4-py2.7.egg/zope/i18n/locales/data/.xml
*** ImportError: No module named PdbSublimeTextSupport
*** NameError: name 'preloop' is not defined
$ bin/test -s plone.app.versioningbehavior
Running plone.app.testing.bbb.PloneTestCase:Functional tests:
Set up plone.testing.zca.LayerCleanup in 0.000 seconds.
Set up plone.testing.z2.Startup in 0.124 seconds.
Set up plone.app.testing.layers.PloneFixture in 5.234 seconds.
Set up plone.app.testing.bbb.PloneTestCaseFixture Traceback (most recent call last):
File "/home/timo/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 400, in run_layer
setup_layer(options, layer, setup_layers)
File "/home/timo/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
setup_layer(options, base, setup_layers)
#### Running tests for group plone_app_testing_test_isolation_problems ####
Running plone.app.linkintegrity.testing.plone.app.linkintegrity:AT:Functional tests:
Set up plone.testing.zca.LayerCleanup in 0.000 seconds.
Set up plone.testing.z2.Startup in 0.177 seconds.
Set up plone.app.testing.layers.PloneFixture in 5.098 seconds.
Set up plone.app.contenttypes.testing.PloneAppContenttypesMigration in 0.857 seconds.
Set up plone.app.linkintegrity.testing.LinkIntegrityLayer in 0.000 seconds.
Set up plone.app.linkintegrity.testing.LinkIntegrityATLayer in 0.351 seconds.
Set up plone.app.linkintegrity.testing.plone.app.linkintegrity:AT:Functional in 0.000 seconds.
Running:
TASK: [ansible-jenkins | Update plugins] **************************************
failed: [test.jenkins.plone.org] => {"changed": true, "cmd": ["java", "-jar", "/opt/jenkins/jenkins-cli.jar", "-s", "http://localhost:8080", "install-plugin", "extra-columns", "notification", "github", "robot"], "delta": "0:00:00.706375", "end": "2015-02-27 12:12:12.675589", "rc": 255, "start": "2015-02-27 12:12:11.969214", "warnings": []}
stderr: hudson.security.AccessDeniedException2: anonymous is missing the Overall/UploadPlugins permission
at hudson.security.ACL.checkPermission(ACL.java:57)
at hudson.model.Node.checkPermission(Node.java:435)
at hudson.cli.InstallPluginCommand.run(InstallPluginCommand.java:74)
at hudson.cli.CLICommand.main(CLICommand.java:237)
at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
@tisto
tisto / gist:d4148b4fa840456b8d7a
Created February 5, 2015 10:15
Sync github fork with upstream master
git remote add upstream https://github.com/collective/bobtemplates.plone.git
git fetch upstream
git checkout master
git merge upstream/master
git push
==============================================================================
jMeter Performance Testing
==============================================================================
Introduction
------------
This document explains how to run performance test with jMeter agains a Plone
site.
@tisto
tisto / paregistry
Created January 5, 2015 16:41
How to create a plone control panel with plone.app.registry
Introduction
------------
Sometimes when you create an add-on product for Plone you need a central storage for configuration settings. Integrators, site administrators, or users should be able to configure your add-on product, or to add information that your add-on product requires to work (e.g. registration key for a third party service).
This tutorial will explain how you can easily create a Plone control panel that can be used to store add-on specific configuration data. It is based on a real world add-on product, called collective.akismet. collective.akismet provides akismet spam protection for plone.app.discussion comments. It needs to store the site specific akismet key in order to use the third party akismet service.
plone.registry vs. plone.app.registry
-------------------------------------
==============================================================================
How to implement a geospatial search with collective.solr
==============================================================================
Solr
----
Configure a Solr Instance with collective.recipe.solrinstance.
Add a geolocation index and a dynamic '*_coordinate' index to the Solr
==============================================================================
SOLR HOWTO
==============================================================================
Vorbereitungen
==============================================================================
Java OpenJDK installieren:
$ sudo apt-get install openjdk-7-jre
@tisto
tisto / z3cform-p.a.controlpanel
Last active August 29, 2015 14:04
Howto move a Plone control panel from z3c.form to plone.app.registry
1) Move the Interface (e.g. ISecuritySchema) from z3cfrom-p.a.controlpanel branch into CMFPlone/interfaces/controlpanel.py:
- Code: https://github.com/plone/plone.app.controlpanel/blob/plip10359-z3cform/plone/app/controlpanel/interfaces.py#L430
(make sure the added interface is listen in P.CMFPlone/../profiles/dependencies/registry.xml)
- Tests: Copy https://github.com/plone/Products.CMFPlone/blob/master/Products/CMFPlone/controlpanel/tests/test_controlpanel_site.py and amend it
to test the settings in the interface. Do not directly copy the test from
the z3cform-p.a.controlpanel branch: https://github.com/plone/plone.app.controlpanel/blob/plip10359-z3cform/plone/app/controlpanel/tests/test_security.py
If you run into "KeyError: 'Interface `Products.CMFPlone.interfaces.controlpanel.IFilterSchema` defines a field `stripped_tags`, for which there is no record.'", make sure all registry lookups use prefix="plone" and that the ControlPanelForm has the schema_prefix="plone" attribute.