TODO.rst
author Christophe de Vienne <christophe@unlish.com>
Thu, 31 Jul 2014 17:48:32 +0200
changeset 11492 b0b8942cdb80
parent 11491 6ba31f0c7d5a
child 11495 f936708c6ea2
permissions -rw-r--r--
Separate into 4 modules * init_instance: load the cubicweb repository from the `pyramid_cubicweb.instance` configuration key * defaults: provides cw-like defaults for the authentication and session management * core: make cubicweb use the authentication and session management of pyramid. It assumes the application provides the auth policies and session factory, and that the `cubicweb.*` registry entries are correctly initialised. This is this only required module or pyramid_cubicweb, the other ones are optional if the application provides its own versions of what they do. * bwcompat: provides a catchall route that delegate the request handling to an old-fashion cubicweb publisher (ie using url_resolver and controllers). Related to #4291173
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11480
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     1
Next steps
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     2
----------
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     3
11491
6ba31f0c7d5a Update the TODO list
Christophe de Vienne <christophe@unlish.com>
parents: 11480
diff changeset
     4
- finish what was started :
6ba31f0c7d5a Update the TODO list
Christophe de Vienne <christophe@unlish.com>
parents: 11480
diff changeset
     5
6ba31f0c7d5a Update the TODO list
Christophe de Vienne <christophe@unlish.com>
parents: 11480
diff changeset
     6
    - bypass publisher.
6ba31f0c7d5a Update the TODO list
Christophe de Vienne <christophe@unlish.com>
parents: 11480
diff changeset
     7
    - tighten the error handling and get a well-behaved application
6ba31f0c7d5a Update the TODO list
Christophe de Vienne <christophe@unlish.com>
parents: 11480
diff changeset
     8
    - provide sane default policies that match current cubicweb behavior.
6ba31f0c7d5a Update the TODO list
Christophe de Vienne <christophe@unlish.com>
parents: 11480
diff changeset
     9
6ba31f0c7d5a Update the TODO list
Christophe de Vienne <christophe@unlish.com>
parents: 11480
diff changeset
    10
- identify what can be done without pushing the 'pyramid way' into cubicweb (as
6ba31f0c7d5a Update the TODO list
Christophe de Vienne <christophe@unlish.com>
parents: 11480
diff changeset
    11
  a first step for future evolutions).
6ba31f0c7d5a Update the TODO list
Christophe de Vienne <christophe@unlish.com>
parents: 11480
diff changeset
    12
6ba31f0c7d5a Update the TODO list
Christophe de Vienne <christophe@unlish.com>
parents: 11480
diff changeset
    13
11480
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    14
Provide a ctl command
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    15
~~~~~~~~~~~~~~~~~~~~~
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    16
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    17
Add a 'pyramid' command for cubicweb-ctl that starts a cubicweb instance within
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    18
a pyramid container.
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    19
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    20
Transactions
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    21
~~~~~~~~~~~~
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    22
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    23
A common transaction handling mechanism should be used so that the connexion
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    24
can be safely used in both pyramid and cubicweb.
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    25
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    26
Reimplement the base controllers of cw
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    27
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    28
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    29
-   rest
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    30
-   static
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    31
-   data
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    32
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    33
Bypass cw.handle_request in most case
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    34
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    35
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    36
Use it only when no other mean works, which should provide backward compat of
79ac26923432 Initial implementation
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    37
old cubes for a while.