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
recipe = collective.recipe.supervisor | |
plugins = | |
superlance | |
port = 9001 | |
user = mustapha | |
password = secret | |
serverurl = http://supervisor.mustap.com | |
programs = | |
10 zeo ${zeo:location}/bin/runzeo ${zeo:location} | |
20 instance1 ${instance1:location}/bin/runzope ${instance1:location} 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
language: python | |
python: 2.7 | |
env: | |
- TARGET=test | |
- TARGET=coverage.sh | |
- TARGET=python-validation.sh | |
# - TARGET=css-validation.sh | |
# - TARGET=js-validation.sh |
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
import logging | |
from zope import interface | |
from zope.component import getUtility, getMultiAdapter | |
from Products.Five.browser import BrowserView | |
from Products.statusmessages.interfaces import IStatusMessage | |
from plone import api | |
from cirb.blog.interfaces import IBlogContainer | |
from plone.contentrules.rule.interfaces import IRuleAction, IRuleCondition |
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
import xmlrpclib | |
import pprint | |
client = xmlrpclib.ServerProxy('http://pypi.python.org/pypi') | |
packs = client.user_packages('toutpt') | |
infos = [] | |
BLACKLIST = [ | |
'epwithgis.openlayers', | |
'pasteFunBot', | |
'Products.AROfficeTransforms', |
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
from zope import component | |
from zope import interface | |
from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm | |
from zope.schema.interfaces import IVocabularyFactory | |
from plone.i18n.normalizer.base import baseNormalize | |
class RegistryVocabulary(object): | |
"""vocabulary to use with plone.app.registry""" | |
interface.implements(IVocabularyFactory) |
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
################################################################ | |
# (C) 2012, ZOPYX Ltd. | |
################################################################ | |
#ZCML: | |
#<subscriber handler=".language_negotiation.Negotiator"/> | |
from zope.interface import Interface | |
from zope.component import adapter | |
from ZPublisher.interfaces import IPubEvent,IPubAfterTraversal | |
from Products.CMFCore.utils import getToolByName |
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
from urllib import urlencode, quote_plus | |
from plone.memoize.view import memoize | |
from DateTime.DateTime import DateTime | |
from Products.Five import BrowserView | |
from Products.CMFCore.utils import getToolByName | |
class RelatedItems(BrowserView): | |
def __init__(self, context, request): | |
self.context = context | |
self.request = request |
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
<?xml version="1.0"?> | |
<object name="portal_properties" meta_type="Plone Properties Tool"> | |
<object name="ckeditor_properties" meta_type="Plone Property Sheet"> | |
<property name="title">CKEditor properties</property> | |
<!-- base properties --> | |
<property name="forcePasteAsPlainText" type="boolean">True</property> | |
<property name="toolbar" type="string">Custom</property> | |
<property name="toolbar_Custom" type="text"> | |
[ | |
['Save','Format','Styles'], |
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 = | |
buildout.cfg | |
var/sys.cfg | |
parts= | |
instance | |
zopepy | |
zeoserver | |
instance1 |