Browse Source

Make it work

pull/8/head
Florian Mounier 13 years ago
parent
commit
d05e62f593
  1. 5
      .hgignore
  2. 0
      pygal/__init__.py
  3. 0
      pygal/bar.css
  4. 0
      pygal/bar.py
  5. 0
      pygal/css.py
  6. 0
      pygal/graph.css
  7. 16
      pygal/graph.py
  8. 0
      pygal/line.py
  9. 0
      pygal/pie.css
  10. 0
      pygal/pie.py
  11. 0
      pygal/plot.css
  12. 0
      pygal/plot.py
  13. 0
      pygal/schedule.py
  14. 0
      pygal/time_series.py
  15. 0
      pygal/util.py
  16. 2
      setup.py
  17. 7
      svg/__init__.py

5
.hgignore

@ -1,5 +0,0 @@
syntax:glob
dist
build
tests/*.svg
docs/_build

0
svg/charts/__init__.py → pygal/__init__.py

0
svg/charts/bar.css → pygal/bar.css

0
svg/charts/bar.py → pygal/bar.py

0
svg/charts/css.py → pygal/css.py

0
svg/charts/graph.css → pygal/graph.css

16
svg/charts/graph.py → pygal/graph.py

@ -13,8 +13,8 @@ import pkg_resources
import functools
import cssutils
from lxml import etree
from xml import xpath
from pygal import css # causes the SVG profile to be loaded
@ -612,13 +612,13 @@ class Graph(object):
# do nothing
return
styles = self.parse_css()
for node in xpath.Evaluate('//*[@class]', self.root):
cl = node.getAttribute('class')
style = styles[cl]
if node.hasAttribute('style'):
style += node.getAttribute('style')
node.setAttribute('style', style)
# styles = self.parse_css()
# for node in xpath.Evaluate('//*[@class]', self.root):
# cl = node.getAttribute('class')
# style = styles[cl]
# if node.hasAttribute('style'):
# style += node.getAttribute('style')
# node.setAttribute('style', style)
def parse_css(self):
"""

0
svg/charts/line.py → pygal/line.py

0
svg/charts/pie.css → pygal/pie.css

0
svg/charts/pie.py → pygal/pie.py

0
svg/charts/plot.css → pygal/plot.css

0
svg/charts/plot.py → pygal/plot.py

0
svg/charts/schedule.py → pygal/schedule.py

0
svg/charts/time_series.py → pygal/time_series.py

0
svg/charts/util.py → pygal/util.py

2
setup.py

@ -26,7 +26,6 @@ dateutil_req = (
setup_params = dict(
name="pygal",
use_hg_version=True,
description="Python svg graph abstract layer",
long_description=_long_description,
author="Jason R. Coombs, Kozea",
@ -34,7 +33,6 @@ setup_params = dict(
url="https://github.com/Kozea/pygal",
packages=find_packages(),
zip_safe=True,
namespace_packages=['pygal'],
include_package_data=True,
install_requires=[
'cssutils>=0.9.8a3',

7
svg/__init__.py

@ -1,7 +0,0 @@
# this is a namespace package
try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)
Loading…
Cancel
Save