Documentation ¶
Index ¶
- Constants
- Variables
- func AddUniqueEntry(array []string, value string) []string
- func BSl(n interface{}) []byte
- func BestString(a, b string) string
- func BuildFieldFuncMap() map[string][]func(map[string]interface{}) []byte
- func CamelCase(words []string) string
- func CheckRequestedHelp()
- func CleanName(str string) string
- func Comment(text [][]byte) [][]byte
- func ConvertFieldType(input string) string
- func CreateDir(path string)
- func CreateGoModFile()
- func CreateHexyaFile()
- func CreateToml()
- func CsvWriteCsv(data CsvData, fileConsideration string)
- func FatalError(str string, args ...interface{})
- func FtExit()
- func GenerateTranslatedModule()
- func GetAlias(str string) string
- func GetAllFiles(iPath string) *list.List
- func GetClassParam(classNode map[string]interface{}) string
- func GetControllerAssetsList() string
- func GetDomainOperators() map[string]string
- func GetEntryTypeTranslator() map[string]string
- func GetFullNameImported(str string) string
- func GetHexyaFileBase() string
- func GetHexyaModuleList() string
- func GetKnownMethodNames() []string
- func GetModelName(b interface{}) string
- func GetRawFileContent(output *list.List, filepath string)
- func GetRawLinePart(l interface{}) []byte
- func GetRawText(l interface{}) [][]byte
- func GetReservedKeywordArray() []string
- func GetTemplateIdTranslator() map[string]string
- func GetTomlFileBase() string
- func GetTomlModuleList() string
- func Init(input m.TranslatorSet)
- func InitCsvDataFile(path string, heads []string) (*list.List, []string)
- func InitFuncMap()
- func InitSecurityGoFile(path string)
- func InitSignal()
- func IsNil(c interface{}) bool
- func IsNotInStringArray(val string, array []string) bool
- func IsOdooVar(node map[string]interface{}) bool
- func MakeUnique(str string, bank string) string
- func MethodIsExtension(name string) bool
- func NoTranslation(path string)
- func Node(n interface{}) map[string]interface{}
- func PostTranslate()
- func PrintNodeOutput(node map[string]interface{}) []byte
- func PrintVersion()
- func ReadEntry(entry GenericEntry, templateId string)
- func ReadInit()
- func ReadInitFile(path string)
- func ReadManifest()
- func ReadManifestEntry(key, val string)
- func ReadManifestEntryList(input string) []string
- func ReadTemplates(templates []OdooTemplate)
- func RegisterAsset(entry GenericEntry, Id string)
- func RegisterLessHelper(entry GenericEntry)
- func RemoveExtraneousSpaces(str string) string
- func ReplaceRegex(str string, regex string, repl string) string
- func RunTranslatedModule()
- func Sl(n interface{}) []interface{}
- func SnakeToCamel(str string, firstUpper bool) string
- func SplitSubN(s string, n int) []string
- func StartTranslator()
- func StartXmltoCsv(file io.Reader, filePath string)
- func StartXmltoSecurity(file io.Reader, filePath string)
- func StartXmltoXml(file io.Reader, filePath string)
- func Str(n interface{}) string
- func TranslateCSV(file string)
- func TranslateCSVSecurity(path string)
- func TranslateDataDemoFile(file string)
- func TranslatePy2(filePath string)
- func TranslateXML(filePath string)
- func Translator()
- func WriteFile(path string, content *list.List)
- func WriteGoSecurityLine(path string, output *list.List)
- func WriteHeadCsv(heads []string) *list.List
- func WriteHexyaData(genRecords []GenericRecord) []byte
- func WriteHexyaXML(path string, genRecords []GenericRecord)
- func WriteInitFiles()
- func WriteRawOutputFile(filePath string, content *list.List)
- func WriteSecurityData(filePath string, odoo SecuOdoo)
- func XMLPostTranslate(input []byte, data []int) []byte
- type ApiData
- type ArgTraductorEntry
- type ClassData
- type ComplexReplacementRegex
- type CsvData
- type CsvValue
- type FieldData
- type FileData
- type GenArgs
- type GenericEntry
- type GenericRecord
- type HexyaData
- type HexyaHexyaXml
- type HexyaRecord
- type Manifest
- type MethodData
- type MethodInfoData
- type OdooData
- type OdooField
- type OdooLinkEntry
- type OdooOdoo
- type OdooRecord
- type OdooScriptEntry
- type OdooTemplate
- type OdooXpath
- type SecuData
- type SecuField
- type SecuOdoo
- type SecuRecord
- type SecurityEntry
- type XmlDataData
- type XmlDataField
- type XmlDataOdoo
- type XmlDataRecord
Constants ¶
View Source
const ( RECTYPEVIEW int = iota RECTYPEACTION RECTYPEMENU )
Variables ¶
Functions ¶
func AddUniqueEntry ¶
func BestString ¶
func BuildFieldFuncMap ¶
func CheckRequestedHelp ¶
func CheckRequestedHelp()
func ConvertFieldType ¶
func CreateGoModFile ¶
func CreateGoModFile()
func CreateHexyaFile ¶
func CreateHexyaFile()
func CreateToml ¶
func CreateToml()
func CsvWriteCsv ¶
func FatalError ¶
func FatalError(str string, args ...interface{})
func GenerateTranslatedModule ¶
func GenerateTranslatedModule()
func GetAllFiles ¶
func GetClassParam ¶
func GetControllerAssetsList ¶
func GetControllerAssetsList() string
func GetDomainOperators ¶
func GetEntryTypeTranslator ¶
func GetFullNameImported ¶
func GetHexyaFileBase ¶
func GetHexyaFileBase() string
func GetHexyaModuleList ¶
func GetHexyaModuleList() string
func GetKnownMethodNames ¶
func GetKnownMethodNames() []string
func GetModelName ¶
func GetModelName(b interface{}) string
func GetRawFileContent ¶
func GetRawLinePart ¶
func GetRawLinePart(l interface{}) []byte
func GetRawText ¶
func GetRawText(l interface{}) [][]byte
func GetReservedKeywordArray ¶
func GetReservedKeywordArray() []string
func GetTemplateIdTranslator ¶
func GetTomlFileBase ¶
func GetTomlFileBase() string
func GetTomlModuleList ¶
func GetTomlModuleList() string
func Init ¶
func Init(input m.TranslatorSet)
func InitFuncMap ¶
func InitFuncMap()
func InitSecurityGoFile ¶
func InitSecurityGoFile(path string)
func InitSignal ¶
func InitSignal()
func IsNotInStringArray ¶
func MakeUnique ¶
func MethodIsExtension ¶
func NoTranslation ¶
func NoTranslation(path string)
func PostTranslate ¶
func PostTranslate()
func PrintNodeOutput ¶
func PrintVersion ¶
func PrintVersion()
func ReadEntry ¶
func ReadEntry(entry GenericEntry, templateId string)
func ReadInitFile ¶
func ReadInitFile(path string)
func ReadManifest ¶
func ReadManifest()
func ReadManifestEntry ¶
func ReadManifestEntry(key, val string)
func ReadManifestEntryList ¶
func ReadTemplates ¶
func ReadTemplates(templates []OdooTemplate)
func RegisterAsset ¶
func RegisterAsset(entry GenericEntry, Id string)
func RegisterLessHelper ¶
func RegisterLessHelper(entry GenericEntry)
func RemoveExtraneousSpaces ¶
func RunTranslatedModule ¶
func RunTranslatedModule()
func SnakeToCamel ¶
func StartTranslator ¶
func StartTranslator()
func StartXmltoCsv ¶
func StartXmltoSecurity ¶
func StartXmltoXml ¶
func TranslateCSV ¶
func TranslateCSV(file string)
func TranslateCSVSecurity ¶
func TranslateCSVSecurity(path string)
func TranslateDataDemoFile ¶
func TranslateDataDemoFile(file string)
func TranslatePy2 ¶
func TranslatePy2(filePath string)
func TranslateXML ¶
func TranslateXML(filePath string)
func Translator ¶
func Translator()
func WriteGoSecurityLine ¶
func WriteHeadCsv ¶
func WriteHexyaData ¶
func WriteHexyaData(genRecords []GenericRecord) []byte
func WriteHexyaXML ¶
func WriteHexyaXML(path string, genRecords []GenericRecord)
func WriteInitFiles ¶
func WriteInitFiles()
func WriteRawOutputFile ¶
func WriteSecurityData ¶
func XMLPostTranslate ¶
Types ¶
type ArgTraductorEntry ¶
type ArgTraductorEntry struct {
// contains filtered or unexported fields
}
type ComplexReplacementRegex ¶
type ComplexReplacementRegex struct {
// contains filtered or unexported fields
}
type CsvData ¶
type CsvData struct { Models []string ModelEntryCount map[string]int ModelHeads map[string][]string ModelContent map[string][]CsvValue }
func CsvDecodeXml ¶
func CsvDecodeXml(odoo XmlDataOdoo) CsvData
func CsvReadXml ¶
type FileData ¶
type FileData struct { Imports []string Raw []string Classes []ClassData Methods []MethodData }
type GenArgs ¶
type GenArgs struct { RecordSet m.TranslatorSet FilesData []string FilesDemo []string FilesPython []string FilesPo []string ControllerAssets map[string][]string ComputeMethodNames []string // contains filtered or unexported fields }
func NewGenArgs ¶
func NewGenArgs() GenArgs
func ReadArgs ¶
func ReadArgs(rs m.TranslatorSet) GenArgs
func (GenArgs) GetArgTraductor ¶
func (g GenArgs) GetArgTraductor() []ArgTraductorEntry
func (GenArgs) GetLoggerLevelTraductor ¶
func (g GenArgs) GetLoggerLevelTraductor() []ArgTraductorEntry
func (GenArgs) TraductArg ¶
func (g GenArgs) TraductArg(arg string, argTraductor []ArgTraductorEntry) string
func (GenArgs) TraductLoggerLevel ¶
func (g GenArgs) TraductLoggerLevel(arg string, logleveltraductor []ArgTraductorEntry) string
type GenericEntry ¶
func LinkToGeneric ¶
func LinkToGeneric(entry OdooLinkEntry) GenericEntry
func ScriptToGeneric ¶
func ScriptToGeneric(entry OdooScriptEntry) GenericEntry
type GenericRecord ¶
type GenericRecord struct { Type string ID string Name string Model string ViewMode string ViewId string Data string }
func ReadOdooRecord ¶
func ReadOdooRecord(rec OdooRecord) GenericRecord
type HexyaData ¶
type HexyaData struct {
Records []HexyaRecord `xml:"HEXYA_HEXYA_TMP_RECORD"`
}
type HexyaHexyaXml ¶
type HexyaHexyaXml struct {
Data HexyaData `xml:"data"`
}
type HexyaRecord ¶
type HexyaRecord struct { Id string `xml:"id,attr"` Type string `xml:"type,attr"` Name string `xml:"name,attr"` Model string `xml:"model,attr"` ViewMode string `xml:"view_mode,attr"` ViewId string `xml:"view_id,attr"` InnerXML string `xml:",innerxml"` }
func WriteHexyaRecord ¶
func WriteHexyaRecord(inrec GenericRecord) (HexyaRecord, int)
type Manifest ¶
func GetDefaultManifest ¶
func GetDefaultManifest() Manifest
type MethodData ¶
type MethodData struct { Info MethodInfoData Apis []ApiData MethodName string MethodArgs string Methods []MethodData Raw []string }
type MethodInfoData ¶
type OdooData ¶
type OdooData struct { XMLNAME xml.Name `xml:"data"` Template []OdooTemplate `xml:"template"` Record []OdooRecord `xml:"record"` }
type OdooLinkEntry ¶
type OdooOdoo ¶
type OdooOdoo struct { XMLNAME xml.Name `xml:"odoo"` Record []OdooRecord `xml:"record"` Data []OdooData `xml:"data"` Template []OdooTemplate `xml:"template"` }
type OdooRecord ¶
type OdooScriptEntry ¶
type OdooTemplate ¶
type OdooTemplate struct { XMLNAME xml.Name `xml:"template"` Id string `xml:"id,attr"` Name string `xml:"name,attr"` InheritId string `xml:"inherit_id,attr"` Script []OdooScriptEntry `xml:"script"` Link []OdooLinkEntry `xml:"link"` Xpath []OdooXpath `xml:"xpath"` }
type OdooXpath ¶
type OdooXpath struct { XMLNAME xml.Name `xml:"xpath"` Expr string `xml:"expr,attr"` Position string `xml:"position,attr"` Script []OdooScriptEntry `xml:"script"` Link []OdooLinkEntry `xml:"link"` }
type SecuData ¶
type SecuData struct { XMLNAME xml.Name `xml:"data"` Record []SecuRecord `xml:"record"` }
type SecuRecord ¶
type SecurityEntry ¶
type XmlDataData ¶
type XmlDataData struct { XMLNAME xml.Name `xml:"data"` Record []XmlDataRecord `xml:"record"` }
type XmlDataField ¶
type XmlDataField struct { XMLNAME xml.Name `xml:"field"` InnerXML string `xml:",innerxml"` Name string `xml:"name,attr"` Ref string `xml:"ref,attr"` }
func ToXmlField ¶
func ToXmlField(input []OdooField) []XmlDataField
type XmlDataOdoo ¶
type XmlDataOdoo struct { XMLNAME xml.Name `xml:"odoo"` Data []XmlDataData `xml:"data"` }
type XmlDataRecord ¶
type XmlDataRecord struct { XMLNAME xml.Name `xml:"record"` Field []XmlDataField `xml:"field"` Id string `xml:"id,attr"` Model string `xml:"model,attr"` }
func ToXmlRecord ¶
func ToXmlRecord(input []OdooRecord) []XmlDataRecord
Click to show internal directories.
Click to hide internal directories.