[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/SQLScript - ISQLScript.py:1.6

Martijn Faassen m.faassen@vet.uu.nl
Wed, 4 Sep 2002 09:44:59 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/SQLScript
In directory cvs.zope.org:/tmp/cvs-serv31848/python/Zope/App/OFS/Content/SQLScript

Modified Files:
	ISQLScript.py 
Log Message:
Refactored Forms (and Schema).

  * A FormView now specifies a single schema explicitly as the 'schema'
    (class) attribute. A schema is simply an interface with Field attributes
    on it.

  * The FormView code now uses the Schema package more for its own
    implementation, instead of trying to reimplement things itself.

  * got rid of the 'id' attribute for fields. Fields now already know what
    name they have, because of the Interface package setting __name__.
    Use getName() to get the field name.



=== Zope3/lib/python/Zope/App/OFS/Content/SQLScript/ISQLScript.py 1.5 => 1.6 ===
--- Zope3/lib/python/Zope/App/OFS/Content/SQLScript/ISQLScript.py:1.5	Thu Aug  8 11:05:59 2002
+++ Zope3/lib/python/Zope/App/OFS/Content/SQLScript/ISQLScript.py	Wed Sep  4 09:44:29 2002
@@ -35,33 +35,28 @@
     """A persistent script that can execute SQL."""
 
     connectionName = SQLConnectionName(
-        id="connectionName",
         title="Connection Name",
         description="The Connection Name for the connection to be used.",
         required=1)
 
     arguments = Schema.Str(
-        id="arguments",
         title="Arguments",
         description="A set of attributes that can be used during the DTML "
                     "rendering process to provide dynamic data.",
         required=0)
 
     source = Schema.Str(
-        id="source",
         title="Source",
         description="The source of the page template.",
         required=1)
 
     maxCache = Schema.Int(
-        id="maxCache",
         title="Maximum results to cache",
         description="The size of the SQL script cache.",
         min=0,
         required=1)
 
     cacheTime = Schema.Int(
-        id="cacheTime",
         title="Maximum time (sec) to cache",
         description="The time in seconds that results are cached. "
                     "Setting to zero disables caching.",