Did I find the right examples for you? yes no

All Samples(19)  |  Call(6)  |  Derive(0)  |  Import(13)
List/section class.

src/s/t/stashboard-HEAD/stashboard/handlers/api.py   stashboard(Download)
from utils import authorized
from utils import slugify
from models import List, Status, Event, Service, Image
from wsgiref.handlers import format_date_time
 
            return
 
        l = List(name=name, slug=slug, description=description)
        l.put()
 

src/o/o/oosapy-0.1.1/oosapy/__init__.py   oosapy(Download)
from auth import AnonymousAuthentication, OAuthAuthentication
from error import OosApyError
from models import User, Contact, CheckIn, Activity, Area, Service,\
    SearchedService, ServiceReview, Media, Tag, List, Category, Attribute,\
    Privacy, Trusted 

src/s/t/stashboard-HEAD/tests/test_service_lists.py   stashboard(Download)
 
from mock import patch
from models import Service, List
from test_api import StashboardTest
 
    def setUp(self):
        super(ServiceListInstanceTest, self).setUp()
        self.service_list = List(slug="foo", name="Foo", description="Bar")
        self.service_list.put()
        self.service = Service(list=self.service_list, name="Foo", slug="foo",
                               description="foo")
        self.service.put()
 
    def test_resource_url(self):
        service_list = List(slug="foo", name="Foo", description="Bar")
    def test_url(self):
        service_list = List(slug="foo", name="Foo", description="Bar")
        self.assertEquals(service_list.url(), "/service-lists/foo")
 
    def test_delete_wrong_service(self):

src/s/t/stashboard-HEAD/tests/test_services.py   stashboard(Download)
 
from mock import patch
from models import Service, List
from test_api import StashboardTest
 
    def setUp(self):
        super(ServiceInstanceTest, self).setUp()
        self.service_list = List(slug="foo", name="Foo", description="Bar")
        self.service_list.put()
        self.service = Service(name="Foo", slug="foo", description="foo")
    def setUp(self):
        super(ServicesTest, self).setUp()
        self.service_list = List(slug="foo", name="Foo", description="Bar")
        self.service_list.put()
 

src/s/t/stashboard-HEAD/stashboard/handlers/admin.py   stashboard(Download)
from handlers import api
from handlers import site
from models import List, Service, Status, Event, Image, Profile, InternalEvent
from utils import slugify
 

src/s/t/stashboard-HEAD/stashboard/handlers/site.py   stashboard(Download)
from django.utils import simplejson as json
from time import mktime
from models import List, Status, Service, Event, Profile
import xml.etree.ElementTree as et
from utils import authorized

src/g/e/GeoRemindMe_Web-HEAD/src/webapp/geolist/views.py   GeoRemindMe_Web(Download)
 
from geouser.decorators import login_required, username_required
from models import ListSuggestion, ListAlert, ListUser, List
 
#===============================================================================

src/d/j/django-orchestra-HEAD/orchestra/apps/lists/serializers.py   django-orchestra(Download)
from rest_framework import serializers
 
from orchestra.apps.accounts.serializers import AccountSerializerMixin
 
from .models import List

src/d/j/django-orchestra-HEAD/orchestra/apps/lists/api.py   django-orchestra(Download)
from orchestra.apps.accounts.api import AccountApiMixin
 
from .models import List
from .serializers import ListSerializer
 

src/d/j/django-orchestra-HEAD/orchestra/apps/lists/admin.py   django-orchestra(Download)
 
from .forms import ListCreationForm, ListChangeForm
from .models import List
 
 

  1 | 2  Next