[Checkins] SVN: z3c.macroviewlet/trunk/ Get ready for release.

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Sep 21 18:35:20 EDT 2007


Log message for revision 79815:
  Get ready for release.
  

Changed:
  _U  z3c.macroviewlet/trunk/
  A   z3c.macroviewlet/trunk/CHANGES.txt
  A   z3c.macroviewlet/trunk/LICENSE.txt
  U   z3c.macroviewlet/trunk/README.txt
  U   z3c.macroviewlet/trunk/setup.py
  U   z3c.macroviewlet/trunk/src/z3c/macroviewlet/README.txt

-=-

Property changes on: z3c.macroviewlet/trunk
___________________________________________________________________
Name: svn:ignore
   - bin
parts
develop-eggs
.installed.cfg

   + bin
eggs
parts
develop-eggs
.installed.cfg


Added: z3c.macroviewlet/trunk/CHANGES.txt
===================================================================
--- z3c.macroviewlet/trunk/CHANGES.txt	                        (rev 0)
+++ z3c.macroviewlet/trunk/CHANGES.txt	2007-09-21 22:35:19 UTC (rev 79815)
@@ -0,0 +1,8 @@
+=======
+CHANGES
+=======
+
+Version 1.0.0 (9/21/2007)
+-------------------------
+
+- Initial Release


Property changes on: z3c.macroviewlet/trunk/CHANGES.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.macroviewlet/trunk/LICENSE.txt
===================================================================
--- z3c.macroviewlet/trunk/LICENSE.txt	                        (rev 0)
+++ z3c.macroviewlet/trunk/LICENSE.txt	2007-09-21 22:35:19 UTC (rev 79815)
@@ -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.


Property changes on: z3c.macroviewlet/trunk/LICENSE.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: z3c.macroviewlet/trunk/README.txt
===================================================================
--- z3c.macroviewlet/trunk/README.txt	2007-09-21 22:10:45 UTC (rev 79814)
+++ z3c.macroviewlet/trunk/README.txt	2007-09-21 22:35:19 UTC (rev 79815)
@@ -1,2 +1,2 @@
 Macro viewlets are Zope 3 UI components. In particular they allow the developer
-to specify viewlets based on macros.
+to specify viewlets based on macros instead of entire templates.

Modified: z3c.macroviewlet/trunk/setup.py
===================================================================
--- z3c.macroviewlet/trunk/setup.py	2007-09-21 22:10:45 UTC (rev 79814)
+++ z3c.macroviewlet/trunk/setup.py	2007-09-21 22:35:19 UTC (rev 79815)
@@ -26,14 +26,16 @@
     version='1.0.0',
     author = "Roger Ineichen and the Zope Community",
     author_email = "zope3-dev at zope.org",
-    description = "Macro viewlets are a concept for register viewlets based on macros",
+    description = "Viewlets based on ZPT macros.",
     long_description=(
         read('README.txt')
         + '\n' +
         'Detailed Documentation\n'
         '**********************\n'
-        + '\n' +
+        + '\n\n' +
         read('src', 'z3c', 'macroviewlet', 'README.txt')
+        + '\n\n' +
+        read('CHANGES.txt')
         ),
     license = "ZPL 2.1",
     keywords = "zope3 template macro viewlet zpt pagetemplate",
@@ -74,7 +76,6 @@
         'zope.publisher',
         'zope.schema',
         'zope.security',
-        'zope.testing',
         'zope.traversing',
         ],
     dependency_links = ['http://download.zope.org/distribution'],

Modified: z3c.macroviewlet/trunk/src/z3c/macroviewlet/README.txt
===================================================================
--- z3c.macroviewlet/trunk/src/z3c/macroviewlet/README.txt	2007-09-21 22:10:45 UTC (rev 79814)
+++ z3c.macroviewlet/trunk/src/z3c/macroviewlet/README.txt	2007-09-21 22:35:19 UTC (rev 79815)
@@ -2,10 +2,10 @@
 Macro Provider
 ==============
 
-This package provides a ZCML directive which allows you to register a macro 
-deined in a template as a viewlet. Such a macro based viewlet acts 100% the 
-same as a other viewlets. It could be very handy if you like to write a layout 
-template in one page template and define selective parts as viewlets without 
+This package provides a ZCML directive which allows you to register a macro
+deined in a template as a viewlet. Such a macro based viewlet acts 100% the
+same as a other viewlets. It could be very handy if you like to write a layout
+template in one page template and define selective parts as viewlets without
 to add any additional HTML. Let me show how this will look like:
 
 The layout/master template can look like this:
@@ -28,8 +28,8 @@
   </body>
   </html>
 
-The tempalte aboce defines a ITitle provider which contains the definition 
-for a macro in itself. Yo have to define a viewlet manager within the 
+The tempalte aboce defines a ITitle provider which contains the definition
+for a macro in itself. Yo have to define a viewlet manager within the
 zope.viewlet ZCMl directive which provides ITitle as a viewlet manager.
 After that you can register the template above as a layout template wthin
 the z3c:layout ZCML directive like:
@@ -52,19 +52,19 @@
       />
 
 As you can see the ZCML configuration directive above uses ``title`` as the
-macro attribute and uses ITitle as the viewlet manager. This will use the 
-following part of the template.pt 
+macro attribute and uses ITitle as the viewlet manager. This will use the
+following part of the template.pt
 
   <title>Pagelet skin</title>
 
-and registers it as a viewlet. This viewlet get rendered in the ITitle 
+and registers it as a viewlet. This viewlet get rendered in the ITitle
 provider. Ay you can see you can use a complete layout tempalte and use it
-as it is. And here it comes, you can offer a included viewlet manager 
+as it is. And here it comes, you can offer a included viewlet manager
 rendering the viewlet which can get overriden for other context or views etc.
 You also can register more the one viewlet for the ITitle viewlet manager.
 Wich of corse makes no sense in our special title tag example.
 
-Let's show this in some tests. We start with creating a content object that 
+Let's show this in some tests. We start with creating a content object that
 is used as a view context later:
 
   >>> import zope.interface
@@ -76,7 +76,7 @@
 
   >>> content = Content()
 
-We also create a temp dir for sample templates which we define later for 
+We also create a temp dir for sample templates which we define later for
 testing:
 
   >>> import os, tempfile
@@ -147,7 +147,7 @@
   >>> manager = zope.component.provideAdapter(
   ...     title,
   ...     (zope.interface.Interface, TestRequest, IBrowserView),
-  ...     IViewletManager, 
+  ...     IViewletManager,
   ...     name='ITitle')
 
 
@@ -167,7 +167,7 @@
   </body>
   </body></html>
 
-As you can see there is no title rendered. Now we can define the macro 
+As you can see there is no title rendered. Now we can define the macro
 viewlet...
 
   >>> from zope.app.pagetemplate import viewpagetemplatefile
@@ -179,7 +179,7 @@
   >>> from zope.viewlet.interfaces import IViewlet
   >>> zope.component.provideAdapter(
   ...     macroViewlet,
-  ...     (zope.interface.Interface, IDefaultBrowserLayer, IBrowserView, 
+  ...     (zope.interface.Interface, IDefaultBrowserLayer, IBrowserView,
   ...      ITitle),
   ...     IViewlet,
   ...     name='title')



More information about the Checkins mailing list