From: André W. <wo...@us...> - 2011-12-23 00:54:51
|
Dear Michael, good catch, thanks, checked in as changeset 3238. (This recent code move is part of some major graph (axis) reorganization. But I'm not working on it at the moment. It has to wait for another two months or so.) Best, André Am 22.12.2011 um 14:26 schrieb Michael J Gruber: > r3235 moved plot styles to graph.style. As a result, plotitem raises > > AttributeError: 'module' object has no attribute 'getdefaultprovider' > > because style.getdefaultprovider() does not find getdefaultprovider when > called in the module style (graph.style). > > Fix this by referencing getdefaultprovider() directly (without the > module) in that module. > > Signed-off-by: Michael J Gruber <mic...@us...> > --- > pyx/graph/style.py | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/pyx/graph/style.py b/pyx/graph/style.py > index 4afc047..9471b2f 100644 > --- a/pyx/graph/style.py > +++ b/pyx/graph/style.py > @@ -56,7 +56,7 @@ class plotitem: > for s in styles: > for n in s.needsdata: > if n not in provided: > - defaultprovider = style.getdefaultprovider(n) > + defaultprovider = getdefaultprovider(n) > addstyles.append(defaultprovider) > provided.extend(defaultprovider.providesdata) > provided.extend(s.providesdata) > -- > 1.7.8.1.461.g7edd2 > > > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ > PyX-devel mailing list > PyX...@li... > https://lists.sourceforge.net/lists/listinfo/pyx-devel -- by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim / \ \ / ) wo...@us..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ |