Commit graph

50 commits

Author SHA1 Message Date
Manas Solanki
3c7683e6a1 option to logout from all devices while changing password (#4419) 2017-11-10 12:11:22 +05:30
Achilles Rasquinha
b8825ca116 Pure Python MySQL instead mysqlclient (with Python C API) (#4280)
* added PyMYSQL instead mysqlclient-python

* added pymysql import

* fixed db module import

* foxed self._conn wrapper

* updated cursor migration

* removed existent converters

* some more fixes towards API port

* modified travis

* updated doctype and revereted yml

* modified travis

* refreshed logging

* raw fix

* moved from hard coded constants to declarable instances

* moved from hard coded constants to declarable instances

* refactoring and logging

* moved to global import declaration

* fixed codacy

* unfixed codacy

* minor fix

* binary_type has a single

* deprecated alternative

* merged with latest

* fixed merge conflicts

* using deprecated alternative

* raw fix

* stupid fix

* using StringTypes instead

* brutal hack

* log

* tundebazy to the rescue

* fixed content_hash error

* frappe/database.py

* frappe/database.py

* updated database.py

* updated requirements

* updated requirements

* fixed codacy

* fixed codacy

* moved from DatabaseOperationalError to pymysql.InternalError

* moved from DatabaseOperationalError to pymysql.InternalError

* fixed codacy

* empty commit

* fixed codacy

* fixed codacy
2017-11-06 16:42:01 +05:30
Rushabh Mehta
fbf8da1d37 [minor] compileall after migrate, might solve timeouts on VM (#4197) 2017-09-27 15:31:51 +05:30
Saurabh
54b6c2244d Merge branch 'master' into develop 2017-08-21 15:48:55 +05:30
Saurabh
087dd23e3b [hot][fix] add daily_emails key in clear-limits check 2017-08-21 15:32:02 +05:30
mbauskar
8e5becf32b Merge branch 'master' into develop 2017-08-17 11:00:37 +05:30
Makarand Bauskar
7bf6c19a31 [hotfix] daily_emails limit fixes (#3942) 2017-08-17 10:59:26 +05:30
mbauskar
bc603de8be resolved conflicts 2017-08-16 18:24:21 +05:30
Makarand Bauskar
91d87814ca [hotfix] add daily_emails limit to set-limit command (#3939) 2017-08-16 18:14:20 +05:30
Aditya Hase
6f7be63054 Encode 'site' before passing to hashlib.sha1 2017-08-10 22:35:11 +05:30
Aditya Hase
e6bd1e4995 Replaced all instances of 'unicode' with 'six.text_type' (#3825) 2017-08-02 16:57:39 +05:30
tundebabzy
702e52e665 Change raise syntax to python 3 compatible style (#3497)
* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement

* python 3 compatible raise statement
2017-06-19 09:07:19 +05:30
almeidapaulopt
374f85bfd6 several throw translations (#3441)
* several throw translations

* small fix

* codacy fixes

* fix import _

* Create file_list.js

* Create feedback.py
2017-06-13 14:32:47 +05:30
Rushabh Mehta
4203ebdfc7 [enhance] make bench commands extensible by apps (#3457) 2017-06-12 09:15:55 +05:30
tundebabzy
be7be766be Issue 3171 (#3178)
* adds new exception to be raised when any improper database configuration is detected

* changes behavior of `check_if_ready_for_barracuda` to raise ImproperDBConfigurationError instead of sys.exit`

* refactors `drop_site` to use a new exactly identical `_drop_site` function.

The reason for this is because the original `drop_site` function is decorated
and cannot be undecorated without nasty hacks. Breaking the function this way
allows me to make use of the `drop-site` logic easily.

* catches the ImproperDBConfigurationError raised from `check_if_ready_for_barracuda` function to drop all the artifacts of the failed new `Site`
2017-05-08 16:06:33 +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
tundebabzy
6f17070cdd Fix for #3136 (#3149)
* places `scheduled_backup()` in try statement to catch any occurrence of ProgrammingError(1146) as per #3136

* adds option `--force` to drop-site

* adds code that notifies the user of ProgrammingErrors and hints on next steps to take

* adds correct help text for --force option
2017-04-27 11:20:50 +05:30
mbauskar
b6ba17b33b [minor] fixes for unbound local variable issue 2017-02-23 12:30:31 +05:30
Saurabh
86ebaf22aa [fix] dissable additiona users by creation date 2016-12-21 12:34:28 +05:30
Nabin Hait
cd0f5e76c6 [fix] Set filter values as default only if no_copy is not marked (#2413) 2016-12-05 18:24:03 +05:30
Viet Pham
ee02258999 Ability to publish realtime event from bench (#2369) 2016-11-25 16:09:36 +05:30
Saurabh
68186a4943 [fix] check if user exists while setting last active date 2016-11-22 12:12:42 +05:30
Saurabh
6b3bf22462 [enhance] set last active time to user 2016-11-22 12:12:34 +05:30
Rushabh Mehta
bd36f63a7b [minor] supress duplicate icon error in setup wizard (#2327) 2016-11-16 11:19:36 +05:30
shreyas
5a7eb23190 [Fix] Prevent site creation failure in case installing.lock is not found 2016-09-29 12:06:42 +05:30
Rushabh Mehta
e8e9aef91b [fix] number of backups 2016-09-21 11:18:16 +05:30
shreyas
649696fb93 [Minor] Added '--admin-password' to by pass admin password prompt on reinstalling the site 2016-09-08 13:33:27 +05:30
shreyas
dac00c0fe6 [Fix] Added --yes or -y to bypass confirmation prompt to uninstall-app from site 2016-08-05 16:54:02 +05:30
Rushabh Mehta
803e5a3cd1 [minor] extend hash size to 16 chars for new databases 2016-08-04 12:45:36 +05:30
Rushabh Mehta
754e23e745 [feature] added a new database _frappe_help containing all help files 2016-08-03 18:00:45 +05:30
Rushabh Mehta
48000e6cc2 [fix] reinstall --yes to skip prompt 2016-07-24 13:29:08 +05:30
Anand Doshi
3ffea03e7e [fix] confirm reinstall 2016-07-23 15:55:46 +05:30
Anand Doshi
f00341c7ff Merge pull request #1879 from shreyasp/cmd/restore-site-files
[Minor] Fixed Restore files
2016-07-23 14:28:03 +05:30
Anand Doshi
3e274b9e01 Merge pull request #1887 from vjFaLk/disable-user
Added command to disable user
2016-07-21 17:32:38 +05:30
Valmik Jangla
0c17c5aff8 Added command to disable user 2016-07-20 17:53:51 +05:30
shreyas
a869831e51 [Minor] Fixed Restore files while restoring site 2016-07-19 13:05:02 +05:30
Valmik Jangla
0b4cbc6885 Added email group to limit commands 2016-07-18 23:47:13 -07:00
Valmik Jangla
532b0aaf0d Fix for new-site --install-app 2016-07-18 00:17:16 -07:00
Anand Doshi
b3546f1ebc [fix] show 'click here' in expiry message if upgrade_url is available 2016-07-14 17:43:52 +05:30
Rushabh Mehta
3e3e30cfa6 [cleanups] 2016-07-08 18:21:33 +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
Anand Doshi
820a1e01a6 [fix] added set-limits, changed clear-limit to clear-limits 2016-07-04 00:32:32 +05:30
Anand Doshi
26eafaec13 [fix] Prompt naming and add-system-manager --send-welcome-email 2016-06-27 17:09:41 +05:30
Anand Doshi
dab12e3342 [fix] limits and site info 2016-06-26 14:43:23 +05:30
Anand Doshi
a7ace6ae38 [fix] limits and site_info 2016-06-25 21:56:27 +05:30
Anand Doshi
3854bcad04 [fix] limits variables and how usage is stored within limits + additional fixes 2016-06-25 17:41:19 +05:30
Valmik Jangla
0687eb145d Added misc Frappe Subscription features 2016-06-22 12:37:33 +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
shreyas
9511e14353 Move Frappe subscription features to Frappe App as Limits 2016-06-10 16:34:53 +05:30
Anand Doshi
49de395407 [fix] split commands into multiple files 2016-05-18 17:14:06 +05:30