Did I find the right examples for you? yes no

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/h/d/hd-events-HEAD/main.py   hd-events(Download)
from datetime import datetime, timedelta
 
from models import Event, Feedback, HDLog, ROOM_OPTIONS, PENDING_LIFETIME
from utils import username, human_username, set_cookie, local_today, is_phone_valid, UserRights, dojo
from notices import *
                        log_desc += "<strong>Old time:</strong> %s minutes<br/>" % previous_object.teardown_time
                        log_desc += "<strong>New time:</strong> %s minutes<br/>" % event.teardown_time
                    log = HDLog(event=event,description="Event edited<br />"+log_desc)
                    log.put()
                    show_all_nav = user
                notify_owner_approved(event)
            if desc != '':
                log = HDLog(event=event,description=desc)
                log.put()
        event.details = db.Text(event.details.replace('\n','<br/>'))
                )
                event.put()
                log = HDLog(event=event,description="Created new event")
                log.put()
                notify_owner_confirmation(event)
                    comment = cgi.escape(self.request.get('comment')))
                feedback.put()
                log = HDLog(event=event,description="Posted feedback")
                log.put()
                self.redirect('/event/%s-%s' % (event.key().id(), slugify(event.name)))