예제 #1
0
파일: story_item.py 프로젝트: bogtan/Naaya
 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')
예제 #2
0
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')
예제 #5
0
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')
예제 #6
0
 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')
예제 #7
0
 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')
예제 #8
0
 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')
예제 #9
0
 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",
     )
예제 #10
0
 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",
     )
예제 #11
0
 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",
     )
예제 #12
0
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",
    )
예제 #13
0
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 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
예제 #15
0
    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')
예제 #17
0
    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')