General utility functions & common includes
Test documentationTests passed:
Axon.util.Finalityclass Finality(Exception)
Used for implementing try...finally... inside a generator.
Axon.util.axonRaiseaxonRaise(someException, *args)Raises the supplied exception with the supplied arguments if Axon.util.production is set to True. Axon.util.listSubsetlistSubset(requiredList, suppliedList)Returns true if the requiredList is a subset of the suppliedList. Axon.util.logErrorlogError(someException, *args)Currently does nothing but can be rewritten to log ignored errors if the production value is true. Axon.util.removeAllremoveAll(xs, y)Very simplistic method of removing all occurances of y in list xs. Axon.util.safeListsafeList([arg])Returns the list version of arg, otherwise returns an empty list. Axon.util.testInterfacetestInterface(theComponent, interface)Look for a minimal match interface for the component. The interface should be a tuple of lists, i.e. ([inboxes],[outboxes]). FeedbackGot a problem with the documentation? Something unclear that could be clearer? Want to help improve it? Constructive criticism is very welcome - especially if you can suggest a better rewording! Please leave you feedback here in reply to the documentation thread in the Kamaelia blog. -- Automatic documentation generator, 01 Feb 2010 at 04:00:28 UTC/GMT |
Kamaelia
is an open source project originated from and guided by BBC
Research. For more information browse the site or get in
contact.
This is an ongoing community based development site. As a result the contents of this page is the opinions of the contributors of the pages involved not the organisations involved. Specificially, this page may contain personal views which are not the views of the BBC. (the site is powered by a wiki engine)
(C) Copyright 2008 Kamaelia Contributors, including the British Broadcasting Corporation, All Rights Reserved