<s> from xierpa3 . builders . cssbuilder import CssBuilder <EOL> from xierpa3 . builders . htmlbuilder import HtmlBuilder <EOL> class XXXKirbyBuilder ( HtmlBuilder ) : <EOL> PATH_ROOT = '<STR_LIT>' <EOL> DIRECTORIES = ( <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> ) <EOL> def theme ( self , component ) : <EOL> pass <EOL> def _theme ( self , component ) : <EOL> pass <EOL> def page ( self , component ) : <EOL> self . clear ( ) <EOL> def _page ( self , component ) : <EOL> pass <EOL> def getRootPath ( self ) : <EOL> return self . PATH_ROOT <EOL> def setRootPath ( self , path ) : <EOL> self . PATH_ROOT = path <EOL> def getStylePath ( self , component ) : <EOL> u"""<STR_LIT>""" <EOL> return '<STR_LIT>' <EOL> def getTemplatePath ( self , component ) : <EOL> u"""<STR_LIT>""" <EOL> return '<STR_LIT>' % component . name <EOL> def XXXgetCmsPath ( self ) : <EOL> return self . getRootPath ( ) + '<STR_LIT>' <EOL> def save ( self , theme , path = None , makeDirectory = True ) : <EOL> u"""<STR_LIT>""" <EOL> if path is None : <EOL> path = self . getRootPath ( ) + theme . root . name . lower ( ) + '<STR_LIT:/>' <EOL> self . makeDirectory ( path ) <EOL> for directory in self . DIRECTORIES : <EOL> self . makeDirectory ( path + directory ) <EOL> builder = CssBuilder ( ) <EOL> builder . save ( theme , path + self . getStylePath ( theme ) ) <EOL> builder = HtmlBuilder ( ) <EOL> builder . save ( theme , path + self . getTemplatePath ( theme ) ) <EOL> def snippet ( self , component , name ) : <EOL> u"""<STR_LIT>""" <EOL> self . tabs ( ) <EOL> self . text ( self . adapter . getSnippet ( name ) ) <EOL> self . pushResult ( name = name ) <EOL> def _snippet ( self , component ) : <EOL> u"""<STR_LIT>""" <EOL> name , block = self . popNameResult ( ) <EOL> print name , block </s>
