Commit a3189124 authored by Ayush Tiwari's avatar Ayush Tiwari

erp_catalog: Add SQL Method portal_type in allowed_types for ERP5Catalog class

parent 3167be81
<allowed_content_type_list> <allowed_content_type_list>
<portal_type id="Catalog"> <portal_type id="Catalog">
<item>Python Script</item> <item>Python Script</item>
<item>SQL Method</item>
</portal_type> </portal_type>
<portal_type id="Catalog Tool"> <portal_type id="Catalog Tool">
<item>Catalog</item> <item>Catalog</item>
......
Catalog Tool | Catalog Catalog Tool | Catalog
Catalog | Python Script Catalog | Python Script
\ No newline at end of file Catalog | SQL Method
\ No newline at end of file
...@@ -52,7 +52,7 @@ class ERP5Catalog(Folder, Catalog): ...@@ -52,7 +52,7 @@ class ERP5Catalog(Folder, Catalog):
meta_type = "ERP5 Catalog" meta_type = "ERP5 Catalog"
portal_type = 'Catalog' portal_type = 'Catalog'
allowed_types = ('Python Script',) allowed_types = ('Python Script', 'SQL Method',)
#TODO(low priority): Add an icon to display at ERP5 Zope interface #TODO(low priority): Add an icon to display at ERP5 Zope interface
icon = None icon = None
# Activate isRADContent cause we need to generate accessors and default values # Activate isRADContent cause we need to generate accessors and default values
......
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