Commit graph

184 commits

Author SHA1 Message Date
Rushabh Mehta
0c19319788 [minor] correct flag setting 2017-06-22 18:21:48 +05:30
tundebabzy
bbde2ec4cf rewrite use of dict.iteritems (#3498)
* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility
2017-06-19 09:10:21 +05:30
Prateeksha Singh
d8fb2c2c0d [fix] Enqueue syncing global search (#3455)
* [fix] Enqueue syncing global search

* make passing flags optional

* Create global_search.py
2017-06-16 11:02:22 +05:30
rohitwaghchaure
59acca249a [fix] Email alert for value change not working for the allow on submit field (#3433) 2017-06-06 18:06:05 +05:30
Rushabh Mehta
0a5df4fb4d [debug] show where permission is failing (#3264)
* [debug] show where permission is failing

* [fix] document.py
2017-05-11 11:46:47 +05:30
tundebabzy
6fbe20caaa Except and raise statement python 3 compatible style (#3216)
* changes exception and raise statements to python 3 style

* changes except statement to python 3 style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* adds six.reraise to fix python 3 style raise statements with traceback

* fixes indentation
2017-05-11 10:51:59 +05:30
tundebabzy
7b41d7e5eb Python 3 compatible print statements (#3199)
* changes print statements in file to python 3 compatible style using `__future__`

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* changes deprecated md5 module to hashlib

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements
2017-05-01 12:34:29 +05:30
Rushabh Mehta
49517479cc [fix] update global search in the foreground process while migration, fixes frappe/erpnext#8233 2017-03-31 17:32:51 +05:30
Rushabh Mehta
2c8754a96e [fix] save un translated doctype names for desktop icons, fixes frappe/erpnext#8157 2017-03-31 17:18:17 +05:30
Nabin Hait
d836d1367f Fixed merge conflict 2017-03-15 11:26:55 +05:30
mbauskar
5cd886b8cf [hook] added before_change hook to trigger email_alerts before db_set 2017-03-10 09:51:01 +05:30
Rushabh Mehta
1e7229c45f [enhance] global search in website (#2810)
* [enhance] global search in website

* [fix] create table query

* [website] navbar search in header if set

* [minor] navbar_search in website settings
2017-03-07 16:37:50 +05:30
Rohit Waghchaure
8a2c83918b changed user_roles to roles 2017-03-06 14:42:13 +05:30
Rushabh Mehta
155cdff99b [fix] socket io limit doc_open and other minor fixes 2017-02-24 14:46:34 +05:30
Rushabh Mehta
86ceb21005 [feature] Global Search (again) (#2710)
* [start] global search frappe/erpnext#6674

* [fix] setup before running test

* [start] global search frappe/erpnext#6674

* Display result as rudimentary list, rebuild old doctypes

* Media view, child tables, delete document updates, searchable fields

* More results UI

* Code clean up

* remove msgprint from document.py to resolve merge conflict

* Modularization stage 1, get show more to work with it

* Dedicated modal Search bar works, some clean up needed

* Can't data-dismiss on links, Bootstrap issue, use hashchange

* Accomodate missing field content syndrome

* Search in boolean mode, make GS default in awesome bar, fix double modal bug and cleanup

* Add in Meta

* Add in customize form

* Modularise Global Search

* Search object

* Commonify Search UI: Stage I

* II: save list state, UI, default condensed view, refactor

* Fix SQL bug, Refactor awesome bar, Fix unicode bug, add nav results

* Refactor using separate search objects, some async issues

* Fix async flow

* Fix preceding more list bug

* UI additions

* another async fix, back link

* Help: Stage I

* Help: Stage II

* Background jobs, fix route options bug

* Fix GS syncing on install

* Add GS options in awesome bar: test

* Input now remembers search type state

* More UI updates

* Add description for GS results in awesome bar

* Fix help modal bug

* Fix: not commit during install

* Test cases, some fixes

* Update in_test flag in enqueue

* Disable GS sync when not install_db

* Add flag check

* Disable field in child tables

* Cleanups

* Create table fix

* Fix redis exception, remove commit enqueue, add gs in migrate

* Fix tests

* Single enqueue

* cleanups

* Fix tests

* Fix event test

* Fix duplication, search as first option

* Add show name in global search

* fix event tests and desk.less

* Fix communication.json

* [fixes] wip

* [fix] tests

* [minor] for tests

* [minor] for tests

* [minor] for tests

* [minor] for tests
2017-02-13 14:50:54 +05:30
Rushabh Mehta
d989a95472 [feature] document versioning #2469 (#2523)
* [feature] document versioning #2469

* [minor] remove on_update from WebsiteGenerator

* [fix] delete shares when deleting user

* [test] don't run delete in background if test

* [fix] test_db

* [added] Deleted Document

* [fix] added track_changes in all documents

* [fix] add to deleted only if exists

* [fix] in_install flag in deleted documents

* [minor] name will always be reset
2016-12-29 18:01:42 +05:30
Nabin Hait
a2215c7a9a [Fix]Attachment in Amended doc 2016-12-24 14:51:07 +05:30
Rushabh Mehta
225e4a172a [minor] removed linked_with caching - what a terrible idea!, fixes #4936 2016-12-16 14:51:40 +05:30
OluyomiKay
71c7e177b7 Carry over file attachments in amended doctypes (#2394)
* Carry over file attachments in amended doctypes

* Renamed function and code style
2016-12-05 14:18:38 +05:30
Nabin Hait
47ecf4c513 Merge branch 'master' into develop 2016-11-30 12:13:56 +05:30
Mohammed
61a3f3eda0 Delete rows that do not match the ones in the document without causing db deadlock 2016-11-29 18:11:21 +02:00
Makarand Bauskar
bf37e4a254 [minor] fixes for check_if_latest method (#2377) 2016-11-28 12:38:32 +05:30
Rushabh Mehta
4bd2285159 File Based Locking at Document Level (#2374)
* [redesign] improved locking in documents and redesigned recent documents

* [minor] patch to update doctype in existing documents
2016-11-25 16:14:00 +05:30
Rushabh Mehta
e4f279b580 [minor] [fix] extract images before sanitizing html for text editor (#2319) 2016-11-16 11:07:56 +05:30
Rushabh Mehta
c36055d29e [minor] added frappe.format and validate_payment in web_form.html 2016-10-18 21:52:17 +05:30
Rushabh Mehta
66b4c470e1 [fix] has_website_permissions 2016-10-12 10:26:20 +05:30
Rushabh Mehta
bae97cfed4 Email Alert on any controller method (#2157)
* [docs] typo

* [email alert] now on any standard controller method

* [minor] install customizations with intall;

* [test] [fix] and truncate subject in email;

* [fix] error log seen issue
2016-10-08 11:11:36 +05:30
Nabin Hait
c0d7b5b441 Fixed version conflict 2016-10-06 12:25:14 +05:30
Nabin Hait
9bf71bba3d Rollback if scheduled submit/cancel failed 2016-10-06 11:20:45 +05:30
Nabin Hait
c211ba6bce Fixed version conflict 2016-10-05 19:00:44 +05:30
Nabin Hait
2cf19b79ac Commit after locking and unlocking while queuing action 2016-10-05 18:57:44 +05:30
Nabin Hait
c54f4e8615 Fixed version conflict 2016-10-05 17:04:17 +05:30
Nabin Hait
d61123180c Add error traceback in comment if no message_log 2016-10-05 16:34:06 +05:30
Rushabh Mehta
541d8be95f [complete] auto email report 2016-09-14 12:00:52 +05:30
Rushabh Mehta
2488c13dbc [hot] fix permlevel 2016-08-08 16:53:28 +05:30
Rushabh Mehta
f134370f7d [hot] fix permlevel 2016-08-08 16:51:35 +05:30
Rushabh Mehta
171c69677f [fix] apply read permlevel before sending doc to desk. Fixes #1904 2016-08-08 14:07:38 +05:30
bcornwellmott
ea033f9dd5 Add return to the wrapper for save
Save mistakenly removed the return function when a wrapper was added for it. This has created downstream issues, including preventing PUT requests through the API.
2016-07-25 10:00:42 -07:00
Rushabh Mehta
7c870d6ba4 [fix] dont update modified timestamp if called from post save methods 2016-07-20 12:55:19 +05:30
Rushabh Mehta
22c3f7966d [enhance] run actions in background doc.queue_action("submit") 2016-07-19 17:12:37 +05:30
Anand Doshi
234e21feee [fix] touch locks/installing.lock during new-site, fixes in db_query and get_app_path 2016-07-06 18:06:50 +05:30
Rushabh Mehta
2babe422d7 [minor] __onload is frappe._dict 2016-07-05 15:19:49 +05:30
Anand Doshi
526e9ea2d7 [security] encrypt passwords that need to be retrievable, except User password which should be hashed 2016-06-13 17:18:59 +05:30
Anand Doshi
c8e0384ce1 [cleanup] document flow 2016-06-07 18:55:15 +05:30
Rushabh Mehta
faf45e4811 [fix] double child table bug and added beta in doctype 2016-05-02 18:43:32 +05:30
Rushabh Mehta
9c7d1f2ea8 [cleanups] 2016-04-18 19:26:45 +05:30
Rushabh Mehta
79203f3ab6 [api] added on_change event in document.py that will be called after any update event, including on_trash 2016-04-11 11:34:26 +05:30
Rushabh Mehta
9d8c2b5eff [enhancements] added frappe.utils.evalute_filter(doc, filter) and ability to hook multiple doc events at the same time 2016-04-08 17:07:31 +05:30
Rushabh Mehta
dacaa7ab0c [enhancement] portal settings for portal menu 2016-03-30 12:28:55 +05:30
Nabin Hait
b6af76234a [fix] Set docstatus before and after insert 2016-03-29 11:33:42 +05:30