-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 55633d6
Showing
11 changed files
with
325 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Changes | ||
======= | ||
|
||
1.0 (unreleased) | ||
---------------- | ||
|
||
* Initial release. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Copyright (c) 2006-2008 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. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CREDITS | ||
======= | ||
|
||
This package was extracted from the Grok web framework. | ||
|
||
For credits, see the CREDITS file in the main ``grok`` project itself. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
Preparing for grok development | ||
------------------------------ | ||
|
||
The Grok development sandbox is set up via `zc.buildout`_ | ||
|
||
.. _zc.buildout: http://cheeseshop.python.org/pypi/zc.buildout | ||
|
||
You may have setuptools already installed for your system Python. In | ||
that case, you may need to upgrade it first because buildout requires | ||
a very recent version:: | ||
|
||
$ sudo easy_install -U setuptools | ||
|
||
If this command fails because easy_install is not available, there is | ||
a good chance you do not have setuptools available for your system | ||
Python. If so, there is no problem because setuptools will be | ||
installed locally by buildout. | ||
|
||
Bootstrap the buildout environment:: | ||
|
||
$ python bootstrap/bootstrap.py | ||
|
||
and run the buildout command:: | ||
|
||
$ bin/buildout | ||
[lots of stuff will be downloaded and installed here] | ||
|
||
Note that if you have more than one sandbox for a Zope-based web | ||
application, it will probably make sense to share the eggs between the | ||
different sandboxes. You can tell zc.buildout to use a central eggs | ||
directory by creating ``~/.buildout/default.cfg`` with the following | ||
contents:: | ||
|
||
[buildout] | ||
eggs-directory = /home/bruno/buildout-eggs | ||
|
||
Running the demo applications | ||
----------------------------- | ||
|
||
You can start Zope with the demo applications installed with the | ||
following command: | ||
|
||
$ bin/zopectl fg | ||
|
||
If you now connect to port 8080 and log in with username 'grok', | ||
password 'grok', you should be able to add the grok-based applications | ||
(such as grokwiki) from the menu. | ||
|
||
Running the tests | ||
----------------- | ||
|
||
Grok's tests are easily run by executing the test runner that's | ||
installed in the ``bin`` directory:: | ||
|
||
$ bin/test | ||
|
||
Generating the website files | ||
---------------------------- | ||
|
||
Grok's tutorial documents for the website can easily be generated | ||
using the following script in ``bin``: | ||
|
||
$ bin/grok2html /path/of/output/directory |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
Zope Public License (ZPL) Version 2.1 | ||
------------------------------------- | ||
|
||
A copyright notice accompanies this license document that | ||
identifies the copyright holders. | ||
|
||
This license has been certified as open source. It has also | ||
been designated as GPL compatible by the Free Software | ||
Foundation (FSF). | ||
|
||
Redistribution and use in source and binary forms, with or | ||
without modification, are permitted provided that the | ||
following conditions are met: | ||
|
||
1. Redistributions in source code must retain the | ||
accompanying copyright notice, this list of conditions, | ||
and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the accompanying | ||
copyright notice, this list of conditions, and the | ||
following disclaimer in the documentation and/or other | ||
materials provided with the distribution. | ||
|
||
3. Names of the copyright holders must not be used to | ||
endorse or promote products derived from this software | ||
without prior written permission from the copyright | ||
holders. | ||
|
||
4. The right to distribute this software or to use it for | ||
any purpose does not give you the right to use | ||
Servicemarks (sm) or Trademarks (tm) of the copyright | ||
holders. Use of them is covered by separate agreement | ||
with the copyright holders. | ||
|
||
5. If any files are modified, you must cause the modified | ||
files to carry prominent notices stating that you changed | ||
the files and the date of any change. | ||
|
||
Disclaimer | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' | ||
AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT | ||
NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN | ||
NO EVENT SHALL THE COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE | ||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH | ||
DAMAGE. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
grokcore.viewlet | ||
================ | ||
|
||
Grok-like configuration for Zope viewlets. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[buildout] | ||
develop = . | ||
parts = interpreter test | ||
extends = versions.cfg | ||
versions = versions | ||
|
||
[interpreter] | ||
recipe = zc.recipe.egg | ||
eggs = grokcore.viewlet | ||
interpreter = python | ||
|
||
[test] | ||
recipe = zc.recipe.testrunner | ||
eggs = grokcore.viewlet | ||
defaults = ['--tests-pattern', '^f?tests$', '-v'] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
from setuptools import setup, find_packages | ||
import os | ||
|
||
def read(*rnames): | ||
return open(os.path.join(os.path.dirname(__file__), *rnames)).read() | ||
|
||
long_description = ( | ||
read('README.txt') | ||
+ '\n' + | ||
read('CHANGES.txt') | ||
) | ||
|
||
setup( | ||
name='grokcore.viewlet', | ||
version='1.0dev', | ||
author='Grok Team', | ||
author_email='grok-dev@zope.org', | ||
url='http://grok.zope.org', | ||
download_url='http://cheeseshop.python.org/pypi/grokcore.viewlet', | ||
description='Grok-like configuration for zope viewlets', | ||
long_description=long_description, | ||
license='ZPL', | ||
classifiers=['Environment :: Web Environment', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Zope Public License', | ||
'Programming Language :: Python', | ||
'Framework :: Zope3', | ||
], | ||
|
||
packages=find_packages('src'), | ||
package_dir = {'': 'src'}, | ||
namespace_packages=['grokcore'], | ||
include_package_data = True, | ||
zip_safe=False, | ||
install_requires=['setuptools', | ||
'martian >= 0.10', | ||
'grokcore.component >= 1.5', | ||
'grokcore.security', | ||
'grokcore.view >= 1.1', | ||
# for tests: | ||
'zope.testing', | ||
'zope.lifecycleevent', | ||
'zope.securitypolicy', | ||
'zope.app.zcmlfiles', | ||
'zope.app.container', | ||
], | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# this is a namespace package | ||
try: | ||
import pkg_resources | ||
pkg_resources.declare_namespace(__name__) | ||
except ImportError: | ||
import pkgutil | ||
__path__ = pkgutil.extend_path(__path__, __name__) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This is a package. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
[versions] | ||
ClientForm = 0.2.9 | ||
Pygments = 0.8.1 | ||
RestrictedPython = 3.4.2 | ||
ZConfig = 2.5.1 | ||
ZODB3 = 3.8 | ||
docutils = 0.4 | ||
grokcore.component = 1.5.1 | ||
grokcore.security = 1.0 | ||
grokcore.view = 1.1 | ||
martian = 0.11 | ||
mechanize = 0.1.7b | ||
pytz = 2007k | ||
simplejson = 1.7.1 | ||
z3c.autoinclude = 0.2.2 | ||
z3c.flashmessage = 1.0 | ||
z3c.testsetup = 0.2.1 | ||
zc.catalog = 1.2 | ||
zc.recipe.testrunner = 1.0.0 | ||
zdaemon = 2.0.2 | ||
zodbcode = 3.4 | ||
zope.annotation = 3.4.1 | ||
zope.app.apidoc = 3.4.3 | ||
zope.app.applicationcontrol = 3.4.3 | ||
zope.app.appsetup = 3.4.1 | ||
zope.app.authentication = 3.4.3 | ||
zope.app.basicskin = 3.4 | ||
zope.app.broken = 3.4 | ||
zope.app.catalog = 3.5.1 | ||
zope.app.component = 3.4.1 | ||
zope.app.container = 3.5.6 | ||
zope.app.content = 3.4 | ||
zope.app.debug = 3.4.1 | ||
zope.app.dependable = 3.4 | ||
zope.app.error = 3.5.1 | ||
zope.app.exception = 3.4.1 | ||
zope.app.file = 3.4.4 | ||
zope.app.folder = 3.4 | ||
zope.app.form = 3.4.1 | ||
zope.app.generations = 3.4.1 | ||
zope.app.http = 3.4.1 | ||
zope.app.i18n = 3.4.4 | ||
zope.app.interface = 3.4 | ||
zope.app.intid = 3.4.1 | ||
zope.app.keyreference = 3.4.1 | ||
zope.app.locales = 3.4.5 | ||
zope.app.onlinehelp = 3.4.1 | ||
zope.app.pagetemplate = 3.4.1 | ||
zope.app.preference = 3.4.1 | ||
zope.app.principalannotation = 3.4 | ||
zope.app.publication = 3.4.3 | ||
zope.app.publisher = 3.4.1 | ||
zope.app.renderer = 3.4 | ||
zope.app.rotterdam = 3.4.1 | ||
zope.app.schema = 3.4 | ||
zope.app.security = 3.5.2 | ||
zope.app.securitypolicy = 3.4.6 | ||
zope.app.server = 3.4.2 | ||
zope.app.session = 3.5.1 | ||
zope.app.skins = 3.4 | ||
zope.app.testing = 3.4.3 | ||
zope.app.tree = 3.4 | ||
zope.app.twisted = 3.4.1 | ||
zope.app.wsgi = 3.4.1 | ||
zope.app.zapi = 3.4 | ||
zope.app.zcmlfiles = 3.4.3 | ||
zope.app.zopeappgenerations = 3.4 | ||
zope.cachedescriptors = 3.4.1 | ||
zope.component = 3.4 | ||
zope.configuration = 3.4 | ||
zope.contentprovider = 3.4 | ||
zope.contenttype = 3.4 | ||
zope.copypastemove = 3.4 | ||
zope.datetime = 3.4 | ||
zope.deferredimport = 3.4 | ||
zope.deprecation = 3.4 | ||
zope.dottedname = 3.4.2 | ||
zope.dublincore = 3.4 | ||
zope.error = 3.5.1 | ||
zope.event = 3.4 | ||
zope.exceptions = 3.4 | ||
zope.filerepresentation = 3.4 | ||
zope.formlib = 3.4 | ||
zope.hookable = 3.4 | ||
zope.i18n = 3.4 | ||
zope.i18nmessageid = 3.4.3 | ||
zope.index = 3.4.1 | ||
zope.interface = 3.4.1 | ||
zope.lifecycleevent = 3.4 | ||
zope.location = 3.4 | ||
zope.minmax = 1.1 | ||
zope.modulealias = 3.4 | ||
zope.pagetemplate = 3.4 | ||
zope.proxy = 3.4.2 | ||
zope.publisher = 3.4.6 | ||
zope.schema = 3.4 | ||
zope.security = 3.4.1 | ||
zope.securitypolicy = 3.4.1 | ||
zope.server = 3.4.3 | ||
zope.session = 3.4.1 | ||
zope.size = 3.4 | ||
zope.structuredtext = 3.4 | ||
zope.tal = 3.4.1 | ||
zope.tales = 3.4 | ||
zope.testbrowser = 3.4.2 | ||
zope.testing = 3.5.4 | ||
zope.thread = 3.4 | ||
zope.traversing = 3.4.1 | ||
zope.viewlet = 3.4.2 |