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