- 02 May, 2017 40 commits
-
-
Jérome Perrin authored
Because CatalogTemplateItem uses a special preinstall method, their way of computing modified objet did not support template_keep_path_list. To support template_keep_path_list, we must give priority to ObjectTemplateItem.preinstall, because BaseTemplateItem.preinstall does not work with path.
-
Jérome Perrin authored
-
Gabriel Monnerat authored
Google Logins are created manually in the backend instead of automatically through Base_createOAuth2User
-
Gabriel Monnerat authored
erp5_oauth_google_login: Set access_type as offline to be possible refresh token in background and automatically access_type as offline indicates whether your application can refresh access tokens when the user is not present at the browser. This value instructs the Google authorization server to return a refresh token and an access token the first time that your application exchanges an authorization code for tokens state. Also the code was simplied to use oauth2client rather than http requests directly use persistent cache instead of ram cache to lose token if we restart all nodes
-
Jérome Perrin authored
-
Jérome Perrin authored
No need to use a opaque user id. If we use mail address, to enable google login for an existing user, we just have to "create google login with email address and validate google login".
-
Jérome Perrin authored
-
Jérome Perrin authored
A more apporpriate place would be a dedicated "signup using oauth" page, relying on erp5_credential for the actual user creation.
-
Jérome Perrin authored
-
Jérome Perrin authored
ERP5ExternalOauth2ExtractionPlugin: document a bit how this plugin and ERP5LoginUserManager interact
-
Gabriel Monnerat authored
-
Gabriel Monnerat authored
erp5_oauth_google_login: Zope user should not see this action because to create a Google login is required that a person in ERP5 exists
-
Gabriel Monnerat authored
We are expecting user_id instead of username
-
Gabriel Monnerat authored
erp5_oauth_google_login: s/erp5_username/user_id/g to be with consistent with Base_getUserValueByUserId
-
Gabriel Monnerat authored
ERP5ExternalOauth2ExtractionPlugin: Fix query to find logins properly. It should be squashed in 4089f516
-
Gabriel Monnerat authored
-
Gabriel Monnerat authored
login_form: Use ERP5Site_getAvailableOAuthLoginList to know if google login is supported or not. With this, we can extend to other oauth easily
-
Gabriel Monnerat authored
-
Gabriel Monnerat authored
erp5_credential: Add link to login in ERP5 with Google Account and use zocial.min.css to display it nicely
-
Gabriel Monnerat authored
erp5_xhtml_style: Add link to login in ERP5 with Google Account and use zocial.min.css to display it nicely Add margin-top to display zocial buttons not too close from other buttons or links
-
Gabriel Monnerat authored
-
Gabriel Monnerat authored
Google Login follow the same implementation of ERP5 Login(subobject of Person) and with an action in preferences, the user can add Google Login to his person.
-
Gabriel Monnerat authored
-
Gabriel Monnerat authored
-
Jérome Perrin authored
instead of implementing this logic in ZSQL's DTML
-
Jérome Perrin authored
cf 2c54e0f5
-
Jérome Perrin authored
Revert "erp5_calendar: Update stop_date, otherwise it can stay in the past and generate wrong duration (stop_date - start_date)" This reverts commit 6af8eca1f4d7fbdd29cd001b1c5a7d4d03b51990.
-
Jérome Perrin authored
-
Jérome Perrin authored
SimulationTool_zGetInterpolationMethod is called in restricted context of Resource_zGetMovementHistoryList so it needs to be usable by anonymous. ZSQL Method does not read parameters from REQUEST, so it looks safe.
-
Gabriel Monnerat authored
erp5_calendar: Update stop_date, otherwise it can stay in the past and generate wrong duration (stop_date - start_date)
-
Gabriel Monnerat authored
With this, we accept users with permission to Modify portal content or Associate role
-
Gabriel Monnerat authored
-
Gabriel Monnerat authored
-
Gabriel Monnerat authored
With this, change we accept users with permission to Modify portal content or Associate role
-
Jérome Perrin authored
jerome/erp5!6 rebased and in a big commit so that we can start using that SimulationTool: implement "linear" flow API Conflicts: product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Resource_zGetInventoryList.xml testInventoryAPI: silent pyflakes warnings more interpolation implementation inventory_list interpolation flow: support at_date & to_date more and more interpolation API interpolation interpolation group_by_time_sequence_list testInventoryAPI: move inventory valuation methods in a dedicated test class This should not be in test inventory list. test: move Tracking API to a dedicated test module inventory api: dirty way of disabling cache if keys such as node_category are used. interpolation: security on SimulationTool_zGetInterpolationMethod
-
Jérome Perrin authored
We should be able to configure a group calendar saying that the pattern is "from 9:00 to 12:00, repeat every monday morning" with a group calendar assignment saying "use this pattern from 01/01/2016 until 31/12/2016" and then create another group calendar assignment for 2017 without having to change the periodicity stop date on all presence periods of the group calendar. I think it should repeat from group calendar assignment's start date until min(group calendar assignment's stop date, presence period's periodicity stop date). (cherry picked from commit b42a9c112d59454a42c0b5a0fd62d71a7fcd4202)
-
Jérome Perrin authored
- update PresencePeriod.getNextPeriodicalDate with fixes from 6155f7ff - do not use addToDate, but simply DateTime arithmetics that unlike addToDate, works correctly (cherry picked from commit 30e2c1f6cb55ae3dfc4d8c83911b53f38a6cc36d)
-
Jérome Perrin authored
-
Jérome Perrin authored
because Domain.getRelativeUrl (and Category.getRelativeUrl) cannot be restrictedTraverse'd
-
Jérome Perrin authored
Workaround for bug #20160120-1805D22
-