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/m/e/mediadrop-HEAD/mediadrop/controllers/admin/media.py   mediadrop(Download)
            description = media.description,
            link = url_for(action='edit', id=media.id),
            duration = helpers.duration_from_seconds(media.duration),
        )
 
                media.duration = fields.duration.validate(duration)
                data['success'] = True
                data['duration'] = helpers.duration_from_seconds(media.duration)
            elif width_height is not None:
                width_height = fields.width_height.validate(width_height)

src/m/e/mediadrop-HEAD/mediadrop/forms/admin/media.py   mediadrop(Download)
    def _from_python(self, value, state):
        return helpers.duration_from_seconds(value)
 
class WXHValidator(FancyValidator):
    """