def add_html(self, REQUEST=None, RESPONSE=None): """ """ parent = self.aq_parent return self.getFormsTool().getContent({ 'here': self, 'submitter_info_html': submitter.info_html(parent, REQUEST), }, 'story_add')
def event_add_html(self, REQUEST=None, RESPONSE=None): """ """ from Products.NaayaBase.NyContentType import get_schema_helper_for_metatype form_helper = get_schema_helper_for_metatype(self, config['meta_type']) return self.getFormsTool().getContent({ 'here': self, 'kind': config['meta_type'], 'action': 'addNyEvent', 'form_helper': form_helper, 'submitter_info_html': submitter.info_html(self, REQUEST), }, 'event_add')
def market_place_publication(self, REQUEST=None, RESPONSE=None): """ Place your product/service on the global sust tour. Market Place """ meta_type = 'Naaya Publication' form_helper = get_schema_helper_for_metatype(self, meta_type) return self.getFormsTool().getContent({ 'here': self, 'kind': meta_type, 'action': 'addNyPublication_market', 'form_helper': form_helper, 'submitter_info_html': submitter.info_html(self, REQUEST), }, 'publication_add')
def disseminate_publication(self, REQUEST=None, RESPONSE=None): """ Disseminate your sust. tour publications or tools (NyPublication) """ meta_type = 'Naaya Publication' form_helper = get_schema_helper_for_metatype(self, meta_type) return self.getFormsTool().getContent({ 'here': self, 'kind': meta_type, 'action': 'addNyPublication_disseminate', 'form_helper': form_helper, 'submitter_info_html': submitter.info_html(self, REQUEST), }, 'publication_add')
def exfile_add_html(self, REQUEST=None, RESPONSE=None): """ """ from Products.NaayaBase.NyContentType import get_schema_helper_for_metatype form_helper = get_schema_helper_for_metatype(self, config['meta_type']) return self.getFormsTool().getContent({ 'here': self, 'kind': config['meta_type'], 'action': 'addNyExFile', 'form_helper': form_helper, 'submitter_info_html': submitter.info_html(self, REQUEST), }, 'exfile_add')
def disseminate_publication(self, REQUEST=None, RESPONSE=None): """ Disseminate your sust. tour publications or tools (NyPublication) """ meta_type = 'Naaya Publication' form_helper = get_schema_helper_for_metatype(self, meta_type) return self.getFormsTool().getContent( { 'here': self, 'kind': meta_type, 'action': 'addNyPublication_disseminate', 'form_helper': form_helper, 'submitter_info_html': submitter.info_html(self, REQUEST), }, 'publication_add')
def market_place_publication(self, REQUEST=None, RESPONSE=None): """ Place your product/service on the global sust tour. Market Place """ meta_type = 'Naaya Publication' form_helper = get_schema_helper_for_metatype(self, meta_type) return self.getFormsTool().getContent( { 'here': self, 'kind': meta_type, 'action': 'addNyPublication_market', 'form_helper': form_helper, 'submitter_info_html': submitter.info_html(self, REQUEST), }, 'publication_add')
def add_html(self, REQUEST=None, RESPONSE=None): """ """ from Products.NaayaBase.NyContentType import \ get_schema_helper_for_metatype form_helper = get_schema_helper_for_metatype(self, config['meta_type']) parent = self.aq_parent return self.getFormsTool().getContent({ 'here': self, 'kind': config['meta_type'], 'action': 'process_add', 'form_helper': form_helper, 'submitter_info_html': submitter.info_html(parent, REQUEST), }, 'document_add')
def disseminate_publication(self, REQUEST=None, RESPONSE=None): """ Disseminate your sust. tour publications or tools (NyPublication) """ meta_type = "Naaya Publication" form_helper = get_schema_helper_for_metatype(self, meta_type) return self.getFormsTool().getContent( { "here": self, "kind": meta_type, "action": "addNyPublication_disseminate", "form_helper": form_helper, "submitter_info_html": submitter.info_html(self, REQUEST), }, "publication_add", )
def market_place_publication(self, REQUEST=None, RESPONSE=None): """ Place your product/service on the global sust tour. Market Place """ meta_type = "Naaya Publication" form_helper = get_schema_helper_for_metatype(self, meta_type) return self.getFormsTool().getContent( { "here": self, "kind": meta_type, "action": "addNyPublication_market", "form_helper": form_helper, "submitter_info_html": submitter.info_html(self, REQUEST), }, "publication_add", )
def show_on_atlas(self, REQUEST=None, RESPONSE=None): """ Show your organisation on the global DestiNet Atlas """ meta_type = "Naaya Contact" form_helper = get_schema_helper_for_metatype(self, meta_type) return self.getFormsTool().getContent( { "here": self, "kind": meta_type, "action": "addNyContact_who_who", "form_helper": form_helper, "submitter_info_html": submitter.info_html(self, REQUEST), }, "contact_add", )
def geopoint_add_html(self, REQUEST=None, RESPONSE=None): """ """ from Products.NaayaBase.NyContentType import get_schema_helper_for_metatype form_helper = get_schema_helper_for_metatype(self, config["meta_type"]) return self.getFormsTool().getContent( { "here": self, "kind": config["meta_type"], "action": "addNyGeoPoint", "form_helper": form_helper, "submitter_info_html": submitter.info_html(self, REQUEST), }, "geopoint_add", )
def localizedbfile_add_html(self, REQUEST=None, RESPONSE=None): """ Create a Localized BFile object """ from Products.NaayaBase.NyContentType import get_schema_helper_for_metatype form_helper = get_schema_helper_for_metatype(self, config['meta_type']) d = { 'here': self, 'kind': config['meta_type'], 'action': 'addNyLocalizedBFile', 'form_helper': form_helper, 'submitter_info_html': submitter.info_html(self, REQUEST), } to_return = self.getFormsTool().getContent(d, 'localizedbfile_add') return to_return
def add_html(self, REQUEST=None, RESPONSE=None): """ """ from Products.NaayaBase.NyContentType import get_schema_helper_for_metatype form_helper = get_schema_helper_for_metatype(self, config["meta_type"]) parent = self.aq_parent return self.getFormsTool().getContent( { "here": self, "kind": config["meta_type"], "action": "process_add", "form_helper": form_helper, "submitter_info_html": submitter.info_html(parent, REQUEST), }, "story_add", )
def show_on_atlas(self, REQUEST=None, RESPONSE=None): """ Show your organisation on the global DestiNet Atlas """ meta_type = 'Naaya Contact' form_helper = get_schema_helper_for_metatype(self, meta_type) schema_tool = self.getSite().getSchemaTool() register_extra_schema = schema_tool['registration'] register_helper = SchemaFormHelper(register_extra_schema, self) groups_widget = register_helper._get_renderer( 'groups', register_extra_schema['groups-property'], False) return self.getFormsTool().getContent({ 'here': self, 'kind': meta_type, 'action': 'addNyContact_who_who', 'form_helper': form_helper, 'submitter_info_html': submitter.info_html(self, REQUEST), 'groups_widget':groups_widget, }, 'contact_add')
def show_on_atlas(self, REQUEST=None, RESPONSE=None): """ Show your organisation on the global DestiNet Atlas """ meta_type = 'Naaya Contact' form_helper = get_schema_helper_for_metatype(self, meta_type) schema_tool = self.getSite().getSchemaTool() register_extra_schema = schema_tool['registration'] register_helper = SchemaFormHelper(register_extra_schema, self) groups_widget = register_helper._get_renderer( 'groups', register_extra_schema['groups-property'], False) return self.getFormsTool().getContent( { 'here': self, 'kind': meta_type, 'action': 'addNyContact_who_who', 'form_helper': form_helper, 'submitter_info_html': submitter.info_html(self, REQUEST), 'groups_widget': groups_widget, }, 'contact_add')