new chimera.fileInfo.register interface

There are now two additional keyword arguments to chimera.fileInfo.register: category and dangerous. The category should be set to one of the built-in categories or one you invent. The categories are meant to help organize all of the file types chimera can open. A set of default categories has been created, chimera.FileInfo.X where X is DYNAMICS for a molecular trajectory (amber), GENERIC3D for generic 3D objects (vrml, bild), SCRIPT for command scripts (python, midas), SEQUENCE for molecular sequences, STRUCTURE for molecule structure (pdb, mol2), SURFACE for molecular surfaces (grasp), and VOLUME for volume data. The dangerous flag defaults to True for scripts and false otherwise. You can override that default by giving the keyword. So far, the categories have only been added to the default file types in the chimera module and to the Midas module. Please update your uses of chimera.fileInfo.register in the extensions you maintain. - Greg

On Mar 7, 2006, at 5:21 PM, Greg Couch wrote:
The dangerous flag defaults to True for scripts and false otherwise. You can override that default by giving the keyword.
And what "dangerous" _means_ is that opening that file type can result in the execution of arbitrary commands, and therefore may not be safe if you don't trust the data source (e.g. it came from a web page). --Eric
participants (2)
-
Eric Pettersen
-
Greg Couch