2018-01-08 12:30:14 +00:00
|
|
|
const utils = require('../utils');
|
|
|
|
const model = require('../model');
|
2018-01-24 11:52:05 +00:00
|
|
|
const BaseDocument = require('../model/document');
|
|
|
|
const BaseMeta = require('../model/meta');
|
2018-01-08 12:30:14 +00:00
|
|
|
const _session = require('../session');
|
2018-01-15 11:55:31 +00:00
|
|
|
const errors = require('./errors');
|
2018-01-08 12:30:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
2018-01-12 12:25:07 +00:00
|
|
|
init_libs(frappe) {
|
|
|
|
Object.assign(frappe, utils);
|
|
|
|
frappe.model = model;
|
2018-01-24 11:52:05 +00:00
|
|
|
frappe.BaseDocument = BaseDocument;
|
|
|
|
frappe.BaseMeta = BaseMeta;
|
2018-01-12 12:25:07 +00:00
|
|
|
frappe._session = _session;
|
2018-01-15 11:55:31 +00:00
|
|
|
frappe.errors = errors;
|
2018-01-12 12:25:07 +00:00
|
|
|
}
|
2018-01-08 12:30:14 +00:00
|
|
|
}
|