File: backward_incompatibilities.rst

package info (click to toggle)
sqlkit 0.9.5-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 8,184 kB
  • sloc: python: 17,477; sql: 166; makefile: 95; xml: 23; sh: 11
file content (93 lines) | stat: -rw-r--r-- 2,716 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
.. _backward_incompatibilities:

=================================
Backward Incompatibilities
=================================


From version 0.8.6 (first public release) I keep track of backward
incompatibilities:

0.9.3
=====

:requirements: sqlalchemy now needs to be at least rel 0.5.4 as we're using
         AttributeExtension to provide better MVC support

0.9.2
=====

:hooks: ``on__field_change`` now pass also the field. The demo snippet
        already had this arguments but was always None and was not
        documented

:totals: added model, path, iter to ``sum`` method of totals. Impact only on
         customized :ref:`totals`

0.9.1
=====

:hooks: ``on_completion`` is now triggered when you press Return, both for
        tables and masks. Previously was triggered on Return for Masks
        and on click for table.

0.9.0
=====
:Mask: a fix in the layout machinery make setting width specs
       working... that means you may need to fine tune the width of your
       entries. You set the width of an entry as follows::

          last_name:40
	  first_name:30-
	  sex:1>

       the first sets 40 chars, the second sets 30 that would grow to use
       available space, the latter would use 2 chars and would right align
       it (compared to other entries)

:mappers: if a relationship has ``cascade=delete-orphan`` set, and you add
       an object by completion Sqlalchemy will complain that there's a
       missing object. With SA 0.5 this is automatically done, with SA 0.6
       this is no longer supported by sqlkit. You are supposed to
       explicitly add info on the Column as explained in 
       :meth:`sqlkit.fields.ForeignKeyField.add_related_object`


0.8.7
=====

:Table:
  
  *  ``self.current`` points to ``self.get_current_obj()``, no longer
     ``get_selected_obj()``

  *  button-press-event now has one more argument: treeview. This is
     necessary due to the fact that table now have views and t.treeview only
     points to the main view's treeview.

:Table & Mask:

  * now keyword table/class/mapper are deprecated in favor to setting it
    as first argument.

:Hooks: 

   arguments in hooks of related widgets where not as documented: a hook on
   a sqlwidget acting on a related  widget would receive the related widget
   as first argument rather that the main one. Look at the the following case::
   
     lay = """
	user
	o2m=addresses
     """
     class Hook(object):
	def on_change_value__addresses__domain(self, sqlwidget, field_name, value, fkvalue):
	   pass

     m = SqlMask(User,... hooks=Hook())
     m_address = m.related.addresses
     
   the hook instance will receive ``m`` as argument where previously
   received ``m_addresses``