[Zope3-checkins] CVS: Products3/HelloPackage - HelloModule.py:1.2 IHelloModule.py:1.2 configure.zcml:1.3 configure_bare.zcml:1.2
Marius Gedminas
mgedmin@codeworks.lt
Wed, 5 Feb 2003 04:42:06 -0500
Update of /cvs-repository/Products3/HelloPackage
In directory cvs.zope.org:/tmp/cvs-serv30156
Modified Files:
HelloModule.py IHelloModule.py configure.zcml
configure_bare.zcml
Log Message:
Bring HelloPackage up to date after the grand renaming
=== Products3/HelloPackage/HelloModule.py 1.1 => 1.2 ===
--- Products3/HelloPackage/HelloModule.py:1.1 Wed Dec 4 10:20:58 2002
+++ Products3/HelloPackage/HelloModule.py Wed Feb 5 04:42:01 2003
@@ -15,10 +15,10 @@
$Id$
"""
from IHelloModule import IHello
-from Persistence import Persistent
-
+from persistence import Persistent
+
class HelloClass(Persistent):
__implements__ = IHello
-
+
def getHello(self):
return "Hello world"
=== Products3/HelloPackage/IHelloModule.py 1.1 => 1.2 ===
--- Products3/HelloPackage/IHelloModule.py:1.1 Wed Dec 4 10:20:58 2002
+++ Products3/HelloPackage/IHelloModule.py Wed Feb 5 04:42:01 2003
@@ -15,7 +15,7 @@
$Id$
"""
-from Interface import Interface
+from zope.interface import Interface
class IHello(Interface):
"""Hello
=== Products3/HelloPackage/configure.zcml 1.2 => 1.3 ===
--- Products3/HelloPackage/configure.zcml:1.2 Wed Dec 4 16:34:02 2002
+++ Products3/HelloPackage/configure.zcml Wed Feb 5 04:42:01 2003
@@ -1,4 +1,4 @@
-<!-- An extensively commented configure.zcml. If you want to see
+<!-- An extensively commented configure.zcml. If you want to see
the same file without any comments, check out 'configure_bare.zcml
-->
@@ -24,19 +24,19 @@
This is defined by HelloClass in HelloModule.
-->
<content class=".HelloModule.HelloClass">
-
- <!--
- More information about making new Hello objects.
-
- id is used later to refer to it in the add menu. Permission is
- used to restrict who is allowed to add Hello objects.
- -->
- <factory
+
+ <!--
+ More information about making new Hello objects.
+
+ id is used later to refer to it in the add menu. Permission is
+ used to restrict who is allowed to add Hello objects.
+ -->
+ <factory
id="Hello"
- permission="Zope.ManageContent"
+ permission="zope.ManageContent"
title="Hello world"
description="A simple hello world object." />
-
+
<!--
Permissions on using Hello objects.
@@ -44,11 +44,11 @@
more of these, and attributes can be a list as well ('foo bar baz')
-->
<require
- permission="Zope.View"
+ permission="zope.View"
attributes="getHello" />
</content>
-<!--
+<!--
Create a hello.html view for Hello object.
The view has a name (hello.html), it applies to an interface
@@ -56,24 +56,24 @@
hello.pt. Only people with the 'Zope.View' permission may use this
view.
-->
-<browser:view
+<browser:page
name="hello.html"
for=".IHelloModule.IHello"
template="hello.pt"
- permission="Zope.View" />
+ permission="zope.View" />
<!--
'hello.html' is the default view for the Hello object.
-->
-<browser:defaultView
- name="hello.html"
+<browser:defaultView
+ name="hello.html"
for=".IHelloModule.IHello" />
<!--
Add the Hello object to the add menu.
-The add menu is called 'add_content'. It's always a special kind of
-view on the Zope.App.OFS.Container.IAdding interface.
+The add menu is called 'add_content'. It's always a special kind of
+view on the Zope.App.OFS.Container.IAdding interface.
'action' refers to the id of the content object to add.
@@ -83,9 +83,9 @@
-->
<browser:menuItem
menu="add_content"
- for="Zope.App.OFS.Container.IAdding."
+ for="zope.app.interfaces.container.IAdding."
action="Hello"
- title="Hello world"
+ title="Hello world"
description="An object for hello worlding." />
</zopeConfigure>
=== Products3/HelloPackage/configure_bare.zcml 1.1 => 1.2 ===
--- Products3/HelloPackage/configure_bare.zcml:1.1 Wed Dec 4 16:34:02 2002
+++ Products3/HelloPackage/configure_bare.zcml Wed Feb 5 04:42:01 2003
@@ -7,10 +7,11 @@
<content class=".HelloModule.HelloClass">
<factory
id="Hello"
- permission="Zope.ManageContent"
+ permission="zope.ManageContent"
title="Hello world"
+ description="A simple hello world object." />
<require
- permission="Zope.View"
+ permission="zope.View"
attributes="getHello" />
</content>
@@ -18,17 +19,17 @@
name="hello.html"
for=".IHelloModule.IHello"
template="hello.pt"
- permission="Zope.View" />
+ permission="zope.View" />
-<browser:defaultView
- name="hello.html"
+<browser:defaultView
+ name="hello.html"
for=".IHelloModule.IHello" />
<browser:menuItem
menu="add_content"
- for="Zope.App.OFS.Container.IAdding."
+ for="zope.app.interfaces.container.IAdding."
action="Hello"
- title="Hello world"
+ title="Hello world"
description="An object for hello worlding." />
</zopeConfigure>