This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def restore_namespace_after(func): | |
"""Decorator that ensures that restore the original namespace after the function has | |
been executed in appengine.""" | |
@functools.wraps(func) | |
def decorated_func(*args, **kwargs): | |
namespace = namespace_manager.get_namespace() | |
res = func(*args, **kwargs) | |
namespace_manager.set_namespace(namespace) | |
return res | |
return decorated_func |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import with_statement | |
import functools | |
import os | |
import sys | |
from fabric.api import * | |
from fabric.colors import green, red, green | |
import datetime | |
import re |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.springsource.petclinic; | |
import com.springsource.petclinic.domain.Owner; | |
import com.springsource.petclinic.domain.Pet; | |
import com.springsource.petclinic.domain.Vet; | |
import com.springsource.petclinic.domain.Visit; | |
import com.springsource.petclinic.reference.PetType; | |
import com.springsource.petclinic.reference.Specialty; | |
import org.springframework.context.ApplicationListener; | |
import org.springframework.context.event.ContextRefreshedEvent; |
NewerOlder