Пример #1
0
                u'Poi_help_subject',
                default=(
                    u"Tags can be used to add arbitrary categorisation to "
                    u"issues. The list below shows existing tags which "
                    u"you can select, or you can add new ones.")),
        ),
        searchable=True,
        vocabulary='getTagsVocab',
        enforceVocabulary=False,
        write_permission=permissions.ModifyIssueTags,
        accessor="Subject"
    ),

))

PoiIssue_schema = BaseFolderSchema.copy() + \
    schema.copy()
PoiIssue_schema.moveField('subject', after='watchers')


class PoiIssue(BaseFolder, BrowserDefaultMixin):
    """The default tracker
    """
    _at_rename_after_creation = True
    archetype_name = 'Issue'
    implements(IIssue)
    meta_type = 'PoiIssue'
    portal_type = 'PoiIssue'
    schema = PoiIssue_schema
    security = ClassSecurityInfo()
Пример #2
0
            label_msgid='GitesContent_label_photo',
            i18n_domain='gites',
        ),
        required=1,
        storage=AttributeStorage()
    ),

),
)

##code-section after-local-schema #fill in your manual code here
schema['photo'].sizes = {'large': (900, 421),
                         'thumb': (240, 156)}
##/code-section after-local-schema

BoutiqueItem_schema = BaseFolderSchema.copy() + \
    schema.copy()

##code-section after-schema #fill in your manual code here
BoutiqueItem_schema = ATFolder.schema.copy() + \
    schema.copy()

##/code-section after-schema


class BoutiqueItem(ATFolder):
    """
    """
    implements(IBoutiqueItem)
    security = ClassSecurityInfo()
    __implements__ = (getattr(ATFolder, '__implements__', ()))
Пример #3
0
            i18n_domain='eXtremeManagement'),
    ),
    LinesField(
        name='assignees',
        multiValued=1,
        vocabulary='_get_assignees',
        widget=InAndOutWidget(
            description="Select the member(s) to assign this task to.",
            label='Assignees',
            label_msgid='eXtremeManagement_label_assignees',
            description_msgid='eXtremeManagement_help_assignees',
            i18n_domain='eXtremeManagement'),
    ),
), )

FolderSchema = BaseFolderSchema.copy()
FolderSchema['description'].isMetadata = False
FolderSchema['description'].schemata = 'default'
Task_schema = FolderSchema + schema


class Task(BaseFolder):
    """
    """
    security = ClassSecurityInfo()
    implements(IXMTask)

    # This name appears in the 'add' box
    archetype_name = 'Task'
    portal_type = meta_type = 'Task'
    typeDescription = "Task"
Пример #4
0
from Products.EEAContentTypes.content.CallForInterest import CallForInterest
from Products.EEAContentTypes.content.interfaces import ICallForTender

schema = Schema((ReferenceField(name='awardNotice',
                                widget=ReferenceWidget(
                                    label='Award notice',
                                    label_msgid='EEAContentTypes_award_notice',
                                    i18n_domain='EEAContentTypes',
                                    helper_js=("callfortender_widget.js", )),
                                allowed_types="('Document','File')",
                                multiValued=0,
                                relationship="awardNotice",
                                vocabulary="getPossibleAwardNotice",
                                accessor="getAwardNoticeObject"), ), )

CallForTender_schema = BaseFolderSchema.copy() + \
                       getattr(CallForInterest, 'schema', Schema(())).copy() + \
                       schema.copy()


class CallForTender(CallForInterest, BaseFolder):
    """ Call for tenders
    """
    security = ClassSecurityInfo()
    archetype_name = 'CallForTender'

    meta_type = 'CallForTender'
    portal_type = 'CallForTender'
    allowed_content_types = ['File', 'Document'] + list(
        getattr(CallForInterest, 'allowed_content_types', []))
    filter_content_types = 1
Пример #5
0
        widget=ReferenceWidget(
            label='Award notice',
            label_msgid='EEAContentTypes_award_notice',
            i18n_domain='EEAContentTypes',
            helper_js=("callfortender_widget.js",)
        ),
        allowed_types="('Document','File')",
        multiValued=0,
        relationship="awardNotice",
        vocabulary="getPossibleAwardNotice",
        accessor="getAwardNoticeObject"
    ),
),
)

CallForTender_schema = BaseFolderSchema.copy() + \
                       getattr(CallForInterest, 'schema', Schema(())).copy() + \
                       schema.copy()


class CallForTender(CallForInterest, BaseFolder):
    """ Call for tenders
    """
    security = ClassSecurityInfo()
    archetype_name = 'CallForTender'

    meta_type = 'CallForTender'
    portal_type = 'CallForTender'
    allowed_content_types = ['File', 'Document'] + list(getattr(
        CallForInterest, 'allowed_content_types', []))
    filter_content_types = 1
Пример #6
0
            label=_(u'Poi_label_subject', default=u"Tags"),
            description=_(
                u'Poi_help_subject',
                default=(
                    u"Tags can be used to add arbitrary categorisation to "
                    u"issues. The list below shows existing tags which "
                    u"you can select, or you can add new ones.")),
        ),
        searchable=True,
        vocabulary='getTagsVocab',
        enforceVocabulary=False,
        write_permission=permissions.ModifyIssueTags,
        accessor="Subject"),
))

PoiIssue_schema = BaseFolderSchema.copy() + \
    schema.copy()
PoiIssue_schema.moveField('subject', after='watchers')


class PoiIssue(BaseFolder, BrowserDefaultMixin):
    """The default tracker
    """
    _at_rename_after_creation = True
    archetype_name = 'Issue'
    implements(IIssue)
    meta_type = 'PoiIssue'
    portal_type = 'PoiIssue'
    schema = PoiIssue_schema
    security = ClassSecurityInfo()
Пример #7
0
class Cart(BaseFolder):
    """A cart is a container for cart items.
    """
    implements(ICart)
    _at_rename_after_creation = True
    schema = BaseFolderSchema.copy()
            i18n_domain='eXtremeManagement'),
    ),
    LinesField(
        name='assignees',
        multiValued=1,
        vocabulary='_get_assignees',
        widget=InAndOutWidget(
            description="Select the member(s) to assign this task to.",
            label='Assignees',
            label_msgid='eXtremeManagement_label_assignees',
            description_msgid='eXtremeManagement_help_assignees',
            i18n_domain='eXtremeManagement'),
    ),
), )

FolderSchema = BaseFolderSchema.copy()
FolderSchema['description'].isMetadata = False
FolderSchema['description'].schemata = 'default'
Task_schema = FolderSchema + schema


class Task(BaseFolder):
    """
    """
    security = ClassSecurityInfo()
    implements(IXMTask)

    # This name appears in the 'add' box
    archetype_name = 'Task'
    portal_type = meta_type = 'Task'
    typeDescription = "Task"
Пример #9
0
        name='id',
        widget=StringWidget(
            label="Short name",
            description="Short name for the tracker - should be 'issues' to comply with the standards.",
            label_msgid="Poi_label_psctracker_title",
            description_msgid="Poi_description_psctracker_title",
            i18n_domain='Poi',
        ),
        required=False,
        mode="r"
    ),

),
)

PoiPscTracker_schema = BaseFolderSchema.copy() + \
    getattr(PoiTracker, 'schema', Schema(())).copy() + \
    schema.copy()

PoiPscTracker_schema = PoiPscTracker_schema.copy()
del PoiPscTracker_schema['title']


class PoiPscTracker(PoiTracker):
    """Version of the PoiTracker which supports the
    PloneSoftwareCenter. Intended to be added inside a PSCProject.
    """
    security = ClassSecurityInfo()
    __implements__ = (getattr(BaseFolder, '__implements__', ()), ) + \
        (getattr(PoiTracker, '__implements__', ()), ) + \
        (INonStructuralFolder, )