コード例 #1
0
        ),
        storage=AnnotationStorage(),
    ),

),
)

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

MeetingAdviceAgreementLevel_schema = BaseSchema.copy() + \
    schema.copy()

##code-section after-schema #fill in your manual code here
from Products.PloneMeeting.model.extender import ModelExtender
MeetingAdviceAgreementLevel_schema = ModelExtender(
    MeetingAdviceAgreementLevel_schema, 'aglevel').run()
# Register the marshaller for DAV/XML export.
MeetingAdviceAgreementLevel_schema.registerLayer('marshall',AgLevelMarshaller())
##/code-section after-schema

class MeetingAdviceAgreementLevel(BaseContent, BrowserDefaultMixin):
    """
    """
    security = ClassSecurityInfo()

    implements(interfaces.IMeetingAdviceAgreementLevel)

    meta_type = 'MeetingAdviceAgreementLevel'
    _at_rename_after_creation = True

    schema = MeetingAdviceAgreementLevel_schema
コード例 #2
0
ファイル: MeetingAdvice.py プロジェクト: abdza/PloneMeeting
        default_method='getDefaultAdviserName',
    ),

),
)

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

MeetingAdvice_schema = OrderedBaseFolderSchema.copy() + \
    schema.copy()

##code-section after-schema #fill in your manual code here
# Integrate potential extensions from PloneMeeting sub-products
from Products.PloneMeeting.model.extender import ModelExtender
MeetingAdvice_schema = ModelExtender(MeetingAdvice_schema, 'advice').run()
MeetingAdvice_schema.moveField('agreementLevel', pos=2)
# Register the marshaller for DAV/XML export.
MeetingAdvice_schema.registerLayer('marshall', AdviceMarshaller())
##/code-section after-schema

class MeetingAdvice(OrderedBaseFolder, BrowserDefaultMixin):
    """
    """
    security = ClassSecurityInfo()

    implements(interfaces.IMeetingAdvice)

    meta_type = 'MeetingAdvice'
    _at_rename_after_creation = True
コード例 #3
0
ファイル: MeetingCategory.py プロジェクト: abdza/PloneMeeting
        ),
        schemata="metadata",
    ),

),
)

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

MeetingCategory_schema = BaseSchema.copy() + \
    schema.copy()

##code-section after-schema #fill in your manual code here
from Products.PloneMeeting.model.extender import ModelExtender
MeetingCategory_schema = ModelExtender(MeetingCategory_schema, 'category').run()
# Register the marshaller for DAV/XML export.
MeetingCategory_schema.registerLayer('marshall', CategoryMarshaller())
##/code-section after-schema

class MeetingCategory(BaseContent, BrowserDefaultMixin):
    """
    """
    security = ClassSecurityInfo()

    implements(interfaces.IMeetingCategory)

    meta_type = 'MeetingCategory'
    _at_rename_after_creation = True

    schema = MeetingCategory_schema
コード例 #4
0
ファイル: MeetingGroup.py プロジェクト: abdza/PloneMeeting
                label_msgid="PloneMeeting_label_givesMandatoryAdviceOn",
                i18n_domain="PloneMeeting",
            ),
        ),
    )
)

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

MeetingGroup_schema = BaseSchema.copy() + schema.copy()

##code-section after-schema #fill in your manual code here
from Products.PloneMeeting.model.extender import ModelExtender

MeetingGroup_schema = ModelExtender(MeetingGroup_schema, "group").run()
# Register the marshaller for DAV/XML export.
MeetingGroup_schema.registerLayer("marshall", GroupMarshaller())
##/code-section after-schema


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

    security = ClassSecurityInfo()

    implements(interfaces.IMeetingGroup)

    meta_type = "MeetingGroup"
    _at_rename_after_creation = True
コード例 #5
0
ファイル: MeetingUser.py プロジェクト: abdza/PloneMeeting
            i18n_domain='PloneMeeting',
        ),
    ),

),
)

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

MeetingUser_schema = BaseSchema.copy() + \
    schema.copy()

##code-section after-schema #fill in your manual code here
from Products.PloneMeeting.model.extender import ModelExtender
MeetingUser_schema = ModelExtender(MeetingUser_schema, 'muser').run()
# Register the marshaller for DAV/XML export.
MeetingUser_schema.registerLayer('marshall', MeetingUserMarshaller())
##/code-section after-schema

class MeetingUser(BaseContent, BrowserDefaultMixin):
    """
    """
    security = ClassSecurityInfo()

    implements(interfaces.IMeetingUser)

    meta_type = 'MeetingUser'
    _at_rename_after_creation = True

    schema = MeetingUser_schema
コード例 #6
0
ファイル: MeetingFile.py プロジェクト: abdza/PloneMeeting
        ),
    ),

),
)

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

MeetingFile_schema = ATFileSchema.copy() + \
    schema.copy()

##code-section after-schema #fill in your manual code here
# Integrate potential extensions from PloneMeeting sub-products
from Products.PloneMeeting.model.extender import ModelExtender
MeetingFile_schema = ModelExtender(MeetingFile_schema, 'file').run()
# Register the marshaller for DAV/XML export.
MeetingFile_schema.registerLayer('marshall', MeetingFileMarshaller())
##/code-section after-schema

class MeetingFile(ATFile, BrowserDefaultMixin):
    """
    """
    security = ClassSecurityInfo()

    implements(interfaces.IMeetingFile)

    meta_type = 'MeetingFile'
    _at_rename_after_creation = True

    schema = MeetingFile_schema
コード例 #7
0
ファイル: PodTemplate.py プロジェクト: abdza/PloneMeeting
            '"uno" installed - check it by typing "import uno" at the Python ' \
            'prompt) please specify, in the PloneMeeting configuration, ' \
            'the path to a UNO-enabled Python interpreter (ie, the Python ' \
            'interpreter included in the OpenOffice distribution, or, if ' \
            'your server runs Ubuntu, the standard Python interpreter ' \
            'installed in /usr/bin/python). Here is the error as reported ' \
            'by the appy.pod library:\n\n %s'
DELETE_TEMP_DOC_ERROR = 'A temporary document could not be removed. %s.'
##/code-section after-local-schema

PodTemplate_schema = BaseSchema.copy() + \
    schema.copy()

##code-section after-schema #fill in your manual code here
from Products.PloneMeeting.model.extender import ModelExtender
PodTemplate_schema = ModelExtender(PodTemplate_schema, 'pod').run()
# Register the marshaller for DAV/XML export.
PodTemplate_schema.registerLayer('marshall', PodTemplateMarshaller())
##/code-section after-schema

class PodTemplate(BaseContent, BrowserDefaultMixin):
    """
    """
    security = ClassSecurityInfo()

    implements(interfaces.IPodTemplate)

    meta_type = 'PodTemplate'
    _at_rename_after_creation = True

    schema = PodTemplate_schema