[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Formulator/Fields/Specific - ContentTypeField.py:1.1.2.1 ContentTypeField.pyc:1.1.2.1 DataField.py:1.1.2.1 DataField.pyc:1.1.2.1 __init__.py:1.1.2.1 __init__.pyc:1.1.2.1

Stephan Richter srichter@cbu.edu
Fri, 25 Jan 2002 09:11:10 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Formulator/Fields/Specific
In directory cvs.zope.org:/tmp/cvs-serv20682/Formulator/Fields/Specific

Added Files:
      Tag: Zope-3x-branch
	ContentTypeField.py ContentTypeField.pyc DataField.py 
	DataField.pyc __init__.py __init__.pyc 
Log Message:
- Initial check-in of the Formulator code
- Even though not everything works (specifically the widgets are in bad 
  shape), I am checking that stuff in, so that Jim, Martijn F. and I can
  better work together.
- The FileEdit screen (which will be checked in in a minute) uses already
  formulator.
- The validators are closed to finished.
- I think we have to rethink some of the design, simply because it is too
  hard right now to create a field and a view for a property, even though
  I provided already some handy methods. However Formulator does not 
  depend on Property-driven content objects.
- Please contact me (srichter@cbu.edu) or the Zope3 mailining list to 
  discuss issues and design.


=== Added File Zope3/lib/python/Zope/App/Formulator/Fields/Specific/ContentTypeField.py ===
##############################################################################
#
# Copyright (c) 2001 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
# 
##############################################################################
"""

Revision information: $Id: ContentTypeField.py,v 1.1.2.1 2002/01/25 14:11:07 srichter Exp $
"""

from Zope.App.Formulator.Fields.Generic.StringField import StringField
from Zope.App.Formulator.Fields.PropertyField import PropertyField
from Zope.App.Formulator.Validators import StringValidator


class ContentTypeField(StringField, PropertyField):
    """ """

    __implements__ = StringField.__implements__, PropertyField.__implements__


    id = 'contentType'
    title = 'Content Type'
    description = 'The content type identifies the type of data.'
    default = 'text/plain'
    validator = StringValidator.StringValidator()




=== Added File Zope3/lib/python/Zope/App/Formulator/Fields/Specific/ContentTypeField.pyc ===
-í
ÎnQ<c       s\     d  Z    d k l Z  d k l Z  d k l Z  d e e f d „  ƒ  YZ d S(   s   

Revision information: $Id: ContentTypeField.pyc,v 1.1.2.1 2002/01/25 14:11:07 srichter Exp $
(   s   StringField(   s
   PropertyField(   s   StringValidators   ContentTypeFieldc      sV    d  Z    e i e i f Z  d Z  d Z  d Z   d Z ! e i ƒ  Z	 RS(   s    s   contentTypes   Content Types-   The content type identifies the type of data.s
   text/plain(
   s   __doc__s   StringFields   __implements__s
   PropertyFields   ids   titles   descriptions   defaults   StringValidators	   validator(    (    (    sM   /opt/Zope3/lib/python/Zope/App/Formulator/Fields/Specific/ContentTypeField.pys   ContentTypeField s   					N(   s   __doc__s.   Zope.App.Formulator.Fields.Generic.StringFields   StringFields(   Zope.App.Formulator.Fields.PropertyFields
   PropertyFields   Zope.App.Formulator.Validatorss   StringValidators   ContentTypeField(   s   StringValidators   StringFields
   PropertyFields   ContentTypeField(    (    sM   /opt/Zope3/lib/python/Zope/App/Formulator/Fields/Specific/ContentTypeField.pys   ? s   

=== Added File Zope3/lib/python/Zope/App/Formulator/Fields/Specific/DataField.py ===
##############################################################################
#
# Copyright (c) 2001 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
# 
##############################################################################
"""

Revision information: $Id: DataField.py,v 1.1.2.1 2002/01/25 14:11:07 srichter Exp $
"""

from Zope.App.Formulator.Fields.Generic.FileField import FileField
from Zope.App.Formulator.Fields.PropertyField import PropertyField
from Zope.App.Formulator.Validators import StringValidator


class DataField(FileField, PropertyField):
    """ """

    __implements__ = FileField.__implements__, PropertyField.__implements__

    id = 'data'
    title = 'Data'
    description = 'The actual content of the object.'
    default = None
    validator = StringValidator.StringValidator()




=== Added File Zope3/lib/python/Zope/App/Formulator/Fields/Specific/DataField.pyc ===
-í
£nQ<c       s\     d  Z    d k l Z  d k l Z  d k l Z  d e e f d „  ƒ  YZ d S(   s   

Revision information: $Id: DataField.pyc,v 1.1.2.1 2002/01/25 14:11:07 srichter Exp $
(   s	   FileField(   s
   PropertyField(   s   StringValidators	   DataFieldc      sV    d  Z    e i e i f Z  d Z  d Z  d Z  e Z   e	 i	 ƒ  Z
 RS(   s    s   datas   Datas!   The actual content of the object.(   s   __doc__s	   FileFields   __implements__s
   PropertyFields   ids   titles   descriptions   Nones   defaults   StringValidators	   validator(    (    (    sF   /opt/Zope3/lib/python/Zope/App/Formulator/Fields/Specific/DataField.pys	   DataField s   					N(   s   __doc__s,   Zope.App.Formulator.Fields.Generic.FileFields	   FileFields(   Zope.App.Formulator.Fields.PropertyFields
   PropertyFields   Zope.App.Formulator.Validatorss   StringValidators	   DataField(   s   StringValidators
   PropertyFields	   DataFields	   FileField(    (    sF   /opt/Zope3/lib/python/Zope/App/Formulator/Fields/Specific/DataField.pys   ? s   

=== Added File Zope3/lib/python/Zope/App/Formulator/Fields/Specific/__init__.py ===


=== Added File Zope3/lib/python/Zope/App/Formulator/Fields/Specific/__init__.pyc ===
-í
Ì6N<c       s     d  S(   N(    (    (    (    sE   /opt/Zope3/lib/python/Zope/App/Formulator/Fields/Specific/__init__.pys   ?  s