[Cubicweb] Higher-level API for rtags

Julien Jehannet julien.jehannet at logilab.fr
Mon Sep 27 10:26:51 CEST 2010

> * Florent Cayré <florent at secondweb.fr> [26-sep-2010 14:53]:
> Reading your post, I wonder if we should not make form config classes
> inherit from AppObject so that they are selectable at run-time :
> * this would allow run-time configuration of a single form, based on
> DB content for example ; although this could be misused to put things
> in the DB that should rather be coded, CW users will probably find
> useful use cases (on that comes to my mind is to allow per user
> configuration of widgets to have a very customizable interface)
> * your form config classes would then simply implement a selector
> (very often a combination like "implements('MyEType') &&
> match_user_groups('MyUserGroup')" I guess) instead of a plain etype
> attribute, and could use properties to dynamically compute the form
> configuration (e.g. query the db to know which date time widget a user
> prefers).

+1 as well,

IMO, another benefits from using selectors is to:
- better reuse existing uicfg declarations
- garanty some kind of ubiquiness by preventing from duplicates in
  different locations by raising a NoSelectableObject exception if
  ambiguity was found
- permit to test uicfg configuration by the registry API which
  should be already known by every CubicWeb developer.

Julien JEHANNET                                          LOGILAB, Paris (France)
http://www.cubicweb.org                 CubicWeb, le cadriciel du web sémantique
http://www.logilab.org             Dépôt des logiciels libres conçus par Logilab
http://www.logilab.fr       Informatique scientifique & Gestion de connaissances
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20100927/e5e92951/attachment-0272.sig>

More information about the Cubicweb mailing list