src/g/a/gaesdk-python-HEAD/lib/PyAMF/doc/architecture/examples/attribute-control/server.py gaesdk-python(Download)
class UserService(object):
def saveUser(self, user):
user.put()
def getUsers(self):
src/g/a/gaesdk-python-HEAD/lib/PyAMF/doc/architecture/examples/attribute-control/proxied-attr.py gaesdk-python(Download)
class Person(object):
class __amf__:
proxy = ('address',)
pyamf.register_class(Person, 'com.acme.app.Person')src/g/a/gaesdk-python-HEAD/lib/PyAMF/doc/architecture/examples/attribute-control/iexternalizable.py gaesdk-python(Download)
class Person(object):
class __amf__:
external = True
def __writeamf__(self, output):
src/g/a/gaesdk-python-HEAD/lib/PyAMF/doc/architecture/examples/adapters/mymodule.py gaesdk-python(Download)
class CustomClass(object):
def __iter__(self):
return iter([1, 2, 3])src/i/n/Inject-1.0.1/Examples/django_example/views.py Inject(Download)
class Hello(object):
'''Hello string with a request counter.'''
counter = 0
class Text1(object):
@inject.param('app_started_at', 'app_started_at')
def __init__(self, app_started_at):
self.app_started_at = app_started_at
class Text2(object):
@inject.param('req_started_at', 'req_started_at')
def __init__(self, req_started_at):
self.req_started_at = req_started_at
class Text3(object):
@inject.param('req_started_at', 'req_started_at')
@inject.param('req_ended_at', datetime, bindto=datetime.now)
def __str__(self, req_started_at, req_ended_at):
src/g/o/google-app-engine-HEAD/lib/webob_0_9/docs/comment-example-code/example.py google-app-engine(Download)
class Commenter(object):
def __init__(self, app, storage_dir):
self.app = app
self.storage_dir = storage_dir
src/m/a/Matplotlib--JJ-s-dev-HEAD/examples/units/basic_units.py Matplotlib--JJ-s-dev(Download)
class ProxyDelegate(object):
def __init__(self, fn_name, proxy_type):
self.proxy_type = proxy_type
self.fn_name = fn_name
def __get__(self, obj, objtype=None):
class PassThroughProxy(object):
def __init__(self, fn_name, obj):
self.fn_name = fn_name
self.target = obj.proxy_target
def __call__(self, *args):
class TaggedValue (object):
__metaclass__ = TaggedValueMeta
_proxies = {'__add__':ConvertAllProxy,
'__sub__':ConvertAllProxy,
class IteratorProxy(object):
def __init__(self, iter, unit):
self.iter = iter
self.unit = unit
def next(self):
class BasicUnit(object):
def __init__(self, name, fullname=None):
self.name = name
if fullname is None: fullname = name
self.fullname = fullname
src/s/q/sqlalchemy-HEAD/examples/vertical/dictlike.py sqlalchemy(Download)
class VerticalProperty(object):
"""A key/value pair.
This class models rows in the vertical table.
"""
class VerticalPropertyDictMixin(object):
"""Adds obj[key] access to a mapped class.
This is a mixin class. It can be inherited from directly, or included
with multiple inheritence.
src/s/q/sqlalchemy-HEAD/examples/sharding/attribute_shard.py sqlalchemy(Download)
class WeatherLocation(object):
def __init__(self, continent, city):
self.continent = continent
self.city = city
class Report(object):
src/s/q/sqlalchemy-HEAD/examples/large_collection/large_collection.py sqlalchemy(Download)
class Organization(object):
def __init__(self, name):
self.name = name
class Member(object):
Previous 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 Next