Skip to content
Commits on Jun 6, 2015
  1. Merge pull request #14 from mkorenkov/master

    Support for Access-Control-Max-Age: 1000 like headers
    committed Jun 6, 2015
Commits on May 26, 2015
  1. @mkorenkov
Commits on May 24, 2015
  1. Merge pull request #13 from mkorenkov/wsgi

    Compatibility with Django 1.8
    committed May 24, 2015
Commits on May 20, 2015
  1. @mkorenkov
  2. @mkorenkov
Commits on Feb 4, 2011
  1. Fixed OptionParser import error.

    Some pep8 cleaning.
    zyegfryed committed Feb 4, 2011
  2. Updated OAuth documentation.

    zyegfryed committed Feb 4, 2011
  3. pep8 cleaning & some fixes.

    zyegfryed committed with Jan 27, 2011
  4. pep8 cleaning.

    zyegfryed committed Feb 4, 2011
  5. Cleaned unused import.

    zyegfryed committed Feb 4, 2011
Commits on Jan 31, 2011
  1. spurious print.

    committed Jan 31, 2011
  2. fix post is create.

    committed Jan 31, 2011
Commits on Jan 27, 2011
  1. Fixed last_modified error. By default, Resource alaways return None f…

    …or last_modified field.
    zyegfryed committed Jan 27, 2011
  2. Fixed last_modified header comparison.

    zyegfryed committed Jan 27, 2011
Commits on Jan 26, 2011
Commits on Jan 6, 2011
  1. @brutasse

    Removed django from install_requires.

    This allows to use a specific Django version (like trunk) and still upgrade
    everything with pip install -U. Otherwise pip installs django 1.2.4 which is
    problematic if the site has been built for an older or newer Django version.
    brutasse committed with Jan 6, 2011
Commits on Dec 6, 2010
  1. temporary fix. This implementation is just wrong though, we need to go

    for a serialisation based on rules using pattern and types of objects.
    benoitc committed Dec 6, 2010
Commits on Dec 1, 2010
  1. For now we only support json serialization. Add support for fields and

    excludes options. Remove creation of a model on deserialization and let
    the dev handle it in his app.
    
    Put XMLSerializer in progress in serialize branch.
    benoitc committed Dec 1, 2010
  2. rename

    benoitc committed Dec 1, 2010
  3. license info in README.

    benoitc committed Dec 1, 2010
Commits on Nov 23, 2010
  1. import webmachine ui for wmtrace .

    benoitc committed Nov 23, 2010
  2. some fixes:

    - fix content-type and header handling using webob
    - fix serializer
    - fix response with django cache.
    benoitc committed Nov 23, 2010
  3. http status code

    benoitc committed Nov 23, 2010
Commits on Nov 22, 2010
  1. fix issue #1

    benoitc committed Nov 22, 2010
  2. first bits to serialize. For now only handle JSON

    setrialization/deserialization, XM serialization and provides functions
    to create emittable values from django models and queryset and the way
    to convert from an HTTP body to usable value (value_to_python). Ex with
    json:
    
    In [1]: from webmachine.serializer import *
    
    In [2]: from tinyurl.shorten.models import TestModel
    
    In [3]: json = JSONSerializer()
    
    In [4]: c = {"test": "a", "list": [1, 2], "qs": TestModel.objects.all()}
    
    In [5]: s = json.serialize(c)
    
    In [6]: s
    Out[6]: '{"test": "a", "qs": [{"c": "test", "meta": {"pk": 1, "model":
    "shorten.testmodel"}}, {"c": "test", "meta": {"pk": 2, "model":
    "shorten.testmodel"}}, {"c": "test", "meta": {"pk": 3, "model":
    "shorten.testmodel"}}, {"c": "test", "meta": {"pk": 4, "model":
    "shorten.testmodel"}}, {"c": "test", "meta": {"pk": 5, "model":
    "shorten.testmodel"}}, {"c": "test", "meta": {"pk": 6, "model":
    "shorten.testmodel"}}, {"c": "test", "meta": {"pk": 7, "model":
    "shorten.testmodel"}}, {"c": "test", "meta": {"pk": 8, "model":
    "shorten.testmodel"}}, {"c": "test", "meta": {"pk": 9, "model":
    "shorten.testmodel"}}, {"c": "test", "meta": {"pk": 10, "model":
    "shorten.testmodel"}}], "list": [1, 2]}'
    
    In [7]: json.unserialize(s)
    Out[7]:
    {u'list': [1, 2],
     u'qs': [<TestModel: TestModel object>,
             <TestModel: TestModel object>,
             <TestModel: TestModel object>,
             <TestModel: TestModel object>,
             <TestModel: TestModel object>,
             <TestModel: TestModel object>,
             <TestModel: TestModel object>,
             <TestModel: TestModel object>,
             <TestModel: TestModel object>,
             <TestModel: TestModel object>],
     u'test': u'a'}
    benoitc committed Nov 22, 2010
Commits on Nov 17, 2010
  1. pyflakes my friend

    benoitc committed Nov 17, 2010
  2. more fixes

    benoitc committed Nov 17, 2010
  3. instead of uisng modified version of webob and adding properties to

    django requests and responses just use webob and wrap HttpRequest and
    HttpResponse.
    benoitc committed Nov 17, 2010
  4. bump

    benoitc committed Nov 17, 2010
Something went wrong with that request. Please try again.