[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Forms/Views/Browser/tests - SchemaTestObject.py:1.8 testFormView.py:1.13
Jim Fulton
jim@zope.com
Thu, 5 Sep 2002 14:55:32 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/Forms/Views/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv21741/lib/python/Zope/App/Forms/Views/Browser/tests
Modified Files:
SchemaTestObject.py testFormView.py
Log Message:
Moved the Schema package into the Zope package.
Also cleaned up a bunch of "from x import *".
=== Zope3/lib/python/Zope/App/Forms/Views/Browser/tests/SchemaTestObject.py 1.7 => 1.8 ===
--- Zope3/lib/python/Zope/App/Forms/Views/Browser/tests/SchemaTestObject.py:1.7 Wed Sep 4 09:44:24 2002
+++ Zope3/lib/python/Zope/App/Forms/Views/Browser/tests/SchemaTestObject.py Thu Sep 5 14:55:01 2002
@@ -15,8 +15,8 @@
$Id$
"""
from Interface import Interface
-import Schema
-from Schema.Converter import StrToIntConverter
+import Zope.Schema
+from Zope.Schema.Converter import StrToIntConverter
from Zope.Publisher.HTTP.tests.TestRequest import TestRequest
from Zope.Publisher.Browser.IBrowserView import IBrowserView
@@ -38,7 +38,7 @@
return IBrowserView
-class Email(Schema.Str):
+class Email(Zope.Schema.Str):
"""A simple customized field."""
pass
@@ -46,15 +46,15 @@
class ITestObject(Interface):
"""A simple Schema."""
- id = Schema.Int(
+ id = Zope.Schema.Int(
title="Id",
required=1)
- title = Schema.Str(
+ title = Zope.Schema.Str(
title="Title",
required=0)
- data = Schema.Str(
+ data = Zope.Schema.Str(
title="Data",
description="Data stored by the object",
required=0)
=== Zope3/lib/python/Zope/App/Forms/Views/Browser/tests/testFormView.py 1.12 => 1.13 ===
--- Zope3/lib/python/Zope/App/Forms/Views/Browser/tests/testFormView.py:1.12 Wed Sep 4 09:44:24 2002
+++ Zope3/lib/python/Zope/App/Forms/Views/Browser/tests/testFormView.py Thu Sep 5 14:55:01 2002
@@ -24,7 +24,7 @@
from Zope.Publisher.Browser.IBrowserView import IBrowserView
from Zope.App.Forms.Views.Browser.FormView import FormView
-from Schema.IField import IStr
+from Zope.Schema.IField import IStr
from Zope.App.Forms.Views.Browser.Widget import TextWidget, FileWidget
import SchemaTestObject