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

All Samples(5)  |  Call(2)  |  Derive(0)  |  Import(3)

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/ClassGen.py   Products.Archetypes(Download)
from Products.Archetypes.log import log
from Products.Archetypes.utils import capitalize
from Products.Archetypes.utils import _getSecurity
 
# marker that AT should generate a method -- used to discard unwanted
    def updateSecurity(self, klass, field, mode, methodName):
        security = _getSecurity(klass)
 
        perm = _modes[mode]['security']
        perm = getattr(field, perm, None)

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/ClassGen.py   Products.Archetypes(Download)
from Products.Archetypes.log import log
from Products.Archetypes.utils import capitalize
from Products.Archetypes.utils import _getSecurity
 
# marker that AT should generate a method -- used to discard unwanted
    def updateSecurity(self, klass, field, mode, methodName):
        security = _getSecurity(klass)
 
        perm = _modes[mode]['security']
        perm = getattr(field, perm, None)

src/p/r/Products.CompoundField-1.1/Products/CompoundField/ClassGen.py   Products.CompoundField(Download)
 
from Products.Archetypes.utils import capitalize
from Products.Archetypes.utils import _getSecurity
from Products.Archetypes.debug import warn
from Products.Archetypes.debug import deprecated