def get_stylesheet_page_for_user(user): from ga_resources.models import CatalogPage user_page, created = CatalogPage.objects.get_or_create( title=best_name(user), owner=user, in_menus=[5, 6, 7, 8], public=False) p = CatalogPage.ensure_page(best_name(user), "Stylesheets", in_menus=[7]) return p
def get_stylesheet_page_for_user(user): from ga_resources.models import CatalogPage user_page, created = CatalogPage.objects.get_or_create(title=best_name(user), owner=user, in_menus=[5, 6, 7, 8], public=False) p = CatalogPage.ensure_page(best_name(user), "Stylesheets", in_menus=[7]) return p
def get_layer_page_for_user(user): from ga_resources.models import CatalogPage p = CatalogPage.ensure_page(user.username, "Layers", in_menus=[6]) return p
def get_stylesheet_page_for_user(user): from ga_resources.models import CatalogPage p = CatalogPage.ensure_page(user.username, "Stylesheets", in_menus=[7]) return p
def get_data_page_for_user(user): from ga_resources.models import CatalogPage p = CatalogPage.ensure_page(user.username, "Datasets", in_menus=[5]) return p