from AccessControl import ClassSecurityInfo
from Products.ATContentTypes.content.base import ATCTContent
from Products.ATContentTypes.content.base import ATContentTypeSchema
from Products.Archetypes.public import *
from collective.referencedatagridfield import PKG_NAME
from collective.referencedatagridfield import ReferenceDataGridField
from collective.referencedatagridfield import ReferenceDataGridWidget


class ReferenceDataGridDemoType(ATCTContent):
    """Simple ReferenceDataGridField demo.
    """
    security = ClassSecurityInfo()
    # schema = BaseSchema + Schema((
    schema = ATContentTypeSchema + Schema(
        (ReferenceDataGridField(
            'demo_rdgf',
            schemata='default',
            relationship="demo_relation",
            widget=ReferenceDataGridWidget(
                label="Reference DataGrid Field(s)",
                visible={
                    'edit': 'visible',
                    'view': 'visible'})),
         ))

    meta_type = portal_type = archetype_name = 'ReferenceDataGridDemoType'

registerType(ReferenceDataGridDemoType, PKG_NAME)

2a6e1c7d90c772ff5e82abf782d58e599597c581
<mask token>


class ReferenceDataGridDemoType(ATCTContent):
    <mask token>
    security = ClassSecurityInfo()
    schema = ATContentTypeSchema + Schema((ReferenceDataGridField(
        'demo_rdgf', schemata='default', relationship='demo_relation',
        widget=ReferenceDataGridWidget(label='Reference DataGrid Field(s)',
        visible={'edit': 'visible', 'view': 'visible'})),))
    meta_type = portal_type = archetype_name = 'ReferenceDataGridDemoType'


<mask token>

<mask token>


class ReferenceDataGridDemoType(ATCTContent):
    """Simple ReferenceDataGridField demo.
    """
    security = ClassSecurityInfo()
    schema = ATContentTypeSchema + Schema((ReferenceDataGridField(
        'demo_rdgf', schemata='default', relationship='demo_relation',
        widget=ReferenceDataGridWidget(label='Reference DataGrid Field(s)',
        visible={'edit': 'visible', 'view': 'visible'})),))
    meta_type = portal_type = archetype_name = 'ReferenceDataGridDemoType'


<mask token>

<mask token>


class ReferenceDataGridDemoType(ATCTContent):
    """Simple ReferenceDataGridField demo.
    """
    security = ClassSecurityInfo()
    schema = ATContentTypeSchema + Schema((ReferenceDataGridField(
        'demo_rdgf', schemata='default', relationship='demo_relation',
        widget=ReferenceDataGridWidget(label='Reference DataGrid Field(s)',
        visible={'edit': 'visible', 'view': 'visible'})),))
    meta_type = portal_type = archetype_name = 'ReferenceDataGridDemoType'


registerType(ReferenceDataGridDemoType, PKG_NAME)

from AccessControl import ClassSecurityInfo
from Products.ATContentTypes.content.base import ATCTContent
from Products.ATContentTypes.content.base import ATContentTypeSchema
from Products.Archetypes.public import *
from collective.referencedatagridfield import PKG_NAME
from collective.referencedatagridfield import ReferenceDataGridField
from collective.referencedatagridfield import ReferenceDataGridWidget


class ReferenceDataGridDemoType(ATCTContent):
    """Simple ReferenceDataGridField demo.
    """
    security = ClassSecurityInfo()
    schema = ATContentTypeSchema + Schema((ReferenceDataGridField(
        'demo_rdgf', schemata='default', relationship='demo_relation',
        widget=ReferenceDataGridWidget(label='Reference DataGrid Field(s)',
        visible={'edit': 'visible', 'view': 'visible'})),))
    meta_type = portal_type = archetype_name = 'ReferenceDataGridDemoType'


registerType(ReferenceDataGridDemoType, PKG_NAME)

from AccessControl import ClassSecurityInfo
from Products.ATContentTypes.content.base import ATCTContent
from Products.ATContentTypes.content.base import ATContentTypeSchema
from Products.Archetypes.public import *
from collective.referencedatagridfield import PKG_NAME
from collective.referencedatagridfield import ReferenceDataGridField
from collective.referencedatagridfield import ReferenceDataGridWidget


class ReferenceDataGridDemoType(ATCTContent):
    """Simple ReferenceDataGridField demo.
    """
    security = ClassSecurityInfo()
    # schema = BaseSchema + Schema((
    schema = ATContentTypeSchema + Schema(
        (ReferenceDataGridField(
            'demo_rdgf',
            schemata='default',
            relationship="demo_relation",
            widget=ReferenceDataGridWidget(
                label="Reference DataGrid Field(s)",
                visible={
                    'edit': 'visible',
                    'view': 'visible'})),
         ))

    meta_type = portal_type = archetype_name = 'ReferenceDataGridDemoType'

registerType(ReferenceDataGridDemoType, PKG_NAME)
