- 13 Nov, 2019 1 commit
-
-
Gabriel Monnerat authored
For now, this is chrome only erp5_document_scanner: Add dialog to upload images erp5_document_scanner: Add script to upload erp5_document_scanner: Improve CSS erp5_document_scanner: Improve gadget erp5_document_scanner: store informations used by user to cropper in browser erp5_document_scanner: Fix css to mobile browsers erp5_document_scanner: display alert just to debug easily in mobile erp5_document_scanner: use .push instead of .then, in order to handle promise cancellation erp5_document_scanner: make jslint happy erp5_document_scanner: stop using addEventListener and alert Use onEvent instead of addEventListener erp5_document_scanner: use onEvent instead of addEventListener to crop image erp5_document_scanner: use onEvent instead of addEventListener erp5_document_scanner: Use promises properly in order to handle promise cancellation erp5_document_scanner: Improve gadget to store images captured in Active Process erp5_document_scanner: Simplify code erp5_document_scanner: improve code to get images from Active Process erp5_document_scanner: refactor code to reuse Base_contribute and create PDF with all images in background after submit erp5_document_scanner: Remove Active Process after create the PDF erp5_document_scanner: Clean up erp5_document_scanner: avoid propagate your_document_scanner_gadget to activity erp5_document_scanner: Display video again after capture image erp5_ingestion: Allow pass extra properties to create document using portal_contributions erp5_document_scanner: Avoid to create empty Active Process erp5_document_scanner: Typo erp5_document_scanner: Improve titles erp5_document_scanner: Set context as follow up erp5_document_scanner: move field to hidden section fixup! erp5_document_scanner: move field to hidden section erp5_document_scanner: Remove jiodev.js erp5_document_scanner: Fix CSS erp5_document_scanner: Clean up erp5_document_scanner: Clean up javascript to store cropper settings in preference instead of jIO erp5_document_scanner: Add Property sheet to store cropped canvas settings erp5_document_scanner: Add label erp5_document_scanner: Improve code in order to cancel video streaming erp5_document_scanner: Split dialog in two steps erp5_document_scanner: minor changes erp5_document_scanner: Clear photo to avoid pass it to the next step erp5_document_scanner: clean up code and add reset button erp5_document_scanner: Add action to scan document erp5_document_scanner: Check properly if there is an image to store in Active Process erp5_document_scanner: Improve labels erp5_document_scanner: Improve user experience on prototype erp5_document_scanner: don't force width & weight to cropped images erp5_document_scanner: Improve stream manipulation erp5_document_scanner: Improve navigation Block user to reach step 2 without any image captured erp5_document_scanner: Merge dialogs to have only one page erp5_document_scanner: Add new field to selection publication section and remove select because we will select camera automatically erp5_document_scanner: clean up erp5_document_scanner: Fix code that tries to stop stream twice erp5_document_scanner: Clean up erp5_document_scanner: improve UI erp5_document_scanner: Improve gadget following the design defined by Thierry erp5_document_scanner: Typo erp5_document_scanner: Small fix to render stream on mobile erp5_document_scanner: Improve code erp5_document_scanner: Fix code erp5_document_scanner: set different color to disabled buttons erp5_document_scanner: Fix code to make buttons enabled only stream is ready erp5_document_scanner: remove hack used only to debug erp5_document_scanner: Add missing dependency erp5_document_scanner: Translate messages erp5_document_scanner: Add scan_document action to all accounting transaction types erp5_document_scanner: Set http_cache erp5_document_scanner: We need to create active process manager Normal users can not call it directly erp5_document_scanner: get active_process in a single script erp5_document_scanner: Avoid customization in Base_contribute erp5_document_scanner: remove the state published Users can make mistakes and publish the document to everyone erp5_document_scanner: Typo erp5_document_scanner: Use proxy role as manager where is required erp5_document_scanner: translate publication states erp5_ingestion: Remove hack from Base_contribute
-
- 12 Nov, 2019 3 commits
-
-
Jérome Perrin authored
from a41f71c3 : > Remove the TALES for lines, columns and tab on the matrix box because > the default behavior is to call this updateCellRange script that's not true, we have to list the asCellRange script explicitly.
-
Arnaud Fontaine authored
ZODB Components: ModuleSecurityInfo() should also apply to the alias module, not only to the versioned one. This fixes an Unauthorized error when GitLoginError is imported from erp5.component.module.Git defining ModuleSecurityInfo() for __name__ (erp5.component.module.erp5_version.Git). Note that when migrating the content of a Product, ModuleSecurityInfo() first parameter must be __name__. Traceback (innermost last): [...] Module script, line 1, in BusinessTemplate_handleException - <PythonScript at /erp5/BusinessTemplate_handleException used for /erp5/portal_templates/832> - Line 1 from erp5.component.module.Git import GitLoginError Module Products.ERP5Type.patches.Restricted, line 305, in guarded_import return orig_guarded_import(mname, globals, locals, fromlist, level) Module AccessControl.ZopeGuards, line 305, in guarded_import raise Unauthorized("import of '%s' is unauthorized" % mname) Unauthorized: import of 'erp5.component.module.Git' is unauthorized
-
Arnaud Fontaine authored
ZODB Components: Alias module was not added to sys.modules if the module it points to had already been loaded before.
-
- 11 Nov, 2019 1 commit
-
-
Roque authored
- revert parallel gadget loading - minor refactoring on appcache storage creation
-
- 08 Nov, 2019 6 commits
-
-
Roque authored
-
Roque authored
-
Roque authored
-
Roque authored
-
Roque authored
- new skin folder with project quick view form, scripts and gadgets - front page redirects to custom project module
-
Jérome Perrin authored
with namedtuples and unicode literals enabled, our patch break with: Module py2stdlib, line 266, in infer_named_tuple ''' % {'name': name, 'fields': attributes}) Module Products.ERP5Type.patches.pylint, line 74, in string_build encoding = _guess_encoding(data) Module astroid.builder, line 65, in _guess_encoding if string.startswith('\xef\xbb\xbf'): UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128) because pylint/astroid uses string_build to evaluate the named tuple and the source code enabled unicode_literals future, string_build is called with an unicode object. -> for inferred in node.func.infer(): astroid-1.3.8-py2.7.egg/astroid/bases.py(391)infer() -> return self._explicit_inference(self, context, **kwargs) astroid-1.3.8-py2.7.egg/astroid/brain/py2stdlib.py(266)infer_named_tuple() -> ''' % {'name': name, 'fields': attributes}) > erp5/product/ERP5Type/patches/pylint.py(77)string_build() -> data = data.encode('utf-8') (Pdb) up > astroid-1.3.8-py2.7.egg/astroid/brain/py2stdlib.py(266)infer_named_tuple() -> ''' % {'name': name, 'fields': attributes}) (Pdb) l 249 def infer_named_tuple(node, context=None): 250 """Specific inference function for namedtuple CallFunc node""" 251 class_node, name, attributes = infer_func_form(node, nodes.Tuple._proxied, 252 context=context) 253 fake = AstroidBuilder(MANAGER).string_build(''' 254 class %(name)s(tuple): 255 _fields = %(fields)r 256 def _asdict(self): 257 return self.__dict__ 258 @classmethod 259 def _make(cls, iterable, new=tuple.__new__, len=len): 260 return new(cls, iterable) 261 def _replace(_self, **kwds): 262 result = _self._make(map(kwds.pop, %(fields)r, _self)) 263 if kwds: 264 raise ValueError('Got unexpected field names: %%r' %% list(kwds)) 265 return result 266 -> ''' % {'name': name, 'fields': attributes}) (Pdb) pp name u'NamedTuple' (Pdb) pp attributes [u'foo', u'bar'] (Pdb) pp [ (arg, arg.value) for arg in node.args ] [(<Const(unicode) l.4 [checkPythonSourceCodelXOzr3] at 0x7f9f1caee250>, u'NamedTuple'), (<Const(unicode) l.4 [checkPythonSourceCodelXOzr3] at 0x7f9f1caeebd0>, u'foo bar')] /reviewed-on nexedi/erp5!978
-
- 07 Nov, 2019 7 commits
-
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Vincent Pelletier authored
To avoid duplicating _processSearchValue.
-
Vincent Pelletier authored
Scriptable keys are already handled by other branches below. If one wants to provide a string or dict value to a scriptable key, they need to wrap it into another type to disable catalog processing of these values.
-
Vincent Pelletier authored
-
Vincent Pelletier authored
Also, add a missing ignore_unknown_columns parameter.
-
Vincent Pelletier authored
These are only accessed within methods which are not reachable from this SearckKey type, so this was essentially dead code.
-
- 06 Nov, 2019 3 commits
-
-
Jérome Perrin authored
This allow using measure.updateCellRange to create varianted measures programmatically. Remove the TALES for lines, columns and tab on the matrix box because the default behavior is to call this updateCellRange script /reviewed-on nexedi/erp5!974
-
Vincent Pelletier authored
-
Vincent Pelletier authored
As was initially intended, but visible a directory level got lost in an intermediate patch file.
-
- 05 Nov, 2019 1 commit
-
-
Romain Courteaud authored
-
- 31 Oct, 2019 18 commits
-
-
Arnaud Fontaine authored
* This didn't work anyway with concurrent processes using the same SVN working copy (which is a frequent use case nowadays). * Now that it has been migrated to ZODB Components, this also breaks on reset: 1) Thread T1 acquires the lock. 2) Thread T2 performs a reset. 3) Thread T2 loads Subversion and thus a new RLock instance is created. => T2 can acquire the lock.
-
Arnaud Fontaine authored
Moved 'git_askpass' shell script to product/ERP5/bin (considering that this is a very short shell script which hasn't changed in 7 years, no need to move it to the ZODB which would require creating a temporary file...). After updating erp5_forge, you should delete 'product/ERP5VCS/' directory as this will only contain '.pyc' files. /reviewed-on nexedi/erp5!973
-
Romain Courteaud authored
-
Bryton Lacquement authored
This fixes the issue that a truncated traceback followed the json.
-
Bryton Lacquement authored
This is a backport from Zope (see commit 9c8dd7672cbef67573b3641178f12337c80de074).
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
>>> True and [(1,2)] [(1, 2)] >>> False and [(1,2)] False >>> [] and [(1,2)] []
-
Romain Courteaud authored
This is needed for compatibility with existing actions.
-
Romain Courteaud authored
Fields must propagate all values requested by ERP5.
-
Romain Courteaud authored
-
Romain Courteaud authored
Add a new url_generator mode Do not redirect to 'view': let the js handle the default navigation Do not generate view url if document does not acquire the hal web section
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-