[Zope3-checkins] CVS: Products3/NewsSite/NewsItem - README.txt:1.2 __init__.py:1.2 add.pt:1.3 browser.py:1.3 configure.zcml:1.5 edit.pt:1.2 info.pt:1.3 interfaces.py:1.6 news.py:1.6
Tres Seaver
tseaver@zope.com
Wed, 26 Mar 2003 09:24:54 -0500
Update of /cvs-repository/Products3/NewsSite/NewsItem
In directory cvs.zope.org:/tmp/cvs-serv17870/NewsItem
Modified Files:
README.txt __init__.py add.pt browser.py configure.zcml
edit.pt info.pt interfaces.py news.py
Log Message:
- Trivial changes to ensure I own the repository files.
=== Products3/NewsSite/NewsItem/README.txt 1.1 => 1.2 ===
--- Products3/NewsSite/NewsItem/README.txt:1.1 Tue Mar 25 10:38:56 2003
+++ Products3/NewsSite/NewsItem/README.txt Wed Mar 26 09:24:53 2003
@@ -13,5 +13,8 @@
- add the following line your site.zml file:
- <grant permission="zopeproducts.NewsSite.NewsItem.ManageNewsItems" role="Manager" />
-
+ <grant
+ permission="zopeproducts.NewsSite.NewsItem.ManageNewsItems"
+ role="Manager"
+ />
+
=== Products3/NewsSite/NewsItem/__init__.py 1.1 => 1.2 ===
--- Products3/NewsSite/NewsItem/__init__.py:1.1 Tue Mar 25 07:52:50 2003
+++ Products3/NewsSite/NewsItem/__init__.py Wed Mar 26 09:24:53 2003
@@ -1 +1,17 @@
+##############################################################################
+#
+# Copyright (c) 2003 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (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.
+#
+##############################################################################
+"""NewsItem sub-package.
+$Id$
+"""
=== Products3/NewsSite/NewsItem/add.pt 1.2 => 1.3 ===
--- Products3/NewsSite/NewsItem/add.pt:1.2 Wed Mar 26 09:12:58 2003
+++ Products3/NewsSite/NewsItem/add.pt Wed Mar 26 09:24:53 2003
@@ -1,5 +1,7 @@
-<html metal:use-macro="views/standard_macros/page">
-<head><title>Edit News Item</title></head>
+<html metal:use-macro="views/standard_macros/page">
+<head>
+<title>Edit News Item</title>
+</head>
<body>
<div metal:fill-slot="body">
Enter your Newsmessage
@@ -10,4 +12,7 @@
</tr>
</table>
<input type="submit" name="submit" value=" Save Changes " />
-</form></div></body></html>
+</form>
+</div>
+</body>
+</html>
=== Products3/NewsSite/NewsItem/browser.py 1.2 => 1.3 ===
--- Products3/NewsSite/NewsItem/browser.py:1.2 Tue Mar 25 09:26:52 2003
+++ Products3/NewsSite/NewsItem/browser.py Wed Mar 26 09:24:53 2003
@@ -1,3 +1,20 @@
+##############################################################################
+#
+# Copyright (c) 2003 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (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.
+#
+##############################################################################
+"""Views for NewsItems.
+
+$Id$
+"""
from interfaces import INewsItem
class NewsItemInfoView:
=== Products3/NewsSite/NewsItem/configure.zcml 1.4 => 1.5 ===
--- Products3/NewsSite/NewsItem/configure.zcml:1.4 Wed Mar 26 07:14:50 2003
+++ Products3/NewsSite/NewsItem/configure.zcml Wed Mar 26 09:24:53 2003
@@ -4,7 +4,8 @@
<permission
id="zopeproducts.NewsSite.NewsItem.ManageNewsItems"
- title="Manage News Items" />
+ title="Manage News Items"
+ />
<content class=".news.NewsItem">
<implements
=== Products3/NewsSite/NewsItem/edit.pt 1.1 => 1.2 ===
--- Products3/NewsSite/NewsItem/edit.pt:1.1 Tue Mar 25 07:52:50 2003
+++ Products3/NewsSite/NewsItem/edit.pt Wed Mar 26 09:24:53 2003
@@ -1,5 +1,7 @@
<html metal:use-macro="views/standard_macros/page">
-<head><title>Edit News Item</title></head>
+<head>
+<title>Edit News Item</title>
+</head>
<body>
<div metal:fill-slot="body">
Enter yor News Message.
@@ -11,4 +13,7 @@
</tr>
</table>
<input type="submit" name="submit" value=" Save Changes " />
-</form></div></body></html>
+</form>
+</div>
+</body>
+</html>
=== Products3/NewsSite/NewsItem/info.pt 1.2 => 1.3 ===
--- Products3/NewsSite/NewsItem/info.pt:1.2 Wed Mar 26 09:02:23 2003
+++ Products3/NewsSite/NewsItem/info.pt Wed Mar 26 09:24:53 2003
@@ -1,5 +1,7 @@
-<html metal:use-macro="views/standard_macros/page">
-<head><title>News Item XXX dublin core title here</title></head>
+<html metal:use-macro="views/standard_macros/page">
+<head>
+<title>News Item XXX dublin core title here</title>
+</head>
<body>
<div metal:fill-slot="body">
<h2 tal:content="context/title">News Message</h2>
=== Products3/NewsSite/NewsItem/interfaces.py 1.5 => 1.6 ===
--- Products3/NewsSite/NewsItem/interfaces.py:1.5 Wed Mar 26 07:43:01 2003
+++ Products3/NewsSite/NewsItem/interfaces.py Wed Mar 26 09:24:53 2003
@@ -1,3 +1,20 @@
+##############################################################################
+#
+# Copyright (c) 2003 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (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.
+#
+##############################################################################
+"""NewsItem interfaces.
+
+$Id$
+"""
from zope.interface import Interface
from zope.schema import Text, TextLine, Datetime
=== Products3/NewsSite/NewsItem/news.py 1.5 => 1.6 ===
--- Products3/NewsSite/NewsItem/news.py:1.5 Wed Mar 26 05:52:50 2003
+++ Products3/NewsSite/NewsItem/news.py Wed Mar 26 09:24:53 2003
@@ -1,3 +1,20 @@
+##############################################################################
+#
+# Copyright (c) 2003 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (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.
+#
+##############################################################################
+"""NewsItem content class
+
+$Id$
+"""
import persistence
from zope.component import getAdapter
from zope.app.interfaces.dublincore import IZopeDublinCore