当前位置: 首页>>代码示例>>Python>>正文


Python folder.ATFolderSchema类代码示例

本文整理汇总了Python中Products.ATContentTypes.content.folder.ATFolderSchema的典型用法代码示例。如果您正苦于以下问题:Python ATFolderSchema类的具体用法?Python ATFolderSchema怎么用?Python ATFolderSchema使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了ATFolderSchema类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: rss_instance

            label_msgid='PloneRSS_label_rss_feeds',
            description_msgid='PloneRSS_help_rss_feeds',
            i18n_domain='PloneRSS',
        ),
        allowed_types=('rss_feed',),
        multiValued=1,
        relationship='feeds',
    ),

),
)

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

rss_instance_schema = ATFolderSchema.copy() + \
    schema.copy()

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

class rss_instance(ATFolder):
    """
    """
    security = ClassSecurityInfo()

    implements(interfaces.Irss_instance)

    meta_type = 'rss_instance'
    _at_rename_after_creation = True
开发者ID:renansfs,项目名称:Plone_SP,代码行数:30,代码来源:rss_instance.py

示例2: Malad

#You can also contact Cynapse at:
#802, Building No. 1,
#Dheeraj Sagar, Malad(W)
#Mumbai-400064, India
###############################################################################
from Products.Archetypes.atapi import *

from Products.ATContentTypes.content.folder \
     import ATFolder as BaseClass
from Products.ATContentTypes.content.folder \
     import ATFolderSchema as DefaultSchema

from Products.ATContentTypes.content.base import registerATCT

from ubify.coretypes.config import PROJECTNAME
schema = DefaultSchema.copy()
from wiki_start_page import *

class Wiki(BaseClass):

    __doc__ = BaseClass.__doc__ + "(customizable version)"
#    portal_type = BaseClass.portal_type
#    archetype_name = BaseClass.archetype_name

    schema = schema
    _at_rename_after_creation = True
    # enable FTP/WebDAV and friends
    PUT = BaseClass.PUT
    
    def manage_afterAdd(self, item, container):
        
开发者ID:Cenditel,项目名称:cenditel.comunidades.cynin,代码行数:30,代码来源:wiki.py

示例3: Schema

from Products.PloneFormGen.config import \
    PROJECTNAME, \
    EDIT_TALES_PERMISSION, EDIT_ADVANCED_PERMISSION, BAD_IDS
from Products.PloneFormGen.content import validationMessages

from Products.PloneFormGen import PloneFormGenMessageFactory as _
from Products.PloneFormGen import implementedOrProvidedBy
from Products.PloneFormGen import HAS_PLONE40

from types import StringTypes

import zope.i18n

logger = logging.getLogger("PloneFormGen")

FormFolderSchema = ATFolderSchema.copy() + Schema((
    StringField('submitLabel',
        required=0,
        searchable=0,
        default="Submit",
        widget=StringWidget(
            label=_(u'label_submitlabel_text', default=u"Submit Button Label"),
            description = _(u'help_submitlabel_text', default=u""),
            ),
        ),
    BooleanField('useCancelButton',
        required=0,
        searchable=0,
        default='0',
        languageIndependent=1,
        widget=BooleanWidget(label=_(u'label_showcancel_text',
开发者ID:arielvb,项目名称:Products.PloneFormGen,代码行数:31,代码来源:form.py

示例4: ComputedField

        expression="context.getTemporalCoverage()",
        widget=ComputedField._properties['widget'](
            visible={'view':'invisible', 'edit':'invisible'},
        ),
    ),
    ComputedField(
        name='location',
        expression="context.getLocation()",
        widget=ComputedField._properties['widget'](
            visible={'view':'visible', 'edit':'invisible'},
        ),
    ),
),
)

IndicatorFactSheet_schema = ATFolderSchema.copy() + \
    getattr(ATFolder, 'schema', Schema(())).copy() + \
    schema.copy()
IndicatorFactSheet_schema.moveField('relatedItems', after='dpsir')


class IndicatorFactSheet(ATFolder, ModalFieldEditableAware,
                         BrowserDefaultMixin, IndicatorMixin):
    """ IndicatorFactSheet content class
    """
    security = ClassSecurityInfo()

    implements(interfaces.IIndicatorFactSheet,
               interfaces.IIndicatorAssessment,
               IHasMandatoryWorkflowFields)
开发者ID:eea,项目名称:eea.indicators,代码行数:30,代码来源:IndicatorFactSheet.py

示例5: RetailFont

            description="Example: $45.00",
            label="Single weight price",
            label_msgid='ATFProduct_label_SingleWeightPrice',
            description_msgid='ATFProduct_help_SingleWeightPrice',
            i18n_domain='ATFProduct',
        ),
        required=1,
    ),

),
)

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

RetailFont_schema = ATFolderSchema.copy() + \
    schema.copy()

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

class RetailFont(ATFolder):
    """
    """
    security = ClassSecurityInfo()

    implements(interfaces.IRetailFont)

    meta_type = 'RetailFont'
    _at_rename_after_creation = True
开发者ID:adrigen,项目名称:ATFProduct,代码行数:30,代码来源:RetailFont.py

示例6: DoormatColumn

from Products.Archetypes import atapi
from zope.interface import implements
import interfaces
from Products.Doormat.content.DoormatMixin import DoormatMixin

from Products.ATContentTypes.content.folder import ATFolder
from Products.ATContentTypes.content.folder import ATFolderSchema
from Products.Doormat.config import PROJECTNAME

schema = atapi.Schema((


),
)

DoormatColumn_schema = ATFolderSchema.copy() + \
    getattr(DoormatMixin, 'schema', atapi.Schema(())).copy() + \
    schema.copy()


class DoormatColumn(ATFolder, DoormatMixin):
    """
    """
    security = ClassSecurityInfo()

    implements(interfaces.IDoormatColumn)

    meta_type = 'DoormatColumn'
    _at_rename_after_creation = True

    schema = DoormatColumn_schema
开发者ID:collective,项目名称:Products.Doormat,代码行数:31,代码来源:DoormatColumn.py

示例7: Schema

from Products.ATContentTypes.content.schemata import finalizeATCTSchema
from Products.ATContentTypes.content.folder import ATFolderSchema
from Products.ATContentTypes.content.folder import ATFolder
from Products.ATReferenceBrowserWidget.ATReferenceBrowserWidget \
     import ReferenceBrowserWidget

# local imports
from Products.ECAssignmentBox.config import *
from Products.ECAssignmentBox import permissions
from Products.ECAssignmentBox.ECAssignment import ECAssignment
from Statistics import Statistics
from PlainTextField import PlainTextField



ECAssignmentBoxSchema = ATFolderSchema.copy() + Schema((
    ReferenceField(
        'assignment_reference',
        allowed_types = ('ECAssignmentTask',),
        required = False,
        accessor = 'getReference',
        index = "FieldIndex:schema", # Adds "getRawAssignment_reference"
                                     # to catalog
        multiValued = False,
        relationship = 'alter_ego',
        widget = ReferenceBrowserWidget(
			description = 'Select an assignment task.  A reference to an assignment task supersedes the assignment text and answer template below.',
            description_msgid = 'help_assignment_reference',
            i18n_domain = I18N_DOMAIN,
            label = 'Reference to assignment',
            label_msgid = 'label_assignment_reference',
开发者ID:dtgit,项目名称:dtedu,代码行数:31,代码来源:ECAssignmentBox.py

示例8: PM_Task

                label_msgid="PM_Task_Introduction_label",
                description="Presentation of the task",
                description_msgid="PM_Task_Introduction_description",
                i18n_domain="projectmanager",
            ),
            default_output_type="text/html",
            write_permission="Modify portal content",
            read_permission="View",
        ),
    )
)

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

PM_Task_schema = ATFolderSchema.copy() + schema.copy()

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


class PM_Task(ATFolder):
    """
    """

    security = ClassSecurityInfo()

    implements(interfaces.IPM_Task)

    meta_type = "PM_Task"
    _at_rename_after_creation = True
开发者ID:ecreall,项目名称:Products.projectmanager,代码行数:31,代码来源:PM_Task.py

示例9: Schema

schema = Schema((

    TextField('text',
        required=False,
        searchable=True,
        storage=AnnotationStorage(),
        validators=('isTidyHtmlWithCleanup',),
        default_output_type='text/x-html-safe',
        widget=RichWidget(label=_(u"Body Text"),
                          description=_(u""),
                          rows=25,
                          allow_file_upload=False)   
        ),
    ))

SponsorFolderSchema = ATFolderSchema.copy() + schema.copy()

SponsorFolderSchema['title'].storage = AnnotationStorage()
SponsorFolderSchema['description'].storage = AnnotationStorage()

finalizeATCTSchema(SponsorFolderSchema, folderish=True, moveDiscussion=False)

class SponsorFolder(ATFolder):
    """Sponsor Folder
    """

    implements(ISponsorFolder)

    portal_type = "Sponsor Folder"
    _at_rename_after_creation = True
开发者ID:collective,项目名称:collective.sponsor,代码行数:30,代码来源:sponsorfolder.py

示例10: Schema

from Products.ATContentTypes.content.folder import ATFolderSchema
from Products.ATFProduct.config import *

##code-section module-header #fill in your manual code here
##/code-section module-header

schema = Schema((


),
)

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

slide_schema = ATFolderSchema.copy() + \
    schema.copy()

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

class slide(ATFolder):
    """
    """
    security = ClassSecurityInfo()

    implements(interfaces.Islide)

    meta_type = 'slide'
    _at_rename_after_creation = True
开发者ID:adrigen,项目名称:ATFProduct,代码行数:30,代码来源:slide.py

示例11: Schema

from Products.ATContentTypes.content.folder import ATFolderSchema
from Products.Communities.config import *

##code-section module-header #fill in your manual code here
##/code-section module-header

schema = Schema((


),
)

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

Ontologies_schema = ATFolderSchema.copy() + \
    schema.copy()

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

class Ontologies(ATFolder):
    """
    """
    security = ClassSecurityInfo()

    implements(interfaces.IOntologies)

    meta_type = 'Ontologies'
    _at_rename_after_creation = True
开发者ID:BGCX261,项目名称:zmetadata-svn-to-git,代码行数:30,代码来源:ontologies.py

示例12: IntegerWidget

        required = True,
        default = 0,
        validators = ('isInt', validators.POSITIVE_NUMBER_VALIDATOR_NAME),
        widget = IntegerWidget(
            label = "Projected Number of Assignments",
            label_msgid = "label_projected_assignments",
            description = "Projected number of assignments, 0 means undefined",
            description_msgid = "help_projected_assignments",
            i18n_domain = config.I18N_DOMAIN,
        ),
    ),

),
)

ECFolder_schema = ATFolderSchema.copy() + schema.copy()

class ECFolder(ATFolder):
    """
    """
    security = ClassSecurityInfo()

    implements(interfaces.IECFolder)

    meta_type = 'ECFolder'
    _at_rename_after_creation = True

    schema = ECFolder_schema

    # Methods
    security.declarePrivate('getCompletedStatesVocab')
开发者ID:collective,项目名称:ECAssignmentBox,代码行数:31,代码来源:ECFolder.py

示例13: Schema

#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
"""

"""
__docformat__ = "restructuredtext"


from api import *
from config import PROJECTNAME
from schemata import *
from Products.ATContentTypes.content.folder import ATFolderSchema

CollectionSchema = ATFolderSchema.copy()
CollectionSchema += CollectionBaseSchema.copy()
CollectionSchema += Schema(
    (
        StringField(
            "source",
            required=False,
            searchable=True,
            vocabulary=collection_source,
            widget=SelectionWidget(
                label="Source",
                label_msgid="label_collection_source",
                description="Aquisition source of the collection.",
                description_msgid="help_collection_source",
                domain="mars",
            ),
开发者ID:RBINS,项目名称:mars,代码行数:31,代码来源:collection.py

示例14: rss_feed

        widget=StringField._properties['widget'](
            label="Feed URL",
            size=80,
            maxlength=1024,
            label_msgid='PloneRSS_label_remoteURL',
            i18n_domain='PloneRSS',
        ),
    ),

),
)

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

rss_feed_schema = ATFolderSchema.copy() + \
    schema.copy()

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

class rss_feed(ATFolder):
    """
    """
    security = ClassSecurityInfo()

    implements(interfaces.Irss_feed)

    meta_type = 'rss_feed'
    _at_rename_after_creation = True
开发者ID:renansfs,项目名称:Plone_SP,代码行数:30,代码来源:rss_feed.py

示例15: ECFolder

            searchable=False,
            required=True,
            default=0,
            validators=("isInt", "isPositive"),
            widget=IntegerWidget(
                label="Projected Number of Assignments",
                label_msgid="label_projected_assignments",
                description="Projected number of assignments",
                description_msgid="help_projected_assignments",
                i18n_domain=I18N_DOMAIN,
            ),
        ),
    )
)

ECFolderSchema = ATFolderSchema.copy() + ECFolderSchema
finalizeATCTSchema(ECFolderSchema, folderish=True, moveDiscussion=False)


class ECFolder(ATFolder):
    """A container for assignment boxes"""

    schema = ECFolderSchema

    content_icon = "ecfolder.png"
    portal_type = meta_type = "ECFolder"
    archetype_name = "ECFolder"
    immediate_view = "ecfolder_view"
    default_view = "ecfolder_view"
    # suppl_views    = () #('all_assignments', 'by_student',)
    allowed_content_types = []
开发者ID:dtgit,项目名称:dtedu,代码行数:31,代码来源:ECFolder.py


注:本文中的Products.ATContentTypes.content.folder.ATFolderSchema类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。