Пример #1
0
    ImageField(
        name='picture',
        widget=ImageField._properties['widget'](
            label='Pix',
            label_msgid='Newspaper_label_picture',
            i18n_domain='Newspaper',
        ),
        storage=AttributeStorage(),
    ),
),
)

##code-section after-local-schema #fill in your manual code here
##/code-section after-local-schema

Pix_schema = Element_schema.copy() + \
    schema.copy()

##code-section after-schema #fill in your manual code here
##/code-section after-schema
class PixJSON(BrowserView):
    """ JSON Encoded Issue """
    def __init__(self,context,request):
        """ Initialize context and request as view multiadaption parameters.

        Note that the BrowserView constructor does this for you.
        This step here is just to show how view receives its context and
        request parameter. You do not need to write __init__() for your
        views.
        """
        self.context = context
Пример #2
0
                ),
        BooleanField(
                name='addLineHeight',
                widget=BooleanField._properties['widget'](
                        label='addLineHeight',
                        label_msgid='Newspaper_label_addLineHeight',
                        i18n_domain='Newspaper',
                        ),
                ),
),
)

##code-section after-local-schema #fill in your manual code here
##/code-section after-local-schema

RichColumn_schema = Element_schema.copy() + \
        schema.copy()

##code-section after-schema #fill in your manual code here
##/code-section after-schema
class RichColumnJSON(BrowserView):
    """ JSON Encoded Issue """
    def __init__(self,context,request):
        """ Initialize context and request as view multiadaption parameters.

        Note that the BrowserView constructor does this for you.
        This step here is just to show how view receives its context and
        request parameter. You do not need to write __init__() for your
        views.
        """
        self.context = context
Пример #3
0
        widget=InAndOutWidget(
            label='Containers',
            label_msgid='Newspaper_label_containers',
            i18n_domain='Newspaper',
        ),
        allowed_types=('Article',),
        multiValued=1,
        relationship='containerLocation',
    ),
),
)

##code-section after-local-schema #fill in your manual code here
##/code-section after-local-schema

TextColumn_schema = Element_schema.copy() + \
    schema.copy()

##code-section after-schema #fill in your manual code here
##/code-section after-schema
class TextColumnJSON(BrowserView):
    """ JSON Encoded Issue """
    def __init__(self,context,request):
        """ Initialize context and request as view multiadaption parameters.

        Note that the BrowserView constructor does this for you.
        This step here is just to show how view receives its context and
        request parameter. You do not need to write __init__() for your
        views.
        """
        self.context = context
Пример #4
0
            i18n_domain='Newspaper',
            ),
        ),
    BooleanField(
        name='italic',
        default=False,
        widget=BooleanField._properties['widget'](
            label='italic',
            label_msgid='Newspaper_label_italic',
            i18n_domain='Newspaper',
            ),
        ),
),
)

Headline_schema = schema.copy() + Element_schema.copy()

##code-section after-schema #fill in your manual code here
##/code-section after-schema
class HeadlineJSON(BrowserView):
    """ JSON Encoded Issue """
    def __init__(self,context,request):
        """ Initialize context and request as view multiadaption parameters.

        Note that the BrowserView constructor does this for you.
        This step here is just to show how view receives its context and
        request parameter. You do not need to write __init__() for your
        views.
        """
        self.context = context
        self.request = request