Package cssutils :: Module util :: Class Base
[hide private]
[frames] | no frames]

Class Base

source code

object --+
         |
        Base
Known Subclasses:
css.cssrule.CSSRule, css.cssstyledeclaration.CSSStyleDeclaration, stylesheets.stylesheet.StyleSheet, css.cssvalue.CSSValue, stylesheets.medialist.MediaList, css.property._Property, css.selectorlist.SelectorList, css.selector.Selector

Base class for most CSS and StyleSheets classes

contains helper objects
and functions

for inheriting classes helping parsing



Nested Classes [hide private]
  _ttypes
constants for Tokenizer and Parser to use values are just identifiers!
Instance Methods [hide private]
 
_checkReadonly(self)
raises xml.dom.NoModificationAllowedErr if rule/...
source code
 
_tokenize(self, textortokens, _fullSheet=False)
returns tokens of textortokens which may already be tokens in which case simply returns input
source code
 
_tokensupto(self, tokens, blockstartonly=False, blockendonly=False, propertynameendonly=False, propertyvalueendonly=False, propertypriorityendonly=False, selectorattendonly=False, funcendonly=False)
returns tokens upto end of atrule and end index end is defined by parameters, might be ; } ) or other
source code
 
_valuestr(self, t)
returns string value of t (t may be string of tokenlist)
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods [hide private]
 
_normalize(x)
normalizes x namely replaces any with the empty string so for x=="color" return "color"
source code
Class Variables [hide private]
  __tokenizer = Tokenizer()
  _log = errorhandler.ErrorHandler()
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_normalize(x)
Static Method

source code 

normalizes x namely replaces any with the empty string so for x=="color" return "color"

used in Token for normalized value and CSSStyleDeclaration currently

_checkReadonly(self)

source code 
raises xml.dom.NoModificationAllowedErr if rule/... is readonly

_tokensupto(self, tokens, blockstartonly=False, blockendonly=False, propertynameendonly=False, propertyvalueendonly=False, propertypriorityendonly=False, selectorattendonly=False, funcendonly=False)

source code 

returns tokens upto end of atrule and end index end is defined by parameters, might be ; } ) or other

default looks for ending "}" and ";"