- http://plone.org/documentation/manual/developer-manual/generic-setup/using-genericsetup-efficiently
- When migrating an old product that used to sit in the products folder use the Products namespace - https://weblion.psu.edu/trac/weblion/wiki/EggifyAnExistingProduct
- Best explanation of a component - http://plone.org/documentation/manual/theme-reference/buildingblocks/components/
- Use dumppickedversions when troubleshooting
- Notes on debugging plone - http://plone.org/documentation/kb/best-practices/debugging-plone
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
This is just my way of testing gists |
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
## Script (Python) "convert_news_to_press" | |
##bind container=container | |
##bind context=context | |
##bind namespace= | |
##bind script=script | |
##bind subpath=traverse_subpath | |
##parameters= | |
##title=Convert to News Items to Press Releases | |
## | |
source_contenttype = 'News Item' |
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" | |
i18n_domain="your.product"> | |
<!-- this is browser/configure.zcml | |
without the allowed_attributes I get a permission error --> | |
<browser:page | |
name="helloview" | |
for="*" |
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] | |
extensions = | |
buildout.bootstrap | |
mr.developer | |
extends = http://dist.plone.org/release/4.2b1/versions.cfg | |
extends-cache = . | |
find-links = http://dist.plone.org/thirdparty/elementtree-1.2.7-20070827-preview.zip | |
parts = | |
mod-wsgi | |
plone |
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
mkdir plonewsgi | |
cd plonewsgi | |
# works with python 2.7 virtualenv!! | |
virtualenv-2.7 --no-site-packages --distribute . | |
bin/pip install zc.buildout | |
bin/buildout init | |
wget --no-check-certificate https://raw.github.com/gist/1543998/34af3ad5cffe1df2f6c4253bc771de6bb3760857/buildout.cfg | |
bin/buildout | |
#to start your plone instance run |
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
wget http://dl.dropbox.com/u/1004432/ploneide.zip | |
# on OS X use | |
# curl -O http://dl.dropbox.com/u/1004432/ploneide.zip | |
unzip ploneide.zip | |
cd ploneide | |
python2.6 bootstrap.py | |
bin/buildout | |
# be sure you have reliable internet access | |
# wait 15 - 25 minutes | |
# TROUBLESHOOTING |
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
# add these lines to your script so that it will become proxy aware | |
# it assumes that you have set an http_proxy and or https_proxy | |
# export http_proxy=myproxy:8080 | |
# export https_proxy=myproxy:8080 | |
opener = urllib2.build_opener() | |
urllib2.install_opener(opener) |
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
""" This script allows you to interactively create a new database """ | |
import gdata.spreadsheet.text_db | |
import getpass | |
import os | |
# os.putenv('http_proxy','scalpel:8080') | |
# os.putenv('https_proxy','scalpel:8080') | |
# Create a client class which will make HTTP requests with | |
# Google Spreadsheet Service |
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
/** | |
* Subtractive Color Wheel | |
* by Ira Greenberg. | |
* | |
* The primaries are red, yellow, and blue. The secondaries are green, | |
* purple, and orange. The tertiaries are yellow-orange, red-orange, | |
* red-purple, blue-purple, blue-green, and yellow-green. | |
* | |
* Create a shade or tint of the subtractive color wheel using | |
* SHADE or TINT parameters. |
OlderNewer