Commit graph

69 commits

Author SHA1 Message Date
Gaetan Delannay 34e3a3083e [gen] More work ZPT->PX. 2013-08-21 12:35:30 +02:00
Gaetan Delannay 8833f7b0ae [gen] Changed the way to customize the Config in an app. 2013-07-24 15:53:19 +02:00
Gaetan Delannay 88bd5e5bce [gen] Created param config.groupsForGlobalRoles that disabled by default creation of a group for every global role. On a appy class it is now possible to define a static method 'generateUid' that generates a UID for every instance of this class, instead of using the standard Appy way to produce such UIDs. [shared] dav.Resource: allow to retrieve the result encoded or not in utf8. 2013-07-23 17:07:27 +02:00
Gaetan Delannay d385b8514e [gen] Optimized PXs, that are almost ready. This is the last gen version where PTs are still working. 2013-07-23 10:29:39 +02:00
Gaetan Delannay efd918f175 [gen] Replaced, in PXs, function 'img' by function 'url', that returns the URL of an external resource to be included in the XHTML, like an image, a Javascript file or a CSS file. 2013-07-20 19:56:17 +02:00
Gaetan Delannay f2b19e4141 [gen] Bugfixes. 2013-07-15 16:41:45 +02:00
Gaetan Delannay 5d350de491 [gen] Optimized PXs. 2013-07-15 13:39:05 +02:00
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 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 1d931cfb96 [px] Made PX thread-safe. 2013-06-25 12:04:23 +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 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 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 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 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 5cc7884c03 [gen] Bugfix: sort references. 2013-03-10 16:31:49 +01:00
Gaetan Delannay 46f5b8e464 [gen] Removed obsolete code; a Page instance that does not have sub-pages does not show the portlet. 2013-03-08 16:16:25 +01:00
Gaetan Delannay b717a001d4 [gen] added tool.sendMail as an easy access method for function appy.gen.mail.sendMail. 2013-02-28 23:00:06 +01:00
Gaetan Delannay 24089ef674 [gen] Improved search abilities. [pod] Bugfix: import several times an image from the same URL. 2013-02-18 15:03:26 +01:00
Gaetan Delannay 2307a284cc [gen] Wrapper.reindex: allow to specify attribute 'fields' containing the list of fields that must be reindexed. If not given, all object fields are reindexed. [pod] POD ODS templates: into POD results from ODS templates, Python expressions that produce ints, floats or dates (Zope DateTime only for the moment) produce cells with typed values. 2013-02-06 17:15:01 +01:00
Gaetan Delannay 43261fde60 [pod+gen] Added POD rendering based on ODS templates. Integrated with gen. 2013-02-05 08:51:25 +01:00
Gaetan Delannay cb77418dda [gen] Stop using param 'cmp' in method [].sort (deprecated in Python3). Used para 'key' instead. 2013-01-22 09:12:00 +01:00
Gaetan Delannay f091b25c98 [gen] One can now specify a different source language for every translation. 2013-01-09 10:46:14 +01:00
Gaetan Delannay 3ec1270fc2 [gen] Added appy.gen.Pod.rLayouts, a default layout for rendering POD templates on query result pages; various security and bugfixes. 2012-11-26 13:58:27 +01:00
Gaetan Delannay fcb1d36da0 [gen] Remove attributes showWorkflowFor...; buttons for triggering workflow transitions are not located besides the standard actions (icons): edit, save, etc. 2012-11-05 13:12:18 +01:00
Gaetan Delannay 21585df6a1 [gen] Added an index 'Modified' on every object (it represents the date of the last modification); removed obsolete workflow-related code; removed attributes Tool.showAllStatesInPhaseFor...; changed the way to display the object's current state in the UI. 2012-11-05 10:21:27 +01:00
Gaetan Delannay 7240561f7f [gen] Added param Search.default allowing to define a default Search. The default search, if present, will be triggered when clicking on the main link for a class, instead of the query that collects all instances of this class; appy.gen.Type: removed 3 obsolete params: 'index', 'editDefault' and 'optional'. For achieving the same result than using 'editDefault', one may define 'by hand' an attribute on the Tool for storing the editable default value, and define, on the appropriate field in param 'default', a method that returns the value of the tool attribute; Added Type.defaultForSearch, allowing, for some sub-types, to define a default value when displaying the corresponding widget on the search screen; added a default 'state' field allowing to include workflow state among search criteria in the search screens; removed obsolete test applications. 2012-10-31 13:20:25 +01:00
Gaetan Delannay ba148c51aa [gen] Calendar: display weekend days in a special way. 2012-10-18 20:57:03 +02:00
Gaetan Delannay 8d1a88bd27 [shared] xml_parser.XmlParser: added param 'raiseOnError' allowing to raise or not an exception when a SAX fatal parsing error is encountered; [gen] fine-tuned indexing machinery with more accurate text extraction from text and xhtml fields. 2012-09-26 23:13:02 +02:00
Gaetan Delannay 5f530d9f9e [gen] Now it is possible to index and search Ref fields. 2012-09-17 21:11:54 +02:00
Gaetan Delannay c2eaab4b44 [gen] Cleaner and more robust approach when using Zope database indexes. 2012-09-04 18:00:22 +02:00
Gaetan Delannay 61b0ed2fce [gen] Minor updates. 2012-08-17 17:12:15 +02:00
Gaetan Delannay 178059ba1b [gen]: method Wrapper.do: added param 'noSecurity' allowing to bypass check of roles mentioned as conditions for triggering worfklow actions. 2012-07-23 15:24:44 +02:00
Gaetan Delannay 699cc8346b [gen] Field.indexed, instead of being a Boolean, can be a str, to represent the name of a Zope Index. This way, it is possible to bypass the standard Appy choice for index types, ie for Computed fields whose content may produce any type of value; added missing translation labels in the macro displaying object's history; added default fields Tool.dateFormat and Tool.hourFormat that give application-wide default formats for dates with/without hour; added a table in Config->Users that shows the connected users and the date/time of their last access to the app; added the missing search macro for a Computed field. 2012-07-18 21:58:11 +02:00
Gaetan Delannay 21ffa7b46d [gen] Added UserWrapper.checkPassword allowing to check if a password is the right one for a user. 2012-07-12 17:54:14 +02:00
Gaetan Delannay a0837a758f [gen] Bugfix in the 'change user id' function. Now, the method browses every object in the database and updates local roles where the old ID was potentially mentioned. 2012-07-11 17:27:40 +02:00
Gaetan Delannay a7bcd1a098 [gen] allow Manager to change the login of a user; bugfix in dumping XHTML tables whose column sizes are automatically computed; bugfix: apply styles mapping to 'p' tags that are added automatically by xhtml2odt (was only implemented for p tags inside li tags). 2012-07-10 14:21:08 +02:00
Gaetan Delannay e13575c506 Added method Wrapper.isEmpty(name) that checks if the content of some field is empty or not on a given object. 2012-06-13 09:31:09 +02:00
Gaetan Delannay 8f57163c2a [gen] Finalized pending i18n. 2012-06-03 18:34:56 +02:00
Gaetan Delannay 2710fb6c39 [gen] Bugfix: attribute Field.focus and UserWrapper password management. 2012-06-02 20:55:25 +02:00
Gaetan Delannay f843d5b7d6 [gen] Security: added missing checks at the code level, ensuring that a user can create instances of a given class (root classes, or instances created via an initiator field); bugfixes in the test system, which works again (was broken after deplonization); [shared] XmlUnmarshaller can now be ran in 'non utf-8' mode: if enabled, any marshalled string will no be Python unicode, but simple str. 2012-06-02 14:36:49 +02:00