Have not test it, but looks good. Comments and questions added. http://codereview.appspot.com/1253042/diff/1/2 File doc/ref/models/models.rst (right): ...
15 years, 10 months ago
(2010-05-18 06:08:04 UTC)
#2
http://codereview.appspot.com/1253042/diff/1/2 File doc/ref/models/models.rst (right): http://codereview.appspot.com/1253042/diff/1/2#newcode227 doc/ref/models/models.rst:227: Return eligible record ids for write actions by triggers. ...
15 years, 10 months ago
(2010-05-18 06:35:15 UTC)
#3
http://codereview.appspot.com/1253042/diff/1/2
File doc/ref/models/models.rst (right):
http://codereview.appspot.com/1253042/diff/1/2#newcode227
doc/ref/models/models.rst:227: Return eligible record ids for write actions by
triggers. This dictionary
On 2010/05/18 06:08:05, udono wrote:
> Better to explain what an 'eligible' record for a trigger is.
> And the signature sounds like 'eligible recorts are written'. Isn't the naming
> 'get_eligibles' not better?
param doc is in docstring. Here it is a explanation of the method.
http://codereview.appspot.com/1253042/diff/1/8
File trytond/model/modelstorage.py (right):
http://codereview.appspot.com/1253042/diff/1/8#newcode111
trytond/model/modelstorage.py:111: def read(self, cursor, user, ids,
fields_names=None, context=None):
On 2010/05/18 06:08:05, udono wrote:
> Why not having read triggers? I think of synchronizing with LDAP. Or is it a
> misleading aproach?
Read doesn't change anything.
15 years, 10 months ago
(2010-05-18 18:17:44 UTC)
#6
http://codereview.appspot.com/1253042/diff/6001/7004
File trytond/ir/trigger.py (right):
http://codereview.appspot.com/1253042/diff/6001/7004#newcode17
trytond/ir/trigger.py:17: on_time = fields.Boolean('On Time', select=1, states={
On 2010/05/18 14:56:19, yangoon wrote:
> Just a general remark at first glance:
> Generally it is better to have some help texts for the usage, not only error
> messages after wrong usage.
Here there will be no error message for wrong usage.
And I find field string self-explained.
15 years, 10 months ago
(2010-05-18 18:41:37 UTC)
#7
http://codereview.appspot.com/1253042/diff/6001/7004
File trytond/ir/trigger.py (right):
http://codereview.appspot.com/1253042/diff/6001/7004#newcode17
trytond/ir/trigger.py:17: on_time = fields.Boolean('On Time', select=1, states={
On 2010/05/18 18:17:45, ced wrote:
> On 2010/05/18 14:56:19, yangoon wrote:
> > Just a general remark
...
> Here there will be no error message for wrong usage.
> And I find field string self-explained.
A general remark applies obviously not only to a specific field.
It is preferable that a user won't run into
'"On Time" and others are mutually exclusive!'
resp.
'Condition must be a python expression!'
explaining him the use of those fields directly.
15 years, 10 months ago
(2010-05-18 18:55:34 UTC)
#8
http://codereview.appspot.com/1253042/diff/6001/7004
File trytond/ir/trigger.py (right):
http://codereview.appspot.com/1253042/diff/6001/7004#newcode17
trytond/ir/trigger.py:17: on_time = fields.Boolean('On Time', select=1, states={
On 2010/05/18 18:41:37, yangoon wrote:
> On 2010/05/18 18:17:45, ced wrote:
> > On 2010/05/18 14:56:19, yangoon wrote:
> > > Just a general remark
> ...
> > Here there will be no error message for wrong usage.
> > And I find field string self-explained.
>
> A general remark applies obviously not only to a specific field.
> It is preferable that a user won't run into
> '"On Time" and others are mutually exclusive!'
> resp.
> 'Condition must be a python expression!'
> explaining him the use of those fields directly.
>
This will not happen if you use the client.
http://codereview.appspot.com/1253042/diff/19001/20009 File trytond/res/user.py (right): http://codereview.appspot.com/1253042/diff/19001/20009#newcode86 trytond/res/user.py:86: def init(self, cursor, module_name): Is this related to implementation ...
15 years, 10 months ago
(2010-05-23 14:32:24 UTC)
#11
Issue 1253042: Implementation of triggers
(Closed)
Created 15 years, 10 months ago by ced
Modified 15 years, 10 months ago
Reviewers: bch, udono, yangoon1
Base URL:
Comments: 15