[Checkins] SVN: Sandbox/darrylcousins/mars.contentprovider/s Egg
ready
Darryl Cousins
darryl at darrylcousins.net.nz
Fri Jul 13 05:54:37 EDT 2007
Log message for revision 77824:
Egg ready
Changed:
U Sandbox/darrylcousins/mars.contentprovider/setup.py
U Sandbox/darrylcousins/mars.contentprovider/src/mars/contentprovider/README.txt
-=-
Modified: Sandbox/darrylcousins/mars.contentprovider/setup.py
===================================================================
--- Sandbox/darrylcousins/mars.contentprovider/setup.py 2007-07-13 09:43:36 UTC (rev 77823)
+++ Sandbox/darrylcousins/mars.contentprovider/setup.py 2007-07-13 09:54:36 UTC (rev 77824)
@@ -11,11 +11,8 @@
author_email='darryl.cousins at tfws.org.nz',
url='http://www.tfws.org.nz/mars',
description="""\
-Martian is a library that allows the embedding of configuration
-information in Python code. Martian can then grok the system and
-do the appropriate configuration registrations.
-
-This package uses martian to register contentproviders.""",
+This package uses ``martian`` and ``grok`` to register content providers
+for applications built on the ``zope`` framework.""",
long_description=(
read('src/mars/contentprovider/README.txt')
),
@@ -26,71 +23,25 @@
license='ZPL',
dependency_links = ['http://download.zope.org/distribution'],
extras_require = dict(
- test = ['zope.app.appsetup',
- 'zope.app.authentication',
- 'zope.app.component',
- 'zope.app.container',
- 'zope.app.error',
- 'zope.app.form',
- 'zope.app.publisher',
- 'zope.app.publication',
- 'zope.app.security',
- 'zope.app.securitypolicy',
- 'zope.app.twisted',
- 'zope.app.wsgi',
- 'zope.contentprovider',
- 'zope.app.intid',
- 'z3c.formdemo',
- 'z3c.etestbrowser',
- 'zope.app.zcmlfiles',
- 'zope.app.testing',
- 'mars.template'],
- ),
+ test=['zope.app.testing',
+ 'zope.testbrowser',
+ 'zope.app.zcmlfiles',
+ 'zope.app.securitypolicy',
+ 'zope.app.authentication',
+ 'mars.layer',
+ 'mars.template',
+ 'mars.view',
+ ]
+ ),
install_requires = [
'setuptools',
- 'simplejson',
- 'grok',
- 'martian',
- 'lxml',
- 'pytz',
- 'ZODB3',
- 'z3c.csvvocabulary',
- 'z3c.form',
- 'z3c.formui',
- 'z3c.layer',
- 'z3c.pagelet',
- 'z3c.template',
- 'z3c.viewlet',
- 'z3c.zrtresource',
- 'z3c.formdemo',
- 'zc.resourcelibrary',
- 'zc.table',
- 'zope.annotation',
- 'zope.contentprovider',
- 'zope.app.catalog',
- 'zope.app.folder',
- 'zope.app.container',
- 'zope.app.pagetemplate',
- 'zope.app.session',
+ 'zope.app.intid',
+ 'zope.app.catalog',
'zope.component',
'zope.interface',
- 'zope.location',
- 'zope.pagetemplate',
'zope.publisher',
- 'zope.rdb',
- 'zope.schema',
- 'zope.traversing',
- 'zope.viewlet',
+ 'zope.contentprovider',
+ 'grok',
+ 'martian',
],
)
- # 'zope.app.pagetemplate',
- # 'zope.app.testing',
- # 'zope.configuration',
- # 'zope.dottedname',
- # 'zope.event',
- # 'zope.formlib',
- # 'zope.lifecycleevent',
- # 'zope.security',
- # 'zope.testing',
-
-
Modified: Sandbox/darrylcousins/mars.contentprovider/src/mars/contentprovider/README.txt
===================================================================
--- Sandbox/darrylcousins/mars.contentprovider/src/mars/contentprovider/README.txt 2007-07-13 09:43:36 UTC (rev 77823)
+++ Sandbox/darrylcousins/mars.contentprovider/src/mars/contentprovider/README.txt 2007-07-13 09:54:36 UTC (rev 77824)
@@ -2,11 +2,28 @@
Mars ContentProvider
====================
+Introduction
+------------
+
+`Grok`_ is a project which seeks to provide convention over configuration.
+
+``Martian`` grew from `Grok`_:
+
+Martian is a library that allows the embedding of configuration information in
+Python code. Martian can then grok the system and do the appropriate
+configuration registrations.
+
+.. _Grok: http://grok.zope.org/
+
+Mars ContentProvider
+--------------------
+
Martian is a library that allows the embedding of configuration
information in Python code. Martian can then grok the system and
do the appropriate configuration registrations.
-This package uses martian to configure contentproviders.
+The mars.contentprovider package provides the means of creating and configuring
+``contentproviders`` for an application using Zope3.
Example Code
------------
@@ -32,11 +49,34 @@
<tal:block tal:content="structure provider:title" />
-Directives
-----------
+The mars.layer directive may be used
+-----------------------------------------
-Please see ``directive.txt``.
+* mars.layer.layer(class_or_interface):
+ The layer for which the template should be available.
+ Default: zope.publisher.browser.interfaces.IDefaultBrowserLayer
+Relevant grok directives
+------------------------
+
+* grok.name(name):
+ Name of the view, available in url as object/@@viewname.
+ Default: factory.__name__.lower()
+
+* grok.context(class_or_interface):
+ The view for which the template should be available. Usually should be
+ defined.
+ Default: module context
+
+* grok.template(name):
+ If defined the template will be looked up as a `named adapter`. Should only be
+ defined if a template has been registered as a named adapter.
+ Default: ''
+
+* grok.provides(class_or_interface):
+ Interface the class is looked up as, probably wouldn't be used.
+ Default: zope.interface.Interface
+
Tests
-----
More information about the Checkins
mailing list