Package analysis :: Module node
[show private | hide private]
[frames | no frames]

Module analysis.node

Node manipulations.

Copyright (C) 2005 Paul Boddie <paul@boddie.org.uk>

This software is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this library; see the file LICENCE.txt If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
Exceptions
BlockedError  

Function Summary
  link(target, source, blocking, overwrite)
Link between 'target' and 'source'.
  merge(target, source, blocking)
Link between 'target' and 'source', copying the contexts of 'source' into 'target'.
  reset(node)
  _copy_contexts(target, context_items, overwrite)

Function Details

link(target, source, blocking=0, overwrite=1)

Link between 'target' and 'source'.

If the optional 'blocking' parameter is set to a true value, raise an exception if 'source' has no contexts defined. Otherwise, where no contexts are defined, introduce the 'source' as a context item.

If the optional 'overwrite' is set to a false value, the 'target' node's contexts will be merged with those from the 'source' node. Otherwise, the 'target' node's contexts will be overwritten.

merge(target, source, blocking=0)

Link between 'target' and 'source', copying the contexts of 'source' into 'target'.

If the optional 'blocking' parameter is set to a true value, raise an exception if 'source' has no contexts defined. Otherwise, where no contexts are defined, none are copied to 'target'.

Generated by Epydoc 2.1 on Tue Dec 20 00:05:45 2005 http://epydoc.sf.net