Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5293)  |  Call(2863)  |  Derive(0)  |  Import(2430)
Encapsulate security information for class objects.

src/p/r/Products.ATExtensions-1.1/Products/ATExtensions/field/record_examples.py   Products.ATExtensions(Download)
from App.class_init import InitializeClass
from AccessControl import ClassSecurityInfo
from Products.Archetypes.Registry import registerField
 
from Products.ATExtensions.Extensions.utils import getDisplayList
        'outerJoin':'<br />',
        })
    security = ClassSecurityInfo()
 
    security.declarePublic("CountryNames")
        'subfield_vocabularies' :{'country':'CountryNames'},
        })
    security = ClassSecurityInfo()
 
    security.declarePublic("CountryNames")
        'outerJoin':'<br />',
        })    
    security = ClassSecurityInfo()
 
InitializeClass(ContactField)
        'outerJoin':' ',
        })    
    security = ClassSecurityInfo()
 
InitializeClass(SimpleNameField)    

src/b/i/bika.lims-3.01a/bika/lims/content/samplesfolder.py   bika.lims(Download)
from Products.CMFCore.utils import getToolByName
from bika.lims.config import PROJECTNAME
from AccessControl import ClassSecurityInfo
from bika.lims.interfaces import ISamplesFolder, IHaveNoBreadCrumbs
from plone.app.folder import folder
class SamplesFolder(folder.ATFolder):
    implements(ISamplesFolder, IHaveNoBreadCrumbs)
    displayContentsTab = False
    schema = schema
    security = ClassSecurityInfo()

src/b/i/bika.lims-3.01a/bika/lims/content/referencesamplesfolder.py   bika.lims(Download)
from Products.CMFCore.utils import getToolByName
from bika.lims.config import PROJECTNAME
from AccessControl import ClassSecurityInfo
from bika.lims.interfaces import IReferenceSamplesFolder, IHaveNoBreadCrumbs
from plone.app.folder import folder
class ReferenceSamplesFolder(folder.ATFolder):
    implements(IReferenceSamplesFolder, IHaveNoBreadCrumbs)
    displayContentsTab = False
    schema = schema
    security = ClassSecurityInfo()

src/b/i/Bika-LIMS-HEAD/bika/lims/content/samplesfolder.py   Bika-LIMS(Download)
from Products.CMFCore.utils import getToolByName
from bika.lims.config import PROJECTNAME
from AccessControl import ClassSecurityInfo
from bika.lims.interfaces import ISamplesFolder, IHaveNoBreadCrumbs
from plone.app.folder import folder
class SamplesFolder(folder.ATFolder):
    implements(ISamplesFolder, IHaveNoBreadCrumbs)
    displayContentsTab = False
    schema = schema
    security = ClassSecurityInfo()

src/b/i/Bika-LIMS-HEAD/bika/lims/content/referencesamplesfolder.py   Bika-LIMS(Download)
from Products.CMFCore.utils import getToolByName
from bika.lims.config import PROJECTNAME
from AccessControl import ClassSecurityInfo
from bika.lims.interfaces import IReferenceSamplesFolder, IHaveNoBreadCrumbs
from plone.app.folder import folder
class ReferenceSamplesFolder(folder.ATFolder):
    implements(IReferenceSamplesFolder, IHaveNoBreadCrumbs)
    displayContentsTab = False
    schema = schema
    security = ClassSecurityInfo()

src/p/r/Products.ATExtensions-1.1/Products/ATExtensions/field/records_examples.py   Products.ATExtensions(Download)
from App.class_init import InitializeClass
from AccessControl import ClassSecurityInfo
from Products.Archetypes.Registry import registerField
 
from Products.ATExtensions.Extensions.utils import getDisplayList
                           },
        })
    security = ClassSecurityInfo()
 
InitializeClass(MultipleNamesField)
        'outerJoin':'<br />',
        })
    security = ClassSecurityInfo()
 
    security.declarePublic("PhoneNumberTypes")

src/b/i/bika.lims-3.01a/bika/lims/content/sampletype.py   bika.lims(Download)
from AccessControl import ClassSecurityInfo
from Products.ATContentTypes.lib.historyaware import HistoryAwareMixin
from Products.Archetypes.public import *
from Products.Archetypes.references import HoldingReference
from Products.CMFCore.permissions import View, ModifyPortalContent
class SampleType(BaseContent, HistoryAwareMixin):
 
    implements(ISampleType)
    security = ClassSecurityInfo()
    displayContentsTab = False

src/b/i/bika.lims-3.01a/bika/lims/content/samplepoint.py   bika.lims(Download)
from AccessControl import ClassSecurityInfo
from Products.Archetypes.public import *
from Products.ATContentTypes.lib.historyaware import HistoryAwareMixin
from Products.CMFCore.permissions import View, ModifyPortalContent
from Products.CMFCore.utils import getToolByName
class SamplePoint(BaseContent, HistoryAwareMixin):
    security = ClassSecurityInfo()
    displayContentsTab = False
    schema = schema
 

src/b/i/bika.lims-3.01a/bika/lims/content/samplepartition.py   bika.lims(Download)
from AccessControl import ClassSecurityInfo
from DateTime import DateTime
from datetime import timedelta
from Products.ATContentTypes.lib.historyaware import HistoryAwareMixin
from Products.ATContentTypes.utils import DT2dt,dt2DT
class SamplePartition(BaseContent, HistoryAwareMixin):
    implements(ISamplePartition)
    security = ClassSecurityInfo()
    displayContentsTab = False
    schema = schema

src/b/i/bika.lims-3.01a/bika/lims/content/samplematrix.py   bika.lims(Download)
from AccessControl import ClassSecurityInfo
from Products.Archetypes.public import *
from Products.Archetypes.references import HoldingReference
from Products.ATExtensions.ateapi import RecordsField as RecordsField
from Products.CMFCore.permissions import ModifyPortalContent, View
class SampleMatrix(BaseFolder):
    security = ClassSecurityInfo()
    displayContentsTab = False
    schema = schema
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next