Commit graph

603 commits

Author SHA1 Message Date
Gaetan Delannay
1810373304 [gen] Optimized PXs. [px] added tag 'var2', similar to 'var', but that is executed after tags 'for' and 'if'. 2013-07-15 11:23:29 +02:00
Gaetan Delannay
369e41b43c [gen] Continued PX-based refactoring. 2013-07-10 09:56:35 +02:00
Gaetan Delannay
25b4edfc1d [gen] Moved Appy fields into appy/fields together with their PX. 2013-07-08 23:39:16 +02:00
Gaetan Delannay
2b5d286668 [gen] On Page instances, one may now define a method for conditionnally showing the 'edit' button on 'view' layout. [gen] An app may now, on its Config class, define a method getHomeObject that must return an object that will be the home object for a given (class of) user(s). This object's menu will appear when the user is consulting a page with no tied menu (like a search for example). [gen] More ZPT->PX work. 2013-06-28 15:00:02 +02:00
Gaetan Delannay
7fcd2f44d3 [gen] More ZPT->PX work. 2013-06-27 17:40:01 +02:00
Gaetan Delannay
cb6fea7631 [pod,px] 'loop' variable allows to know if we are managing an even or odd elem via loop.<elem>.odd and loop.<elem>.even. [gen] In the process of migrating from ZPT (Zope Page Templates) to appy.px (Python Xml). 2013-06-27 11:57:39 +02:00
Gaetan Delannay
e6cacd10dd [px] Better error reporting when encountering a parsing error in a PX. 2013-06-26 17:06:06 +02:00
Gaetan Delannay
e4b84be05e [px] Managed special HTML attributes like 'checked' and 'selected'. 2013-06-26 13:44:31 +02:00
Gaetan Delannay
5ece5c9831 [px] Added the possibility to have several PX actions in the same XHTML tag. If several PX action are defined, they are evaluated in this order: var, for, if. 2013-06-25 23:22:33 +02:00
Gaetan Delannay
1bc2a2f890 [gen] More buttons replacing simple icons. 2013-06-25 19:37:21 +02:00
Gaetan Delannay
b5136c59c1 [gen] Some actions were triggered via icons. That was not explicit enough for basic users. So now, every action is triggerd by a button that displays an icon+a text. 2013-06-25 17:34:17 +02:00
Gaetan Delannay
1d931cfb96 [px] Made PX thread-safe. 2013-06-25 12:04:23 +02:00
Gaetan Delannay
086f93e845 [gen] Added the posssibility to create a custom widget that displays an icon for generating a doc from a pod field, but with an additional param allowing to customize the pod context. 2013-06-20 17:35:52 +02:00
Gaetan Delannay
e83f0f3815 [gen] Bugfix in the way to index text fields containing line breaks. 2013-06-12 12:57:42 +02:00
Gaetan Delannay
244826194b [gen] Added a mechanism for caching method calls that are performed several times for displaying a single ui page (ie: field.show methods). 2013-06-10 00:13:29 +02:00
Gaetan Delannay
b12ea0a64d [gen] Removed obsolete fields 'enableAdvancedSearchX' generated on the tool. 2013-06-08 00:10:27 +02:00
Gaetan Delannay
5a50d07e54 [gen] Replaced attributes tool.enableAdvancedSearchForX by klass.searchAdvanced.show. 2013-06-07 16:37:00 +02:00
Gaetan Delannay
0d0d7c1123 [gen] Added attributes 'created' and 'modified', now accessible on Appy wrappers; added method AbstractWrapper.countRef that allows to count the number of objects tied to a given object via a Ref field whose name is given as method param. 2013-06-07 11:32:23 +02:00
Gaetan Delannay
1b3af98305 [pod] Bugfix in function 'pod'; added new method 'pageBreak' allowing to insert a page break via a note 'do xxx from pageBreak()' 2013-05-31 15:23:28 +02:00
Gaetan Delannay
7049e4780e [gen] Improvement in the management of Unauthorized exceptions. 2013-05-31 09:59:25 +02:00
Gaetan Delannay
0c50fe188a Updated 'print' statements throughout Appy code, in order to be Python3x as well as Python2x-compliant. 2013-05-30 00:46:11 +02:00
Gaetan Delannay
fd33e73efa [gen] Add the possibility, for an admin, to unlock a page that was locked for too long by some user. 2013-05-22 10:27:31 +02:00
Gaetan Delannay
89c961c5c5 [gen] Bugfix in Ref.getIndexedValue. 2013-05-20 10:21:42 +02:00
Gaetan Delannay
4c6c72935a [gen] Bugfix in AbstractWrapper. 2013-05-17 17:11:22 +02:00
Gaetan Delannay
d45e314ac1 [gen] Calendar: bugfix; wrapper.appyUser returns the admin if the user is 'System Processes', the virtual user that runs when Zope is starting. 2013-05-17 15:00:31 +02:00
Gaetan Delannay
b996de09c6 [gen] Bugfixes. 2013-05-16 09:53:27 +02:00
Gaetan Delannay
bac15b6ee1 [gen] Corrected Zope index type for Date fields. 2013-05-10 16:08:58 +02:00
Gaetan Delannay
820d3ef241 [gen] Added Config.discreetLogin allowing to put a discreet link on the main page for logging in, instead of the login form in the central strip, for sites where logged users do not represent the majority of visitors (only some admins). 2013-05-10 12:16:57 +02:00
Gaetan Delannay
8a0ee2c131 [gen] Bugfix in the start and end dates for the Calendar widget. 2013-05-07 13:36:50 +02:00
Gaetan Delannay
96cdc19060 [gen] Bugfix in the Calendar widget. 2013-05-03 16:10:36 +02:00
Gaetan Delannay
97ddf7a2c4 [gen] Bugfix: do not show the Calendar widget (search and edit layouts) if field.calendar is False. 2013-04-30 11:45:31 +02:00
Gaetan Delannay
049ddb20b4 [gen] Bugfix in the query engine. 2013-04-30 11:12:02 +02:00
Gaetan Delannay
e5d6887b65 [gen] Bugfix. 2013-04-29 21:37:55 +02:00
Gaetan Delannay
a94d400d03 [pod] Bugfix: error when a pod template does not have a 'mimetype' file inside (https://bugs.launchpad.net/bugs/1173009); bugfix: error when parsing some ods pod templates: some cells do not have attribute 'office:value-type' (see bug https://bugs.launchpad.net/bugs/1173301). [gen] Added a basic integration of gen applications with Google Analytics. 2013-04-29 21:32:05 +02:00
Gaetan Delannay
1c3555fd28 [gen] Added the possibility to define dict someClass.styles (with, currently, a single entry 'title'), allowing to specify alternative CSS classes for class-related elements (here, 'title' allows to define an alternative CSS class for the link allowing to click on some instance of the class on a query or ref). 2013-04-27 02:15:44 +02:00
Gaetan Delannay
0a8e06f1d9 [gen] Various bugfixes. 2013-04-16 19:56:47 +02:00
Gaetan Delannay
fb40913ef5 [gen] Added a doctype in the standard Appy template. 2013-04-12 08:38:33 +02:00
Gaetan Delannay
d480e58d01 [gen] UI improvements. 2013-04-11 16:01:52 +02:00
Gaetan Delannay
1d2a19a1c6 [gen] Minor updates. 2013-04-09 10:57:21 +02:00
Gaetan Delannay
2869d0382f [bin] Added a new script odfGrep.py that allows to search for some pattern within odt and ods files. 2013-04-03 13:10:23 +02:00
Gaetan Delannay
4e09a40807 [gen] Integrated ckeditor inline editing via boolean parameter field.inlineEdit. 2013-03-29 14:50:12 +01:00
Gaetan Delannay
48c7c50122 [gen] Make ckeditor work with IE. 2013-03-28 21:32:47 +01:00
Gaetan Delannay
e1e1b90921 [gen] Integrated ckeditor 4.1. 2013-03-25 16:38:52 +01:00
Gaetan Delannay
c87db8d167 [gen] In the process of upgrading to ckeditor 4.1. 2013-03-25 14:53:02 +01:00
Gaetan Delannay
2a145ac890 [px] PXs can be called by other PXs. 2013-03-22 12:52:24 +01:00
Gaetan Delannay
da1f2699cd [gen] Allow to show transitions on 'view' and/or 'result' layout types. 2013-03-18 13:13:29 +01:00
Gaetan Delannay
e0cef5eed5 Removed test code. 2013-03-16 00:06:28 +01:00
Gaetan Delannay
bf98b2cdf2 [px] Implemented attribute values containing Python expressions, and errors management. 2013-03-16 00:02:16 +01:00
Gaetan Delannay
5cc7884c03 [gen] Bugfix: sort references. 2013-03-10 16:31:49 +01:00
Gaetan Delannay
da4f502ddc [gen] appyclass.getIcons now receives the nav param, in case one wants to reproduce, on an icon or a picture, the link to the element. For example, on a artist's site that presents its artworks, getIcons can be used to create a clickable link to a small version of the artwork, that leads to the full-size picture. Bugfix in result.pt (numbering of elements in the grid view). 2013-03-10 08:29:53 +01:00