예제 #1
0
                label="resetY", label_msgid="Newspaper_label_resetY", i18n_domain="Newspaper"
            ),
        ),
        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 = BaseSchema.copy() + schema.copy()

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


class RichColumn(BaseContent, BrowserDefaultMixin):
    """
    """

    added = False

    security = ClassSecurityInfo()

    implements(interfaces.IRichColumn)
예제 #2
0
            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 = BaseSchema.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
        self.request = request
예제 #3
0
schema = Schema(
    (
        IntegerField(
            name="pageNo",
            widget=IntegerField._properties["widget"](
                label="Pageno", label_msgid="Newspaper_label_pageNo", i18n_domain="Newspaper"
            ),
        ),
    )
)

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

Webpage_schema = OrderedBaseFolderSchema.copy() + schema.copy()

##code-section after-schema #fill in your manual code here
##/code-section after-schema
# class M_Webpage(NewsFolder.__class__): pass


class WebpageView(BrowserView):
    """ Available View of the Webpage. """


class Webpage(OrderedBaseFolder, ExtensibleMetadata):
    """
    """

    security = ClassSecurityInfo()