Did I find the right examples for you? yes no

All Samples(14)  |  Call(7)  |  Derive(0)  |  Import(7)
makes a list of fields invisible 

        def invisibleFields(schema, *fields):
    """ makes a list of fields invisible """
    for name in fields:
        schema[name].widget.visible = False
        


src/z/o/zopyx.authoring-2.4.0/zopyx/authoring/content/authoringimageresource.py   zopyx.authoring(Download)
from zopyx.authoring.config import PROJECTNAME
 
from util import invisibleFields
 
AuthoringImageResourceSchema = ATImageSchema.copy() + atapi.Schema((
AuthoringImageResourceSchema['title'].storage = atapi.AnnotationStorage()
AuthoringImageResourceSchema['description'].storage = atapi.AnnotationStorage()
invisibleFields(AuthoringImageResourceSchema, 
                 'allowDiscussion', 'relatedItems', 
                'excludeFromNav', 'subject', 'location', 

src/z/o/zopyx.authoring-2.4.0/zopyx/authoring/content/authoringbinaryresource.py   zopyx.authoring(Download)
from zopyx.authoring.config import PROJECTNAME
 
from util import invisibleFields
 
AuthoringBinaryResourceSchema = ATFileSchema.copy() + atapi.Schema((
AuthoringBinaryResourceSchema['title'].storage = atapi.AnnotationStorage()
AuthoringBinaryResourceSchema['description'].storage = atapi.AnnotationStorage()
invisibleFields(AuthoringBinaryResourceSchema, 
                 'allowDiscussion', 'relatedItems', 
                'excludeFromNav', 'subject', 'location', 

src/z/o/zopyx.authoring-2.4.0/zopyx/authoring/content/authoringstylesheet.py   zopyx.authoring(Download)
from pretextareawidget import PreTextAreaWidget
 
from util import invisibleFields
 
AuthoringStylesheetSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema((
AuthoringStylesheetSchema['title'].storage = atapi.AnnotationStorage()
AuthoringStylesheetSchema['description'].storage = atapi.AnnotationStorage()
invisibleFields(AuthoringStylesheetSchema, 
                'description',
                'allowDiscussion', 'relatedItems', 

src/z/o/zopyx.authoring-2.4.0/zopyx/authoring/content/authoringmastertemplate.py   zopyx.authoring(Download)
from pretextareawidget import PreTextAreaWidget
 
from util import invisibleFields
 
html_description = _('help_master_template', """
AuthoringMasterTemplateSchema['title'].storage = atapi.AnnotationStorage()
AuthoringMasterTemplateSchema['description'].storage = atapi.AnnotationStorage()
invisibleFields(AuthoringMasterTemplateSchema, 
                'description',
                'allowDiscussion', 'relatedItems', 

src/z/o/zopyx.authoring-2.4.0/zopyx/authoring/content/authoringcoverpage.py   zopyx.authoring(Download)
 
from pretextareawidget import PreTextAreaWidget
from util import invisibleFields
 
coverpage_description =  _('help_coverpage', """
schemata.finalizeATCTSchema(AuthoringCoverPageSchema, moveDiscussion=False)
 
invisibleFields(AuthoringCoverPageSchema, 
                'description',
                'allowDiscussion', 'relatedItems', 

src/z/o/zopyx.authoring-2.4.0/zopyx/authoring/content/authoringcalibreprofile.py   zopyx.authoring(Download)
from zopyx.authoring.config import PROJECTNAME
 
from util import invisibleFields
from .. import config
 
AuthoringCalibreProfileSchema['title'].storage = atapi.AnnotationStorage()
AuthoringCalibreProfileSchema['description'].storage = atapi.AnnotationStorage()
invisibleFields(AuthoringCalibreProfileSchema, 
                'description',
                'allowDiscussion', 'relatedItems', 

src/z/o/zopyx.authoring-2.4.0/zopyx/authoring/content/authoringconversionfolder.py   zopyx.authoring(Download)
from archetypes.referencebrowserwidget.widget import ReferenceBrowserWidget
 
from util import invisibleFields
 
AuthoringConversionFolderSchema = folder.ATFolderSchema.copy() + atapi.Schema((
AuthoringConversionFolderSchema['description'].storage = atapi.AnnotationStorage()
 
invisibleFields(AuthoringConversionFolderSchema, 
                'allowDiscussion', 'nextPreviousEnabled',
                'excludeFromNav', 'subject', 'location',