Permalink
Switch branches/tags
Nothing to show
Commits on Jun 6, 2015
  1. Merge pull request #14 from mkorenkov/master

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

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

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

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

    zyegfryed committed with benoitc 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.

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

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

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

    zyegfryed committed Jan 27, 2011
Commits on Jan 26, 2011
Commits on Jan 6, 2011
  1. Removed django from install_requires.

    brutasse committed with benoitc Jan 6, 2011
    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.
Commits on Dec 6, 2010
  1. temporary fix. This implementation is just wrong though, we need to go

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

    benoitc committed Dec 1, 2010
    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.
  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:

    benoitc committed Nov 23, 2010
    - fix content-type and header handling using webob
    - fix serializer
    - fix response with django cache.
  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

    benoitc committed Nov 22, 2010
    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'}
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

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

    benoitc committed Nov 17, 2010