[Cubicweb] annotating divs with rql and vid

Pierre-Yves David pierre-yves.david at logilab.fr
Fri May 25 14:08:34 CEST 2012


On Fri, May 25, 2012 at 02:07:10PM +0200, Aurélien Campéas wrote:
> Le 25/05/2012 11:19, Pierre-Yves David a écrit :
> >On Thu, May 24, 2012 at 06:35:00PM +0200, Aurélien Campéas wrote:
> >>Le 24/05/2012 18:09, Pierre-Yves David a écrit :
> >>>On Thu, May 24, 2012 at 05:39:02PM +0200, Sylvain Thénault wrote:
> >>>example:
> >>>
> >>>     class MyView(self):
> >>>
> >>>         __vargs__ = ('arg1', 'arg2', 'arg3')
> >>>
> >>>         def call(arg1, arg2='babar', arg3='celestine'):
> >>>
> >>>             self.arg1 = arg1
> >>>             self.arg2 = arg2
> >>>             self.arg3 = arg3
> >>>
> >>
> >>what about having the __vargs__ automatically computed by default ?
> >
> >How would you compute that ?
> >
> 
> python has this funny thing called "introspection" :-p

I'm not sure magic are welcome here

In one of my previous email:

> ps: no, we won't do method introspection to search for argument name !


-- 
Pierre-Yves David

http://www.logilab.fr/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20120525/e40f6804/attachment-0271.sig>


More information about the Cubicweb mailing list