X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/8a303e66fd249f6bb2f9ba0522eca355fe401ab6..c49b6c19c96514ff27166c337314a31ef4e414aa:/__init__.py?ds=sidebyside diff --git a/__init__.py b/__init__.py index d4f4f53..b269824 100755 --- a/__init__.py +++ b/__init__.py @@ -38,7 +38,11 @@ import GroupDataTool 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 @@ -57,8 +61,9 @@ tools = ( MembershipTool.MembershipTool , RegistrationTool.RegistrationTool , CalendarTool.CalendarTool , AttachmentTool.AttachmentTool - , catalog.CatalogTool ) +if __solr_ok : + tools += (catalog.CatalogTool,) # register files extensions registerFileExtension('ttf', FSFile) @@ -93,7 +98,12 @@ validTags = default_cmf_utils.NASTY_TAGS.copy() 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)