webdata

package
v0.0.0-...-5e0bae8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2017 License: GPL-3.0, LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckAccessRightsArgs

type CheckAccessRightsArgs struct {
	Operation      string `json:"operation"`
	RaiseException bool   `json:"raise_exception"`
}

CheckAccessRightsArgs is the args struct for the CheckAccessRights method

type FieldsViewData

type FieldsViewData struct {
	Name        string                       `json:"name"`
	Arch        string                       `json:"arch"`
	ViewID      string                       `json:"view_id"`
	Model       string                       `json:"model"`
	Type        views.ViewType               `json:"type"`
	Fields      map[string]*models.FieldInfo `json:"fields"`
	Toolbar     Toolbar                      `json:"toolbar"`
	FieldParent string                       `json:"field_parent"`
}

FieldsViewData is the return type string for the FieldsViewGet function

type FieldsViewGetParams

type FieldsViewGetParams struct {
	ViewID   string `json:"view_id"`
	ViewType string `json:"view_type"`
	Toolbar  bool   `json:"toolbar"`
}

FieldsViewGetParams is the args struct for the FieldsViewGet function

type LoadViewsArgs

type LoadViewsArgs struct {
	Views   []views.ViewTuple `json:"views"`
	Options LoadViewsOptions  `json:"options"`
}

LoadViewsArgs is the argument struct for the LoadViews method.

type LoadViewsData

type LoadViewsData struct {
	FieldsViews map[views.ViewType]*FieldsViewData `json:"fields_views"`
	Filters     []models.FieldMap                  `json:"filters"`
	Fields      map[string]*models.FieldInfo       `json:"fields"`
}

LoadViewsData is the result struct of the LoadViews method

type LoadViewsOptions

type LoadViewsOptions struct {
	Toolbar     bool   `json:"toolbar"`
	LoadFilters bool   `json:"load_filters"`
	ActionID    string `json:"action_id"`
	LoadFields  bool   `json:"load_fields"`
}

LoadViewsOptions are options that can be passed to LoadViews method

type NameSearchParams

type NameSearchParams struct {
	Args     domains.Domain    `json:"args"`
	Name     string            `json:"name"`
	Operator operator.Operator `json:"operator"`
	Limit    interface{}       `json:"limit"`
}

NameSearchParams is the args struct for the NameSearch function

type ReadGroupParams

type ReadGroupParams struct {
	//domain, fields, groupby, offset=0, limit=None, context=None, orderby=False, lazy=True
	Domain  domains.Domain `json:"domain"`
	Fields  []string       `json:"fields"`
	GroupBy []string       `json:"groupby"`
	Offset  int            `json:"offset"`
	Limit   interface{}    `json:"limit"`
	Order   string         `json:"orderby"`
	Lazy    bool           `json:"lazy"`
}

ReadGroupParams is the args struct for the ReadGroup method

type RecordIDWithName

type RecordIDWithName struct {
	ID   int64
	Name string
}

RecordIDWithName is a tuple with an ID and the display name of a record

func (RecordIDWithName) MarshalJSON

func (rf RecordIDWithName) MarshalJSON() ([]byte, error)

MarshalJSON for RecordIDWithName type

func (*RecordIDWithName) UnmarshalJSON

func (rf *RecordIDWithName) UnmarshalJSON(data []byte) error

UnmarshalJSON for RecordIDWithName type

type SearchParams

type SearchParams struct {
	Domain domains.Domain `json:"domain"`
	Fields []string       `json:"fields"`
	Offset int            `json:"offset"`
	Limit  interface{}    `json:"limit"`
	Order  string         `json:"order"`
}

SearchParams is the args struct for the SearchRead method

type SearchReadResult

type SearchReadResult struct {
	Records []models.FieldMap `json:"records"`
	Length  int               `json:"length"`
}

SearchReadResult is the result struct for the searchRead function.

type SubViewData

type SubViewData struct {
	Arch   string                       `json:"arch"`
	Fields map[string]*models.FieldInfo `json:"fields"`
}

SubViewData is the type expected for Views in FieldsViewData

type Toolbar

type Toolbar struct {
	Print  []*actions.Action `json:"print"`
	Action []*actions.Action `json:"action"`
	Relate []*actions.Action `json:"relate"`
}

A Toolbar holds the actions in the toolbar of the action manager

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL