Commit graph

776 commits

Author SHA1 Message Date
Gaetan Delannay 4131ba899e [gen] More work on string multilingual fields. 2014-08-13 17:17:25 +02:00
Gaetan Delannay 6770d23a50 [gen] Boolean field can now be rendered as 2 radio buttons. 2014-08-08 12:36:19 +02:00
Gaetan Delannay f8d5cb546d [gen] Bugfix. 2014-08-07 14:17:21 +02:00
Gaetan Delannay c8a9c04141 [gen] Log: prepend the user login. 2014-08-06 14:29:18 +02:00
Gaetan Delannay 9cccdebe24 [gen] Minor improvements. 2014-08-05 14:53:08 +02:00
Gaetan Delannay 636def8d24 [gen] Updated the Ajax system to be able to call a method on a Appy wrapper instead of a Zope object. 2014-08-05 09:48:05 +02:00
Gaetan Delannay fdb8b92fcb [gen] Ref.numbered: when clicking on the number, it gets selected automatically: when hitting then 'enter' key it has the same effect as clickin on the 'move' image. 2014-07-31 17:04:08 +02:00
Gaetan Delannay 302d54c7ce [gen] Positioned checkboxes on the left. 2014-07-29 19:21:37 +02:00
Gaetan Delannay dda894089a [gen] When param Ref.select is a Search instance, Search.name can be ommitted; added code that shows a warning: Appy is not compatible with MSIE below 9. 2014-07-28 17:35:49 +02:00
Gaetan Delannay a45dfa8dd0 [gen] Ref field: first cmplete version of Ref with link='popup'. 2014-07-28 12:29:16 +02:00
Gaetan Delannay 0bcd0055a3 [gen] More work on Refs with popup='true'. 2014-07-25 15:07:31 +02:00
Gaetan Delannay a14bff45a7 [gen] More work on Ref.link='popup'. 2014-07-23 22:29:47 +02:00
Gaetan Delannay 792db32f27 [gen] Allow to show checkboxes for search results. 2014-07-19 13:42:39 +02:00
Gaetan Delannay b2a2aa5210 [gen] Ref.select can now hold a Search instance; began implementation of Ref.link == 'popup'. 2014-07-18 16:54:11 +02:00
Gaetan Delannay a466513fb3 [gen] Added Wrapper.isTemp to know if an object is a temporary one or not. 2014-07-14 13:21:38 +02:00
Gaetan Delannay 811388078f [gen] Pod field: bugfix: too long filenames were generated for downloadable pod results. 2014-07-11 12:38:24 +02:00
Gaetan Delannay 1c2936d76d [gen] Pod field: added param 'getChecked': if you specify there the name of a Ref field of the same gen class, within the pod template you will be able to know what linked objects are currently selected in the user interface. 2014-07-10 21:22:52 +02:00
Gaetan Delannay 25f0e8184e [pod] When inserting an image via statement do... from document(...), parameter 'sizeUnit' can now be 'pc' (percentage): in this case, percentages are expressed as a tuple (widthPercentage, heightPercentage) in parameter 'size' and must be integers from 1 to 100. [bin] backup.py: better error handling when contacting SMTP server. [gen] Calendar widget for Date fields: bugfix (when the date range is in reverse chronological order). [gen] Ref field: added hook 'afterLink' allowing to execute a method just after an object has been linked. [gen] Ref field: added attribute 'unlinkElement' allowing to define a specific condition for unlinking a given object (before, it was only possible to define, in attribute 'unlink', a global condition allowing to unlink any object from the Ref. [gen] Bugfix: the link to the home page, when clicking on the logo, is fixed. 2014-07-10 09:46:39 +02:00
Gaetan Delannay 268309045a [gen] Ref field: added params 'beforeLink' and 'afterUnlink' allowing to hold methods that execute respectively before an item is linked via a Ref or after it has been unlinked; bugfix in mixin::getUrl. 2014-06-25 15:42:34 +02:00
Gaetan Delannay 8511bcd675 [gen] Bugfixes. 2014-06-24 21:05:01 +02:00
Gaetan Delannay 98b748cfb1 [gen] Added for Ref field, param 'insert' that defines at what position a newly tied object is inserted among referred objects. 2014-06-24 17:07:59 +02:00
Gaetan Delannay 477db8a21c [pod] Bugfix for https://bugs.launchpad.net/appy/+bug/1244738. 2014-06-24 08:31:39 +02:00
Gaetan Delannay f2571d2671 [pod] Force raiseOnError=True when working from an ODS template (solves bug https://bugs.launchpad.net/appy/+bug/1173295). 2014-06-23 21:02:15 +02:00
Gaetan Delannay c676d0b29c [pod] Bugfix for https://bugs.launchpad.net/appy/+bug/1333352. 2014-06-23 19:18:05 +02:00
Gaetan Delannay f7eaed817e [pod] Bugfix for https://bugs.launchpad.net/appy/+bug/1328139. 2014-06-23 16:48:32 +02:00
Gaetan Delannay f8f3c0e865 [pod] Added param Renderer.raiseOnError (False by default), that, if True, will force the Renderer to raise an error instead of dumping it into a note in the pod result. 2014-06-23 12:54:32 +02:00
Gaetan Delannay 114223a114 [pod] converter.py now works from Python2.4 to Python3. Thanks to Lennart Regebro who wrote the 'e=sys.exc_info()[1]' trick for catching exceptions in both Python2.4 and Python3 and Luc Saffre for discovering it. 2014-06-18 11:46:43 +02:00
Gaetan Delannay e11e754305 [gen] Class.popup: finalized the development of 'popup' classes. 2014-06-16 00:58:45 +02:00
Gaetan Delannay ef68bb420b [gen] Bugfix in ref (now it is possible to display several refs with render='menus' at the same time); CSS improvements. 2014-06-03 15:55:28 +02:00
Gaetan Delannay 432a579d47 [gen] On a workflow class, one may now define a method 'onTrigger(self, obj, transitionName)' that will be called after any transition has been triggered, but before the a transition-specific action. 2014-06-02 15:08:39 +02:00
Gaetan Delannay 6494bf22c7 [gen] Added some utility methods. 2014-06-01 11:44:07 +02:00
Gaetan Delannay 2eee217b05 [ref] Better rendering of ref menus. 2014-05-29 13:32:19 +02:00
Gaetan Delannay b3a72ade24 [gen] Bugfixes; for Ref field, replaced render mode 'titles' with 'minimal', allowing to display all fields defined in shownInfo. 2014-05-19 12:12:33 +02:00
Gaetan Delannay 57bab29447 [gen] Bugfixes. 2014-05-17 16:44:56 +02:00
Gaetan Delannay 3b18619624 [gen] Better rendering of buttons; added a new utility function for formatting elements like phone numbers. 2014-05-16 12:58:53 +02:00
Gaetan Delannay cf946e3222 [gen] Added String.placeholder, similar to HTML attribute 'placeholder' allowing to specify a short hint that describes the expected value of the input field. 2014-05-15 12:45:53 +02:00
Gaetan Delannay f78ffa4b74 [gen] Bugfix. 2014-05-15 09:51:11 +02:00
Gaetan Delannay 0dee80df3c [gen] Bugfix in groups. 2014-05-14 17:26:46 +02:00
Gaetan Delannay 79837d3f00 [gen] Bugfix: rendering of pod fields. 2014-05-14 17:05:50 +02:00
Gaetan Delannay b4e6333472 [gen] Bugfix: slave groups; bugfix: security check for pod fields; security bugfix for pod fields: write access to the field is required for performing any freeze-related action; migration to Appy 0.9.0: dump frozen pod fields on disk; repaired test system for Appy 0.9.0; more explicit error message when using, on some field, a specific write or read permission that is not used in the workflow. 2014-05-14 15:10:41 +02:00
Gaetan Delannay 61598b91f7 [gen] Removed appywide.css: css class which is specific to the wide layout are now in appy.css but are used conditionally in PXs. 2014-05-13 16:41:59 +02:00
Gaetan Delannay 5c6a7f0f97 [gen] Security improvements. 2014-05-03 22:45:51 +02:00
Gaetan Delannay b2dbef2bc4 Improved class appy.Hack to be able to hack static methods as well; [gen] pod field can now accept a string in param 'showTemplate' if a single format is accepted; when showing linked objects in a ref field, we show a message and no data for every object the currently logged user is not allowed to read; improved the default UI layout (less table borders). 2014-05-03 15:18:41 +02:00
Gaetan Delannay 0a174098f1 [gen] Some CSS changes. 2014-05-02 20:22:33 +02:00
Gaetan Delannay b83f6d512d [gen] More methods on AbstractWrapper. 2014-05-02 14:34:10 +02:00
Gaetan Delannay 1d0ee7a614 [gen] Bugfix in the Ref field; added method workflow.Transition.getBack that finds the 'back' transition of a given transition. 2014-05-02 12:35:09 +02:00
Gaetan Delannay 14f85509e1 [gen] Added ref.render == 'titles' = a way to render linked objects as a simple list of comma-separated, non clickable titles; bugfix in inline-edit of string XHTML fields. 2014-04-30 21:08:42 +02:00
Gaetan Delannay 4d78996938 [gen] Fixed some problems with groups having style='tabs'. 2014-04-30 15:10:11 +02:00
Gaetan Delannay 7adbc7e4bc [gen] Fixed groups with style 'tabs'; reused the same tabs for representing phases; pages and phases are now outside the portlet, rendered horizontally below the breadcrumb; methods getSupBreadCrumb and getSubBreadCrumb can now be defined on every gen-class to customize what is shown above and below the breadcrumb (=title with a prefix) on view layouts (those methods are similar to getSubTitle and getSupTitle when displaying lists of objects). 2014-04-29 19:02:06 +02:00
Gaetan Delannay cee7b49e3c [gen] Added method Mixin.onCall allowing to call a specific method on a gen-class from the UI. 2014-04-25 12:14:50 +02:00