Exemple #1
0
    def test(self):
        """
        test method
        """
        dummy = _(u'a dummy string')

        return {'dummy': dummy}
Exemple #2
0
    def test(self):
        """
        test method
        """
        dummy = _(u'a dummy string')

        return {'dummy': dummy}
Exemple #3
0
RenoPrimeSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema((

    # -*- Your Archetypes field definitions here ... -*-
    atapi.TextField(
        'text_above_map',
        required=False,
        searchable=True,
        primary=True,
        storage=atapi.AnnotationStorage(migrate=True),
        validators=('isTidyHtmlWithCleanup', ),
        #validators=('isTidyHtml',),
        default_output_type='text/x-html-safe',
        widget=atapi.RichWidget(
            description='',
            label=_(u'label_before_map', default=u'Text before map'),
            rows=25,
            allow_file_upload=zconf.ATDocument.allow_document_upload),
    ),
    atapi.TextField(
        'text_below_map',
        required=False,
        searchable=True,
        storage=atapi.AnnotationStorage(migrate=True),
        validators=('isTidyHtmlWithCleanup', ),
        #validators=('isTidyHtml',),
        default_output_type='text/x-html-safe',
        widget=atapi.RichWidget(
            description='',
            label=_(u'label_below_map',
                    default=u'Text below map'),
Exemple #4
0
RenoPrimeSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema((

    # -*- Your Archetypes field definitions here ... -*-

    atapi.TextField('text_above_map',
              required=False,
              searchable=True,
              primary=True,
              storage=atapi.AnnotationStorage(migrate=True),
              validators=('isTidyHtmlWithCleanup',),
              #validators=('isTidyHtml',),
              default_output_type='text/x-html-safe',
              widget=atapi.RichWidget(
                        description='',
                        label=_(u'label_before_map', default=u'Text before map'),
                        rows=25,
                        allow_file_upload=zconf.ATDocument.allow_document_upload),
    ),

    atapi.TextField('text_below_map',
              required=False,
              searchable=True,
              storage=atapi.AnnotationStorage(migrate=True),
              validators=('isTidyHtmlWithCleanup',),
              #validators=('isTidyHtml',),
              default_output_type='text/x-html-safe',
              widget=atapi.RichWidget(
                        description='',
                        label=_(u'label_below_map', default=u'Text below map'),
                        rows=25,