import RegistrationTool
import CalendarTool
import AttachmentTool
-import catalog
+try :
+ import catalog
+ __solr_ok = True
+except ImportError :
+ __solr_ok = False
from PloneMisc import IndexIterator, Batch
import patch
, RegistrationTool.RegistrationTool
, CalendarTool.CalendarTool
, AttachmentTool.AttachmentTool
- , catalog.CatalogTool
)
+if __solr_ok :
+ tools += (catalog.CatalogTool,)
# register files extensions
registerFileExtension('ttf', FSFile)
for tag in validTags.keys() :
validTags[tag] = 1
-VALID_TAGS = {'font': 1, 'param' : 1, 'iframe' : 1}
+VALID_TAGS = {'font': 1,
+ 'param' : 1,
+ 'iframe' : 1,
+ 'form' : 1,
+ 'input' : 1,
+ 'textarea' : 1}
validTags.update(VALID_TAGS)