Commit 024e8b28 authored by Tres Seaver's avatar Tres Seaver

Collector #1076: suppress indexes/meta-data with private names

parent b5bc623f
......@@ -238,6 +238,10 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
if schema.has_key(name):
raise 'Column Exists', 'The column exists'
if name[0] == '_':
raise 'Invalid Meta-Data Name',
'Cannot cache fields beginning with "_"'
if not schema.has_key(name):
if schema.values():
......@@ -301,6 +305,9 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
if self.indexes.has_key(name):
raise 'Index Exists', 'The index specified already exists'
if name[0] == '_':
raise 'Invalid Index Name', 'Cannot index fields beginning with "_"'
# this is currently a succesion of hacks. Indexes should be
# pluggable and managable
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment