This file contains 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] | |
parts = py | |
[py] | |
recipe = zc.recipe.egg | |
eggs = lxml | |
interpreter = py |
This file contains 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] | |
find-links += | |
http://effbot.org/downloads/ | |
parts = | |
instance | |
omelette | |
extends = | |
http://dist.plone.org/release/4.1-latest/versions.cfg |
This file contains 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] | |
parts = py | |
[py] | |
recipe = zc.recipe.egg | |
eggs = | |
setuptools | |
interpreter = py |
This file contains 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
import unittest | |
import doctest | |
from pprint import pprint | |
from interlude import interact | |
from google.appengine.ext import testbed | |
optionflags = doctest.NORMALIZE_WHITESPACE | \ | |
doctest.ELLIPSIS | \ | |
doctest.REPORT_ONLY_FIRST_FAILURE |
This file contains 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
from plone.app.querystring.queryparser import getPathByUID, getNavigationRoot | |
def _multi_path(context, row): | |
values = [] | |
for value in row.values.split(): | |
if not '/' in value: | |
# It must be a UID | |
value = '/'.join(getPathByUID(context, value)) | |
# take care of absolute paths without nav_root | |
nav_root = getNavigationRoot(context) |
This file contains 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
from acabsl import send | |
from acabsl import update | |
import acabsl | |
import colorsys | |
import random | |
import time | |
PLONE_RGB = (0, 131, 190) |
This file contains 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
# Regular | |
txtblk="$(tput setaf 0 2>/dev/null || echo '\e[0;30m')" # Black | |
txtred="$(tput setaf 1 2>/dev/null || echo '\e[0;31m')" # Red | |
txtgrn="$(tput setaf 2 2>/dev/null || echo '\e[0;32m')" # Green | |
txtylw="$(tput setaf 3 2>/dev/null || echo '\e[0;33m')" # Yellow | |
txtblu="$(tput setaf 4 2>/dev/null || echo '\e[0;34m')" # Blue | |
txtpur="$(tput setaf 5 2>/dev/null || echo '\e[0;35m')" # Purple | |
txtcyn="$(tput setaf 6 2>/dev/null || echo '\e[0;36m')" # Cyan | |
txtwht="$(tput setaf 7 2>/dev/null || echo '\e[0;37m')" # White |
This file contains 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
find . -name "*.py"|while read fn;do head -n1 "$fn"|grep -qv "^# \-\*\- coding" && sed -i "1i # -*- coding: utf-8 -*-" $fn;done |
This file contains 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 -*- | |
"""Setup tests for this package.""" | |
from bda.aaf.site.testing import BDA_AAF_SITE_FUNCTIONAL_TESTING | |
from plone import api | |
from plone.app.testing import setRoles | |
from plone.app.testing import TEST_USER_ID | |
import unittest | |
This file contains 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
<configure | |
xmlns="http://namespaces.zope.org/zope" | |
xmlns:browser="http://namespaces.zope.org/browser" | |
xmlns:zcml="http://namespaces.zope.org/zcml"> | |
<browser:page | |
class=".upgradelrf.Upgrade" | |
for="plone.app.multilingual.content.lrf.LanguageRootFolder" | |
name="lp-migrate-lrf" | |
permission="cmf.ManagePortal" | |
/> |