Trees | Indices | Help |
|
---|
|
object --+ | CodeTemplateMngr
Manager of code templates.
Provide all functionalities with templates.
|
|||
|
|||
|
|||
|
|||
str or list[(name, value)] |
|
||
None |
|
||
list |
|
||
tuple |
|
||
list |
|
||
str |
|
||
str |
|
||
boolean. |
|
||
string |
|
||
Inherited from |
|
|||
list |
Errors List of errors string (copy, not original). |
||
string = ''
|
__srcfile Edited source file, from which called templates. |
||
SafeConfigParser |
__configSafeConfigParser instance.
|
||
list = []
|
__mdls Loaded module's names. |
||
dict = {}
|
__kwds Keywords functions readed from files: {"FullMame=???_*",Code_object}. |
||
dict = {}
|
__tpls Other templates. |
||
dict = {}
|
__tplsmeta Templates meta (all for keywords and other). |
||
list = []
|
__errs Errors list. |
||
list = []
|
__types Available types for templates. |
||
list[str] paths to folders with templates. |
__path List paths to templates. |
||
bool = True |
__usedefault If true then load global and user config files and if allow use global templates. |
||
list |
__metanames Names for available fields of metainformation (must present). |
||
list |
__metare Regular exspression for metainformation fields (must present). |
|
|||
Types List of available templates types (copy, not original). |
|||
MetaNames List of available metanames (copy, not original). |
|||
SourceFile Source file which editing in the editor. |
|||
Inherited from |
|
Warning:
Into initialization folder must be placed configuration file
|
Return preferences from configuration files. You may get option value or section items:
|
Re/Load template and config modules. Clear previous loaded modules and reload all noe finded. All loaded template modules into __mdls, naming is as "_codetpl_???_*". Walk throw all loaded modules and fill __kwds and __tpls dictionaries.
|
Get list of available templates given type.
|
Get metainformation for requested template. Iftype or name is absant then return
('',{})
Warning: Returned value is not copy, it saved object. If you change it you change metainformation. |
type for given
metaname .
|
Parse template used given fields or return preview.
fields then for all finded
keywords will be assigned it's name. It's used for preview template. For
real parse you may set into fields neded values.
|
tpl . Change all fields
rounded borders brd to value of fields . If
fields not find then try search into kwds . If not find then
use fields key as value.
|
Test - has such type or not. It's more perfomance then use type are case insensetive (converts to lower).
|
|
|
ErrorsList of errors string (copy, not original).
|
__tplsOther templates. {"FullMame=???_*" : func_object}
|
__tplsmetaTemplates meta (all for keywords and other). { "FullMame=???_*" : {"metaname" : "metavalue"} }
|
__errsErrors list. You must clear it's self. Auto clear then Reload() calls.
|
__usedefaultIf true then load global and user config files and if allow use global templates. Otherwise use only path fromspath .
|
|
TypesList of available templates types (copy, not original). Type - list.
|
MetaNamesList of available metanames (copy, not original). Type - list.
|
SourceFileSource file which editing in the editor. Type - str =''
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Mon Dec 1 23:43:15 2008 | http://epydoc.sourceforge.net |