I was toying around with FastData2 (from Alberto's svn), and had a few 
questions.

- Looks like there are two generic operations, getting data 
(IDataHandler) and getting widgets (widget_for).  I guess I'm not 
clear on the IDataHandler what the 'controller' parameter would be 
used for.  It seems I could write a SA IDataHandler and not really 
care about what the controller is given the wsgi environ and a few 
standardized keywords, but I could be missing something.

- I assume that IDataHandler.do_retrieve needs to handle returning 
multiple objects and just a single instance. Should do_retrieve always 
return a list, or should there be a keyword (or separate method) that 
indicates that you really only want *one* object.

- On the widgets side (widget_for), how do I override the default 
behavior? For instance, in the user object, say I want to hide the 
'user_name' field, drop the 'password' field (never ever gets sent to 
the browser), and format the 'user_balance' field in "X,XX0.00" 
format? I assume that's through **kw somehow, and perhaps it isn't 
that big of a concern right now.

- For that matter, how do I specify what 'mode' I am in (edit, view)? 
Is that what the 'action' keyword is for? (from the example, it looks 
like action got tacked onto the id, but perhaps that is just to 
demonstrate how the generic works).

- I had some trouble read() ing from 
cherrypy.request.wsgi_environ['wsgi.input'] inside of a controller (it 
would timeout).  This is in CP 2.2. I can take it to the CherryPy list 
if no one has run across this.

Thanks.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to