Skip to content

Commit

Permalink
Moved parsing functions starting with stylesheet_declarations() from …
Browse files Browse the repository at this point in the history
…cascadenik.style to cascadenik.parse
  • Loading branch information
Michal Migurski committed May 1, 2012
1 parent 16d26bf commit 3a542f3
Show file tree
Hide file tree
Showing 5 changed files with 520 additions and 517 deletions.
14 changes: 8 additions & 6 deletions cascadenik/__init__.py
Expand Up @@ -9,12 +9,14 @@
from os.path import isdir, realpath, expanduser, dirname, exists
from urlparse import urlparse

import style
# compile module
import compile as _compile
# compile function
from compile import compile, Directories
from style import stylesheet_declarations
from . import style
from .parse import stylesheet_declarations

# compile module -> "_compile"
from . import compile as _compile

# compile function -> "compile"
from .compile import compile, Directories

# define Cascadenik version
VERSION = '1.0.0'
Expand Down
14 changes: 7 additions & 7 deletions cascadenik/compile.py
Expand Up @@ -54,12 +54,12 @@ def HTTPSConnection(host, port=None, strict=None, timeout=None):


# cascadenik
import safe64
import style
import sources
import style
import output
from cascadenik.nonposix import un_posix, to_posix
from . import safe64
from . import style
from . import output
from . import sources
from .nonposix import un_posix, to_posix
from .parse import stylesheet_declarations

# mapnik
import mapnik
Expand Down Expand Up @@ -642,7 +642,7 @@ def extract_declarations(map_el, dirs):
continue

is_merc = is_merc_projection(map_el.get('srs',''))
declarations.extend(style.stylesheet_declarations(styles, is_merc))
declarations.extend(stylesheet_declarations(styles, is_merc))

return declarations

Expand Down

0 comments on commit 3a542f3

Please sign in to comment.