From: Ivan V. i B. <iv...@ca...> - 2005-01-25 16:59:49
|
On Tue, Jan 25, 2005 at 05:39:41PM +0100, Francesc Altet wrote: [...] > However, we plan to add a few methods to Group in order to easy the creat= ion > of nodes. Most probably, we will implement: Group._f_createGroup, > Group._f_create*Array and Group._f_createTable that will do the similar > thing than their counterparts in File. Besides, we plan to add support for > Group.__getitem__('nodename') and Group.__delitem__('nodename'). With tha= t, > we think that node creation and referencing would result somewhat improve= d. [...] This is definitely a good move, since it moves node creation and deletion to the containing node instead of the File. A coherent move in the same direction would be to change Group._f_rename(newname), which changes a group's own name, to Group._f_rename(oldname, newname), which would change a *child's* name. The name of a node should only matter to the containing group. Also, Leaf._f_rename would go away. So, >>> group.oldname._f_rename('newname') would change to: >>> group._f_rename('oldname', 'newname') which is more coherent with the way file systems work. --=20 Ivan Vilata i Balaguer >qo< http://www.carabos.com/ C=E1rabos Coop. V. V V Enjoy Data "" |