[Zope] Zope, database field formats, output format of queries

Dieter Maurer dieter@handshake.de
Mon, 22 Jan 2001 19:50:45 +0100 (CET)


Michael Schmidt writes:
 > Can you create fields in a zope based database where you force 
 > the fields to accept e.g. only letters "M" or "W" or any other 
 > other combination of your choice?
What do you mean with a Zope based database?

If you mean an external database, look for the datatypes and
restrictions, they support for column values. SQL 3 may
give you some of what you want.

Whether internal or external, you can control what goes through
Zope to your database. You will probably need External Methods to
get the full Python power, see "python.org" for documentation
about Pythons vast library.
You will be especially interested in the "re" module.
It implements (Perl style) regular expressions.


Dieter