This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
#fetch Gravatars | |
# https://code.google.com/p/gource/wiki/GravatarExample | |
import os | |
import requests | |
import subprocess | |
import hashlib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A Zope command line script to delete content with missing BLOB in Plone, causing | |
POSKeyErrors when content is being accessed or during portal_catalog rebuild. | |
Tested on Plone 4.1 + Dexterity 1.1. | |
http://stackoverflow.com/questions/8655675/cleaning-up-poskeyerror-no-blob-file-content-from-plone-site | |
Also see: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Source URL: http://www.plone-entwicklerhandbuch.de/plone-entwicklerhandbuch/produktivserver/backup-der-zodb/rsync-backup.sh/view | |
# SOURCES and TARGET must end with slash | |
SOURCES="/home/plone/plone41_buildout/backups/backup_*" | |
SOURCES="${SOURCES} /home/plone/plone41_buildout/var/blobbackup*/*.0/" | |
TARGET="/backups/plone/plone41_buildout/" | |
MOUNTPOINT="/backups/" | |
LOGFILE="/home/plone/plone41_buildout/var/log/backup_plone41.log" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[buildout] | |
extensions = | |
# A zc.buildout extension to ease the development of large projects with lots of packages. | |
# For options see http://pypi.python.org/pypi/mr.developer | |
mr.developer | |
extends = | |
https://raw.github.com/collective/buildout.plonetest/master/qa.cfg | |
http://dist.plone.org/release/4.3-latest/versions.cfg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[buildout] | |
extends = http://dist.plone.org/release/4.3-latest/versions.cfg | |
find-links = | |
http://dist.plone.org/release/4.3-latest/ | |
http://dist.plone.org/thirdparty/ | |
show-picked-versions = true | |
eggs = | |
unzip = true | |
versions = versions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[buildout] | |
extends = | |
https://raw.github.com/collective/buildout.plonetest/master/qa.cfg | |
[code-analysis] | |
directory = ${buildout:directory}/src/ | |
pre-commit-hook = True | |
flake8-ignore = E501 | |
clean-lines = True | |
deprecated-aliases = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[buildout] | |
extends = http://dist.plone.org/release/4.3-latest/versions.cfg | |
find-links = | |
http://dist.plone.org/release/4.3-latest/ | |
http://dist.plone.org/thirdparty/ | |
show-picked-versions = true | |
eggs = | |
unzip = true | |
versions = versions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[buildout] | |
extends = http://dist.plone.org/release/4.3-latest/versions.cfg | |
find-links = | |
http://dist.plone.org/release/4.3-latest/ | |
http://dist.plone.org/thirdparty/ | |
show-picked-versions = true | |
eggs = | |
unzip = true | |
versions = versions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*~ | |
*.pyc | |
*.pyo | |
*.tmp* | |
*.mo | |
*.egg | |
*.EGG | |
*.egg-info | |
*.EGG-INFO | |
*.kpf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source https://plus.google.com/102636120635048200626/posts/HMk2yNfysQN | |
from Products.statusmessages.interfaces import IStatusMessage | |
IStatusMessage(self.request).addStatusMessage('Hello World', type='info') |