Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit 0bba81c419ab946601363ee12b87c76c42a89771 @toutpt toutpt committed Dec 29, 2011
@@ -0,0 +1,23 @@
+*.mo
+*.egg-info
+*.egg
+*.EGG
+*.EGG-INFO
+bin
+build
+develop-eggs
+downloads
+eggs
+fake-eggs
+parts
+dist
+var
+.installed.cfg
+.mr.developer.cfg
+.hg
+.bzr
+.svn
+*.pyc
+*.pyo
+*.tmp*
+
@@ -0,0 +1,2 @@
+recursive-include collective *
+global-exclude *pyc
@@ -0,0 +1,6 @@
+Introduction
+============
+
+
+
+This product may contain traces of nuts.
@@ -0,0 +1,121 @@
+##############################################################################
+#
+# Copyright (c) 2006 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Bootstrap a buildout-based project
+
+Simply run this script in a directory containing a buildout.cfg.
+The script accepts buildout command-line options, so you can
+use the -c option to specify an alternate configuration file.
+
+$Id$
+"""
+
+import os, shutil, sys, tempfile, urllib2
+from optparse import OptionParser
+
+tmpeggs = tempfile.mkdtemp()
+
+is_jython = sys.platform.startswith('java')
+
+# parsing arguments
+parser = OptionParser()
+parser.add_option("-v", "--version", dest="version",
+ help="use a specific zc.buildout version")
+parser.add_option("-d", "--distribute",
+ action="store_true", dest="distribute", default=False,
+ help="Use Disribute rather than Setuptools.")
+
+parser.add_option("-c", None, action="store", dest="config_file",
+ help=("Specify the path to the buildout configuration "
+ "file to be used."))
+
+options, args = parser.parse_args()
+
+# if -c was provided, we push it back into args for buildout' main function
+if options.config_file is not None:
+ args += ['-c', options.config_file]
+
+if options.version is not None:
+ VERSION = '==%s' % options.version
+else:
+ VERSION = ''
+
+USE_DISTRIBUTE = options.distribute
+args = args + ['bootstrap']
+
+to_reload = False
+try:
+ import pkg_resources
+ if not hasattr(pkg_resources, '_distribute'):
+ to_reload = True
+ raise ImportError
+except ImportError:
+ ez = {}
+ if USE_DISTRIBUTE:
+ exec urllib2.urlopen('http://python-distribute.org/distribute_setup.py'
+ ).read() in ez
+ ez['use_setuptools'](to_dir=tmpeggs, download_delay=0, no_fake=True)
+ else:
+ exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
+ ).read() in ez
+ ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
+
+ if to_reload:
+ reload(pkg_resources)
+ else:
+ import pkg_resources
+
+if sys.platform == 'win32':
+ def quote(c):
+ if ' ' in c:
+ return '"%s"' % c # work around spawn lamosity on windows
+ else:
+ return c
+else:
+ def quote (c):
+ return c
+
+cmd = 'from setuptools.command.easy_install import main; main()'
+ws = pkg_resources.working_set
+
+if USE_DISTRIBUTE:
+ requirement = 'distribute'
+else:
+ requirement = 'setuptools'
+
+if is_jython:
+ import subprocess
+
+ assert subprocess.Popen([sys.executable] + ['-c', quote(cmd), '-mqNxd',
+ quote(tmpeggs), 'zc.buildout' + VERSION],
+ env=dict(os.environ,
+ PYTHONPATH=
+ ws.find(pkg_resources.Requirement.parse(requirement)).location
+ ),
+ ).wait() == 0
+
+else:
+ assert os.spawnle(
+ os.P_WAIT, sys.executable, quote (sys.executable),
+ '-c', quote (cmd), '-mqNxd', quote (tmpeggs), 'zc.buildout' + VERSION,
+ dict(os.environ,
+ PYTHONPATH=
+ ws.find(pkg_resources.Requirement.parse(requirement)).location
+ ),
+ ) == 0
+
+ws.add_entry(tmpeggs)
+ws.require('zc.buildout' + VERSION)
+import zc.buildout.buildout
+zc.buildout.buildout.main(args)
+shutil.rmtree(tmpeggs)
@@ -0,0 +1,10 @@
+[buildout]
+extends =
+ http://svn.plone.org/svn/collective/buildout/plonetest/test-4.1.x.cfg
+package-name = collective.portlet.oembed
+
+parts+=omelette
+
+[omelette]
+recipe=collective.recipe.omelette
+eggs=${instance:eggs}
@@ -0,0 +1,6 @@
+# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
+try:
+ __import__('pkg_resources').declare_namespace(__name__)
+except ImportError:
+ from pkgutil import extend_path
+ __path__ = extend_path(__path__, __name__)
@@ -0,0 +1,6 @@
+# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
+try:
+ __import__('pkg_resources').declare_namespace(__name__)
+except ImportError:
+ from pkgutil import extend_path
+ __path__ = extend_path(__path__, __name__)
@@ -0,0 +1,6 @@
+# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
+try:
+ __import__('pkg_resources').declare_namespace(__name__)
+except ImportError:
+ from pkgutil import extend_path
+ __path__ = extend_path(__path__, __name__)
@@ -0,0 +1,20 @@
+<configure
+ xmlns="http://namespaces.zope.org/zope"
+ xmlns:browser="http://namespaces.zope.org/browser"
+ xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
+ i18n_domain="collective.portlet.oembed">
+
+ <browser:resourceDirectory
+ name="collective.portlet.oembed"
+ directory="resources"
+ />
+
+ <genericsetup:registerProfile
+ name="default"
+ title="collective.portlet.oembed"
+ directory="profiles/default"
+ description='Extension profile for collective.portlet.oembed.'
+ provides="Products.GenericSetup.interfaces.EXTENSION"
+ />
+
+</configure>
@@ -0,0 +1,4 @@
+from zope import interface
+
+class ILayer(interface.Interface):
+ """Browser Layer"""
@@ -0,0 +1,6 @@
+<layers>
+<!-- uncomment to activate
+ <layer name="collective.portlet.oembed"
+ interface="collective.portlet.oembed.interfaces.ILayer" />
+-->
+</layers>
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<object name="portal_css">
+ <!-- Stylesheets that will be registered with the portal_css tool are defined
+ here. You can also specify values for existing resources if you need to
+ modify some of their properties.
+ Stylesheet elements accept these parameters:
+ - 'id' (required): it must respect the name of the css or DTML file
+ (case sensitive). '.dtml' suffixes must be ignored.
+ - 'expression' (optional - default: ''): a tal condition.
+ - 'media' (optional - default: ''): possible values: 'screen', 'print',
+ 'projection', 'handheld'...
+ - 'rel' (optional - default: 'stylesheet')
+ - 'title' (optional - default: '')
+ - 'rendering' (optional - default: 'import'): 'import', 'link' or
+ 'inline'.
+ - 'enabled' (optional - default: True): boolean
+ - 'cookable' (optional - default: True): boolean (aka 'merging allowed')
+ - 'insert_before', 'insert_after' (optional - default: '') resource id
+ See registerStylesheet() arguments in
+ ResourceRegistries/tools/CSSRegistry.py for the latest list of all
+ available keys and default values.
+ -->
+<!--
+ <stylesheet
+ id="++resource++collective.portlet.oembed/some.css"
+ applyPrefix="True"/>
+-->
+</object>
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<object name="portal_javascripts">
+
+ <!-- Javascript files that will be registered with the
+ portal_javascripts tool are defined here. You can also specify values
+ for existing resources if you need to modify some of their properties.
+ Javascript elements accept these parameters:
+ - 'id' (required): same rules as for stylesheets (see
+ 'cssregistry.xml').
+ - 'expression' (optional - default: ''): a tal condition.
+ - 'inline' (optional - default: False)
+ - 'enabled' (optional - default: True): boolean
+ - 'cookable' (optional - default: True): boolean (aka 'merging allowed')
+ See registerScript() arguments in ResourceRegistries/tools/JSRegistry.py
+ for the latest list of all available keys and default values.
+ -->
+<!--
+ <javascript id="++resource++collective.portlet.oembed/something.js"/>
+-->
+
+</object>
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+<metadata>
+ <version>1000</version>
+</metadata>
@@ -0,0 +1,7 @@
+Changelog
+=========
+
+1.0dev (unreleased)
+-------------------
+
+- Initial release
@@ -0,0 +1,32 @@
+from setuptools import setup, find_packages
+import os
+
+version = '1.0'
+
+setup(name='collective.portlet.oembed',
+ version=version,
+ description="Portlet waiting for an external link displayed using oembed/embedly",
+ long_description=open("README.rst").read() + "\n" +
+ open(os.path.join("docs", "HISTORY.txt")).read(),
+ # Get more strings from
+ # http://pypi.python.org/pypi?:action=list_classifiers
+ classifiers=[
+ "Programming Language :: Python",
+ ],
+ keywords='',
+ author='',
+ author_email='',
+ url='http://svn.plone.org/svn/collective/',
+ license='GPL',
+ packages=find_packages(exclude=['ez_setup']),
+ namespace_packages=['collective', 'collective.portlet'],
+ include_package_data=True,
+ zip_safe=False,
+ install_requires=[
+ 'setuptools',
+ # -*- Extra requirements: -*-
+ ],
+ entry_points="""
+ # -*- Entry points: -*-
+ """,
+ )

0 comments on commit 0bba81c

Please sign in to comment.