[Checkins] SVN: z3c.viewtemplate/trunk/ eggification
Jürgen Kartnaller
juergen at kartnaller.at
Sat Sep 23 13:33:45 EDT 2006
Log message for revision 70356:
eggification
Changed:
A z3c.viewtemplate/trunk/README.txt
A z3c.viewtemplate/trunk/setup.cfg
A z3c.viewtemplate/trunk/setup.py
U z3c.viewtemplate/trunk/src/z3c/__init__.py
-=-
Added: z3c.viewtemplate/trunk/README.txt
===================================================================
--- z3c.viewtemplate/trunk/README.txt 2006-09-23 17:32:49 UTC (rev 70355)
+++ z3c.viewtemplate/trunk/README.txt 2006-09-23 17:33:44 UTC (rev 70356)
@@ -0,0 +1,19 @@
+This package allows us to separate the registration of the view code and the
+view templates.
+
+Why is this a good thing?
+
+While developing customizable applications that require us to develop multiple
+customer UIs for one particular application, we noticed there is a fine but
+clear distinction between skins and layers. Layers contain the logic to
+prepare data for presentation output, namely the view classes. Skins, on the
+other hand contain the resources to generate the UI, for example templates,
+images and CSS files.
+
+The problem of the existing infrastructure is that code, template and layer are all
+hardlinked in one zcml configuration directive of the view component -- page,
+content provider, viewlet. This package separates this triplet -- code, template,
+layer -- into two pairs, code/layer and template/skin. No additional
+components are introduced, since skins and layers are physically the same
+components.
+
Property changes on: z3c.viewtemplate/trunk/README.txt
___________________________________________________________________
Name: svn:eol-style
+ native
Added: z3c.viewtemplate/trunk/setup.cfg
===================================================================
--- z3c.viewtemplate/trunk/setup.cfg 2006-09-23 17:32:49 UTC (rev 70355)
+++ z3c.viewtemplate/trunk/setup.cfg 2006-09-23 17:33:44 UTC (rev 70356)
@@ -0,0 +1,3 @@
+[egg_info]
+tag_build = .dev
+tag_svn_revision = 1
Added: z3c.viewtemplate/trunk/setup.py
===================================================================
--- z3c.viewtemplate/trunk/setup.py 2006-09-23 17:32:49 UTC (rev 70355)
+++ z3c.viewtemplate/trunk/setup.py 2006-09-23 17:33:44 UTC (rev 70356)
@@ -0,0 +1,19 @@
+#!python
+from setuptools import setup, find_packages
+
+setup(name='z3c.viewtemplate',
+ version='0.1.0',
+ author = "Zope Community",
+ author_email = "zope3-dev at zope.org",
+ description = open("README.txt").read(),
+ license = "ZPL 2.1",
+ keywords = "view template zope zope3",
+ url='http://svn.zope.org/z3c.viewtemplate',
+
+ zip_safe=False,
+ packages=find_packages('src'),
+ include_package_data=True,
+ package_dir = {'':'src'},
+ namespace_packages=['z3c',],
+ )
+
Property changes on: z3c.viewtemplate/trunk/setup.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: z3c.viewtemplate/trunk/src/z3c/__init__.py
===================================================================
--- z3c.viewtemplate/trunk/src/z3c/__init__.py 2006-09-23 17:32:49 UTC (rev 70355)
+++ z3c.viewtemplate/trunk/src/z3c/__init__.py 2006-09-23 17:33:44 UTC (rev 70356)
@@ -0,0 +1,6 @@
+try:
+ # Declare this a namespace package if pkg_resources is available.
+ import pkg_resources
+ pkg_resources.declare_namespace('z3c')
+except ImportError:
+ pass
More information about the Checkins
mailing list