Commit graph

147 commits

Author SHA1 Message Date
Gaetan Delannay 50bd996c3b [gen] Bugfixes. 2014-12-15 10:30:24 +01:00
Gaetan Delannay e01615476b [gen] Added attribute Field.view allowing to specify, for any field, an alternative pxView. 2014-12-09 15:19:28 +01:00
Gaetan Delannay 186175250d [gen] Bugfix: the mime type received by Zope in FileUpload instances seems to be wrong under some unknown circumnstances. 2014-12-09 12:22:09 +01:00
Gaetan Delannay b39c5553ea [shared] Improvements to the XmlMarshaller and bugfix: Mixin.xml returns appy.Object instances correctly marshalled. 2014-12-09 11:40:30 +01:00
Gaetan Delannay 12836a40dc [gen] Ref field: param 'shownInfo' can now be a method. 2014-12-09 09:27:40 +01:00
Gaetan Delannay c53654a1a1 [gen] Added attribute 'xml' on every field allowing to customize the XML marshalling process. [gen] Added new layout 'xml', now different from the 'view' layout, allowing to define which fields are to be dumped in the XML version of some object. [gen] Security fix in ToolMixin::getUser. [gen] Bugfix in Mixin::getUrl. [shared] dav.py: method 'get' can now accept parameters. [shared] xml_parser: changes to the XmlMarshaller (due to XML-related changes). 2014-12-08 14:52:04 +01:00
Gaetan Delannay f055ec1754 [gen] Bugfix: For showing a field on layout buttons, the buttons layout must explicitly be returned by the show method. [gen] Action.py: added param 'icon' allowing to specify a specific icon. 2014-12-05 11:55:25 +01:00
Gaetan Delannay fa9ef1b76c [gen] Boolean field: bugfix (defaut layouts). 2014-11-30 11:38:29 +01:00
Gaetan Delannay c11002b7d5 [gen] Class.listColumns can now be a static method (accepting the tool as single arg). [gen] Indexed Ref fields are now sortable. For every such field, 2 indexes are created: a list index for searching, and a standard index for sorting (by their title). 2014-11-28 14:42:32 +01:00
Gaetan Delannay 477a533728 [gen] appy.Object: allow to get object attributes like accessing dict keys, ie object[attr]; Pod field: bugfix (download name of pod template being links to other pod templates + UI bug); Pod field: Manager does not have all output formats anymore, because in some situations, generating a doc in some formats does make sens (ie for frozen docs); Wrapper.getLastEvent can now work on some history given as parameter instead of object.history. 2014-11-20 09:47:37 +01:00
Gaetan Delannay e6adfe39d4 [gen] string.py: bugfixes: show differences in multilingual fields. 2014-11-17 11:44:00 +01:00
Gaetan Delannay f3849d4f92 [gen] Added boolean param Config.userLink allowing to show/hide (show by default) the link, in the user strip, to go to the user page. 2014-11-13 15:02:33 +01:00
Gaetan Delannay 4a393e76af [gen] Allow an ajax request to return a message, carried as a custom HTTP header and retrieved by appy.js to display a message. 2014-11-10 13:34:52 +01:00
Gaetan Delannay d560738718 [gen] Workflow.onTrigger method now accepts one more arg, fromState, the name of the state from which the triggered transition starts. 2014-11-05 19:57:31 +01:00
Gaetan Delannay 50544aaecf [gen] Removed the obsolete mail notification system. 2014-10-28 17:48:54 +01:00
Gaetan Delannay 412d9f939f [gen] A page can now be visible on edit but not on view (ie, the new User page containing only fields 'password' and 'retype password'. Default User class has now 2 pages: the 2 password fields are on a separate page. Zone containing user name in the user strip has evolved. 2014-10-24 15:55:45 +02:00
Gaetan Delannay c316ab896b [gen] SOme CSS changes. 2014-10-23 16:05:19 +02:00
Gaetan Delannay ccf7e44eef [gen] [gen] Action field: param confirm can be 'text': in this case, the confirm popup contains a textarea whose content is passed as param to the method speficied in param 'action'. Action fields can now be defined in a new layout 'buttons' (show='buttons') in order to appear, on the view layout, besides the extsting series of buttons (edit, next/previous pages...). 2014-10-22 22:17:26 +02:00
Gaetan Delannay 7484fbca93 [gen] Added the possibility to navigate to tied object number X within a list of tied objects from a Ref that is numbered. 2014-10-21 09:25:37 +02:00
Gaetan Delannay e72f53c0d9 [gen] Added field.getCatalogValue allowing, for indexed values, to get the value as indexed in the Zope catalog. [gen] field Computed: added param formatMethod allowing to define the way to format the computed value (ie: the formatted value can then be different from the 'raw' value: this can be interesting if the raw value must be indexed. 2014-10-15 09:39:01 +02:00
Gaetan Delannay ecb970e519 [gen] workflow state: make it performant to write, in a gen-workflow: someState=State(otherState.permissions.copy()). 2014-10-13 18:55:49 +02:00
Gaetan Delannay a16871f4b5 [gen] Ref field: added a confirmation popup when the user wants to sort the ref. Indeed, most users think it is like sorting query results: they are not conscious it is a permanent change in the database, with effect for all users. 2014-10-07 15:03:07 +02:00
Gaetan Delannay c2676c9cf8 [gen] pod field: bugfix with attr 'formats' without method 'showTemplate'; [shared] bugfix: renamed module ldap to ldap_connector. 2014-10-07 13:14:16 +02:00
Gaetan Delannay 5ac8e71a6f [gen] Bugfix: ref field: empty index value [''] could be stored within the db, as the real value. Added field.setSlave allowing to lazy-define master/slave relationships. 2014-10-06 12:51:40 +02:00
Gaetan Delannay d9d93a650b [gen] pod field: bugfix: download a generated or frozen pod result. 2014-10-03 20:27:54 +02:00
Gaetan Delannay 1455a74056 [shared] xml_parser::XmlUnmarshaller: bugfix: in non-utf8 mode. 2014-10-03 19:56:34 +02:00
Gaetan Delannay a671094167 [gen] When duplicating a file via appy.fields.file::FileInfo.replicateFile, the source file can be binary data in a str instead of an opened file handler. 2014-10-01 16:21:12 +02:00
Gaetan Delannay abe56a5add [gen] Ref.linkObject and unlinkObject (and caller methods like wrapper.create) can now be called with attr 'executeMethods' being False: in this case, all methods defined in attrs like 'insert', 'beforelink', 'afterLink' will not be called. Can be useful while migrating data or duplicating objects. 2014-09-29 10:06:40 +02:00
Gaetan Delannay dcf90f2b94 [gen] Created method mixin.getListTitle that is responsible for displaying an object's title in the various lists (queries, refs). 2014-09-23 18:38:55 +02:00
Gaetan Delannay 701eae1b19 [gen] Performance improvements. 2014-09-23 12:47:44 +02:00
Gaetan Delannay ecc3f07a09 [gen] SMTP and LDAP configuration updated. Module appy.gen.mail can now be used independently of a gen-application. 2014-09-18 11:08:29 +02:00
Gaetan Delannay 4947e2956c [gen] Pod field: send pod results by emails. 2014-09-17 18:09:30 +02:00
Gaetan Delannay e6f2b5213e [gen] Pod field: more work on mailing lists. 2014-09-17 14:22:36 +02:00
Gaetan Delannay f4ea1a5570 [gen] Bugfixes in the pod field. 2014-09-16 15:38:29 +02:00
Gaetan Delannay f64493764f [gen] bugfixes in the pod field. 2014-09-15 18:32:45 +02:00
Gaetan Delannay 4d12293dc8 [gen] Added wrapper.createFrom, similar to wrapper.create, but allows to create an object with data from another object (kind of 'duplicate' functionality). 2014-09-14 21:40:35 +02:00
Gaetan Delannay 400158a0a1 [gen] Users have now a workflow allowing them to deactivated. An inactive user can't log in anymore. This is useful if the User is tied to other objects and cannot be removed without braking the data model, but does not correspond anymore to an active user that is allowed to log in. 2014-09-11 16:41:08 +02:00
Gaetan Delannay 194b455816 [gen] pod field: one of the listed templates in field.template can simply be a pointer to another template from the list. For example, template=('Item.odt', 'Item.odt.variant'). The second file is an empty file and gen will use the first one for the second template. It allows to have similar files for templates that, in the UI, are different, ie, can have different names and appear under different conditions. Note that in the default context of every template, variable 'template' contains the name of the template file. It allows the template to know if he is 'called' under the name 'Item.odt' or 'Item.odt.variant'. 2014-09-10 16:26:19 +02:00
Gaetan Delannay 71bc58a8b0 [gen] While <obj>.<fieldName> allows to get the 'DB' value of some field, <obj>.getValue allows to get a variant of it, ie, the formatted version (via an internal call to field.getFormattedValue). 2014-09-08 15:13:18 +02:00
Gaetan Delannay 8aed007623 [gen] Bugfixes: handle multilingual titles in queries, references, breadcrumbs... 2014-09-06 15:20:59 +02:00
Gaetan Delannay f8a7103c7a [gen] Changes in parameters of some basic field methods to enable field.languages to be defined dymanically via a method. 2014-09-05 17:13:23 +02:00
Gaetan Delannay 18afb4416c [gen] Bugfix in string.py (inline editing). 2014-09-04 11:29:00 +02:00
Gaetan Delannay c8cf3911fa [gen] Historization of multilingual fields. 2014-09-03 18:18:27 +02:00
Gaetan Delannay 2e1bdb9491 [gen] Bugfixes. 2014-08-15 11:43:46 +02:00
Gaetan Delannay fb65cf82d8 [gen] More work on string multilingual fields. 2014-08-15 10:46:28 +02:00
Gaetan Delannay 7c2d4c1b7a [gen] More work on multilingual string fields. 2014-08-14 16:46:37 +02:00
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 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