def get(company_id, event_id=None, start=None, end=None, hide_expired=False, limit=None, offset=None, sort_by=None, sort_dir=None, user_id=None): return db.event_get( company_id=company_id, event_id=event_id, start=start, end=end, hide_expired=hide_expired, limit=limit, offset=offset, sort_by=sort_by, sort_dir=sort_dir, user_id=user_id )
def get(company_id, start=None, end=None, show_expired=True, limit=None, offset=None, sort_by=None, sort_dir=None, user_id=None): return db.event_get(company_id=company_id, start=start, end=end, show_expired=show_expired, limit=limit, offset=offset, sort_by=sort_by, sort_dir=sort_dir, user_id=user_id)
def delete(place_id): place_name = db.place_get(place_id=place_id).name if db.event_get(place_id=place_id): abort(400, 'There are Events associated with this Place') db.place_delete(place_id) notify(u'{} deleted a Place - <strong>%s</strong>' % place_name, action='delete', target='place')