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

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

src/f/t/ftw.contentpage-1.6.5/ftw/contentpage/content/contentpage.py   ftw.contentpage(Download)
# Protect the teaser image with a specific permission
permission = "ftw.contentpage: Edit teaser image on ContentPage"
for name in image_schema.keys():
    ContentPageSchema[name].write_permission = permission
 

src/f/t/ftw.contentpage-1.6.5/ftw/contentpage/content/news.py   ftw.contentpage(Download)
# Protect the teaser image with a specific permission
permission = "ftw.contentpage: Edit teaser image on News"
for name in image_schema.keys():
    news_schema[name].write_permission = permission
 

src/f/t/ftw.contentpage-1.6.5/ftw/contentpage/content/eventpage.py   ftw.contentpage(Download)
# Protect the teaser image with a specific permission
permission = "ftw.contentpage: Edit teaser image on EventPage"
for name in image_schema.keys():
    EventSchema[name].write_permission = permission