本文整理汇总了Python中Products.ATContentTypes.content.folder.ATFolderSchema.copy方法的典型用法代码示例。如果您正苦于以下问题:Python ATFolderSchema.copy方法的具体用法?Python ATFolderSchema.copy怎么用?Python ATFolderSchema.copy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Products.ATContentTypes.content.folder.ATFolderSchema
的用法示例。
在下文中一共展示了ATFolderSchema.copy方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: rss_instance
# 需要导入模块: from Products.ATContentTypes.content.folder import ATFolderSchema [as 别名]
# 或者: from Products.ATContentTypes.content.folder.ATFolderSchema import copy [as 别名]
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
示例2: Malad
# 需要导入模块: from Products.ATContentTypes.content.folder import ATFolderSchema [as 别名]
# 或者: from Products.ATContentTypes.content.folder.ATFolderSchema import copy [as 别名]
#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):
示例3: Schema
# 需要导入模块: from Products.ATContentTypes.content.folder import ATFolderSchema [as 别名]
# 或者: from Products.ATContentTypes.content.folder.ATFolderSchema import copy [as 别名]
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',
示例4: ComputedField
# 需要导入模块: from Products.ATContentTypes.content.folder import ATFolderSchema [as 别名]
# 或者: from Products.ATContentTypes.content.folder.ATFolderSchema import copy [as 别名]
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)
示例5: RetailFont
# 需要导入模块: from Products.ATContentTypes.content.folder import ATFolderSchema [as 别名]
# 或者: from Products.ATContentTypes.content.folder.ATFolderSchema import copy [as 别名]
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
示例6: getattr
# 需要导入模块: from Products.ATContentTypes.content.folder import ATFolderSchema [as 别名]
# 或者: from Products.ATContentTypes.content.folder.ATFolderSchema import copy [as 别名]
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
示例7: Schema
# 需要导入模块: from Products.ATContentTypes.content.folder import ATFolderSchema [as 别名]
# 或者: from Products.ATContentTypes.content.folder.ATFolderSchema import copy [as 别名]
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',
示例8: PM_Task
# 需要导入模块: from Products.ATContentTypes.content.folder import ATFolderSchema [as 别名]
# 或者: from Products.ATContentTypes.content.folder.ATFolderSchema import copy [as 别名]
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
示例9: Schema
# 需要导入模块: from Products.ATContentTypes.content.folder import ATFolderSchema [as 别名]
# 或者: from Products.ATContentTypes.content.folder.ATFolderSchema import copy [as 别名]
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
示例10: Schema
# 需要导入模块: from Products.ATContentTypes.content.folder import ATFolderSchema [as 别名]
# 或者: from Products.ATContentTypes.content.folder.ATFolderSchema import copy [as 别名]
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
示例11: Schema
# 需要导入模块: from Products.ATContentTypes.content.folder import ATFolderSchema [as 别名]
# 或者: from Products.ATContentTypes.content.folder.ATFolderSchema import copy [as 别名]
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
示例12: IntegerWidget
# 需要导入模块: from Products.ATContentTypes.content.folder import ATFolderSchema [as 别名]
# 或者: from Products.ATContentTypes.content.folder.ATFolderSchema import copy [as 别名]
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')
示例13: Schema
# 需要导入模块: from Products.ATContentTypes.content.folder import ATFolderSchema [as 别名]
# 或者: from Products.ATContentTypes.content.folder.ATFolderSchema import copy [as 别名]
# 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",
),
示例14: rss_feed
# 需要导入模块: from Products.ATContentTypes.content.folder import ATFolderSchema [as 别名]
# 或者: from Products.ATContentTypes.content.folder.ATFolderSchema import copy [as 别名]
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
示例15: ECFolder
# 需要导入模块: from Products.ATContentTypes.content.folder import ATFolderSchema [as 别名]
# 或者: from Products.ATContentTypes.content.folder.ATFolderSchema import copy [as 别名]
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 = []