8 | | dataset.listChildren() |
9 | | dataset.copyImageLinks() link.child |
10 | | }}} |
| 5 | == BlitzObjectWrapper == |
| 6 | |
| 7 | || **findChildByName (self, name, description=None)** || Not used || |
| 8 | || getDetails() || gateway mostly. wraps obj.getDetails() || |
| 9 | || getDate() || mostly used in html templates - returns acquisition or creation date || |
| 10 | || save() || not used outside of blitz, dbhelpers, gatewaytest || |
| 11 | || **saveAs(details)** || only used once in gatewaytest || |
| 12 | |
| 13 | Permission and group methods - generally quite useful but complex |
| 14 | * canWrite() |
| 15 | * canOwnerWrite() |
| 16 | * canDelete() |
| 17 | * isOwned() |
| 18 | * isLeaded() |
| 19 | * isEditable() |
| 20 | * isShared() |
| 21 | * isPrivate() |
| 22 | * isReadOnly() |
| 23 | |
| 24 | || countChildren() || calls containerService || |
| 25 | || countChildren_cached() || as above but returns cached result if available || |
| 26 | || listChildren (self, ns=None, val=None, params=None) || NOT used with any arguments - move to P/D only? || |
| 27 | || **listParents (self, single=True, withlinks=False)** || only used by getAncestry() and _move_link(). NOT used by webclient || |
| 28 | || **getAncestry()** || only used for simpleMarshall and cache keys. || |
| 29 | || getParentLinks(self, pids=None) || Used in webclient. D/I & plate only. Overwritten by annotation wrapper (could use conn.getAnnotationLinks) || |
| 30 | || **getChildLinks(self, chids=None)** || NOT used || |
| 31 | || **unlinkAnnotations (self, ns)** || only used in gatewaytest || |
| 32 | || **removeAnnotations (self, ns)** || used for image rendering annotation hack, dbhelpers and gatewaytest only (not in web) || |
| 33 | || **getAnnotation (self, ns=None)** || used for experimenter prefs and image rendering options. lots in gatewaytest, NOT in web. || |
| 34 | || listAnnotations(self, ns=None) || used lots in web || |
| 35 | || listOrphanedAnnotations(self, eid=None, ns=None, anntype=None) || Only used by web. Maybe rename to listUnlinkedAnnotations() ? || |
| 36 | || linkAnnotation (self, ann, sameOwner=True) || blitz use for exp prefs and image rendering. Lots in gatewaytest, NOT used in web. || |