Changes between Version 13 and Version 14 of S3/S3Method


Ignore:
Timestamp:
06/13/14 12:05:11 (11 years ago)
Author:
MattS
Comment:

syntax highlighting

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3Method

    v13 v14  
    1111
    1212Function:
    13 {{{
     13{{{#!python
    1414def my_method_handler(r, **attr):
    1515    return dict()
     
    1717
    1818Lambda:
    19 {{{
     19{{{#!python
    2020my_method_handler = lambda r, **attr: dict()
    2121}}}
    2222
    2323Class and instance:
    24 {{{
     24{{{#!python
    2525class MyMethodHandler:
    2626    def __call__(r, **attr):
     
    7676To implement a method handler as {{{S3Method}}}, you would typically subclass {{{S3Method}}} and implement the {{{apply_method}}} method:
    7777
    78 {{{
     78{{{#!python
    7979class MyMethodHandler(S3Method):
    8080