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

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)
An arbitrary event that yields all results from all observers.

src/m/e/mediadrop-HEAD/mediadrop/controllers/api/media.py   mediadrop(Download)
#XXX: Dirty hack to set the actual strings for filetypes, in our docstrings,
#     based on the canonical definitions in the filetypes module.
from mediadrop.lib.filetypes import registered_media_types, AUDIO, VIDEO
_types_list = "'%s'" % ("', '".join(id for id, name in registered_media_types()))
MediaController._file_info.im_func.__doc__ = \

src/m/e/mediadrop-HEAD/mediadrop/forms/admin/media.py   mediadrop(Download)
 
from mediadrop.lib import helpers
from mediadrop.lib.filetypes import registered_media_types
from mediadrop.lib.i18n import N_, _
from mediadrop.forms import FileField, Form, ListForm, SubmitButton, TextArea, TextField, XHTMLTextArea, email_validator
    ]
 
file_type_options = lambda: registered_media_types()
file_types = lambda: (id for id, name in registered_media_types())
file_type_validator = OneOfGenerator(file_types, if_missing=None)