Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3248)

Issue 165069: Patch: Add a filter list to the model graph wizard (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 4 months ago by udono
Modified:
10 years, 9 months ago
Reviewers:
yangoon1, ced1
Visibility:
Public.

Description

With this patch it is possible to filter given names of models (like "account.account", or nameparts like ".template") from the creation of the graph. You can set a higher level for a deep model structure, and filter out models you don't like to see in the final graph.

Patch Set 1 #

Total comments: 12

Patch Set 2 : next version #

Patch Set 3 : Add support for regular expressions #

Total comments: 5

Patch Set 4 : Reduced functionality to RE, updated help message, use re.compile(xy, re.VERBOSE) #

Total comments: 2

Patch Set 5 : put re.compile out of the recursion #

Total comments: 6

Patch Set 6 : move examples and url to doc string. New help for field filter. #

Total comments: 10

Patch Set 7 : overwork doc strings #

Total comments: 2

Patch Set 8 : Change doc-string, use None instead of False #

Patch Set 9 : Renamed deepness into depth in docstring #

Total comments: 1

Patch Set 10 : Remove circumjacent parentheses #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -3 lines) Patch
M trytond/ir/model.py View 1 2 3 4 5 6 7 8 9 3 chunks +24 lines, -3 lines 0 comments Download
M trytond/ir/model.xml View 1 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 34
ced1
http://codereview.appspot.com/165069/diff/1/2 File trytond/ir/model.py (right): http://codereview.appspot.com/165069/diff/1/2#newcode360 trytond/ir/model.py:360: filter_ = fields.Text('Namespace Filter', help=("Remove " Why not use ...
14 years, 4 months ago (2009-12-06 13:22:41 UTC) #1
yangoon1
http://codereview.appspot.com/165069/diff/1/2 File trytond/ir/model.py (right): http://codereview.appspot.com/165069/diff/1/2#newcode364 trytond/ir/model.py:364: "account. \nparty.address \nstock \ninvoice")) Proposal: Don't display models, that ...
14 years, 4 months ago (2009-12-06 13:24:06 UTC) #2
udono
http://codereview.appspot.com/165069/diff/1/2 File trytond/ir/model.py (right): http://codereview.appspot.com/165069/diff/1/2#newcode360 trytond/ir/model.py:360: filter_ = fields.Text('Namespace Filter', help=("Remove " On 2009/12/06 13:22:41, ...
14 years, 4 months ago (2009-12-06 14:18:56 UTC) #3
ced1
http://codereview.appspot.com/165069/diff/1/2 File trytond/ir/model.py (right): http://codereview.appspot.com/165069/diff/1/2#newcode456 trytond/ir/model.py:456: if model.model.find(expression) > -1: On 2009/12/06 14:18:56, udo.spallek wrote: ...
14 years, 4 months ago (2009-12-06 14:54:43 UTC) #4
udono
On 2009/12/06 14:54:43, ced wrote: > http://codereview.appspot.com/165069/diff/1/2 > File trytond/ir/model.py (right): > > http://codereview.appspot.com/165069/diff/1/2#newcode456 > ...
14 years, 4 months ago (2009-12-06 16:00:21 UTC) #5
udono
14 years, 4 months ago (2009-12-06 16:01:04 UTC) #6
ced1
http://codereview.appspot.com/165069/diff/1008/1009 File trytond/ir/model.py (right): http://codereview.appspot.com/165069/diff/1008/1009#newcode364 trytond/ir/model.py:364: is_regexp = fields.Boolean("Use Regular Expressions", help=("The given " Use ...
14 years, 4 months ago (2009-12-06 16:09:29 UTC) #7
udono
http://codereview.appspot.com/165069/diff/1008/1009 File trytond/ir/model.py (right): http://codereview.appspot.com/165069/diff/1008/1009#newcode457 trytond/ir/model.py:457: expressions = [item for item in filter.split('\n') if item ...
14 years, 4 months ago (2009-12-06 16:42:47 UTC) #8
ced1
http://codereview.appspot.com/165069/diff/1008/1009 File trytond/ir/model.py (right): http://codereview.appspot.com/165069/diff/1008/1009#newcode457 trytond/ir/model.py:457: expressions = [item for item in filter.split('\n') if item ...
14 years, 4 months ago (2009-12-06 22:21:13 UTC) #9
udono
14 years, 4 months ago (2009-12-08 14:42:12 UTC) #10
udono
On 2009/12/06 22:21:13, ced wrote: > http://codereview.appspot.com/165069/diff/1008/1009 > File trytond/ir/model.py (right): > http://codereview.appspot.com/165069/diff/1008/1009#newcode457 > trytond/ir/model.py:457: ...
14 years, 4 months ago (2009-12-08 14:45:15 UTC) #11
udono
14 years, 4 months ago (2009-12-08 14:45:31 UTC) #12
ced1
On 2009/12/08 14:45:15, udo.spallek wrote: > On 2009/12/06 22:21:13, ced wrote: > > http://codereview.appspot.com/165069/diff/1008/1009 > ...
14 years, 4 months ago (2009-12-08 14:54:06 UTC) #13
udono
hey, I uploaded patchset 4 with all your ideas implemented. Please give the help message ...
14 years, 4 months ago (2009-12-08 16:01:58 UTC) #14
ced1
http://codereview.appspot.com/165069/diff/12/2004 File trytond/ir/model.py (right): http://codereview.appspot.com/165069/diff/12/2004#newcode371 trytond/ir/model.py:371: )) "Don't display models that match the Python Regular ...
14 years, 4 months ago (2009-12-08 16:51:14 UTC) #15
udono
On 2009/12/08 16:51:14, ced wrote: > http://codereview.appspot.com/165069/diff/12/2004 > File trytond/ir/model.py (right): > > http://codereview.appspot.com/165069/diff/12/2004#newcode371 > ...
14 years, 4 months ago (2009-12-09 09:14:56 UTC) #16
udono
14 years, 4 months ago (2009-12-09 09:15:20 UTC) #17
ced1
http://codereview.appspot.com/165069/diff/2007/2008 File trytond/ir/model.py (right): http://codereview.appspot.com/165069/diff/2007/2008#newcode362 trytond/ir/model.py:362: "E.g. Filter all models with...\n" I find that Python ...
14 years, 4 months ago (2009-12-09 09:26:17 UTC) #18
yangoon1
http://codereview.appspot.com/165069/diff/2007/2008 File trytond/ir/model.py (right): http://codereview.appspot.com/165069/diff/2007/2008#newcode360 trytond/ir/model.py:360: filter = fields.Text('Filter Lines', help=("Don't display models, " fields.Text('Filter', ...
14 years, 4 months ago (2009-12-09 11:08:01 UTC) #19
yangoon1
http://codereview.appspot.com/165069/diff/2007/2008 File trytond/ir/model.py (right): http://codereview.appspot.com/165069/diff/2007/2008#newcode370 trytond/ir/model.py:370: )) On 2009/12/09 11:08:01, yangoon wrote: > Proposal: > ...
14 years, 4 months ago (2009-12-09 11:48:34 UTC) #20
udono
upload new patch set
14 years, 4 months ago (2009-12-11 12:18:26 UTC) #21
ced1
http://codereview.appspot.com/165069/diff/4001/4002 File trytond/ir/model.py (right): http://codereview.appspot.com/165069/diff/4001/4002#newcode361 trytond/ir/model.py:361: "Regular Expression will exclude models from being " ...
14 years, 4 months ago (2009-12-11 12:31:47 UTC) #22
udono
upload new patch set
14 years, 4 months ago (2009-12-11 12:55:22 UTC) #23
ced1
http://codereview.appspot.com/165069/diff/5003/5004 File trytond/ir/model.py (right): http://codereview.appspot.com/165069/diff/5003/5004#newcode406 trytond/ir/model.py:406: filter = False More logical: filter = None http://codereview.appspot.com/165069/diff/5003/5004#newcode437 ...
14 years, 4 months ago (2009-12-11 13:02:57 UTC) #24
udono
new patch set uploaded
14 years, 4 months ago (2009-12-11 13:38:01 UTC) #25
ced1
Ok for me
14 years, 4 months ago (2009-12-11 13:40:12 UTC) #26
udono
Add new patch. Small change in docstring, thanks to yangoon.
14 years, 4 months ago (2009-12-11 19:08:09 UTC) #27
ced1
Still ok
14 years, 4 months ago (2009-12-11 19:09:17 UTC) #28
ced1
http://codereview.appspot.com/165069/diff/4010/5012 File trytond/ir/model.py (right): http://codereview.appspot.com/165069/diff/4010/5012#newcode361 trytond/ir/model.py:361: "Regular Expression will exclude matching models from the graph.")) ...
14 years, 4 months ago (2009-12-17 10:46:54 UTC) #29
udono
On 2009/12/17 10:46:54, ced wrote: > http://codereview.appspot.com/165069/diff/4010/5012 > File trytond/ir/model.py (right): > > http://codereview.appspot.com/165069/diff/4010/5012#newcode361 > ...
14 years, 4 months ago (2009-12-17 11:46:07 UTC) #30
udono
14 years, 4 months ago (2009-12-17 11:46:23 UTC) #31
ced1
On 2009/12/17 11:46:07, udo.spallek wrote: > On 2009/12/17 10:46:54, ced wrote: > > http://codereview.appspot.com/165069/diff/4010/5012 > ...
14 years, 4 months ago (2009-12-17 11:48:55 UTC) #32
udono
Yes, you are right ced, parentheses are not needed. Thanks, new patch uploaded.
14 years, 4 months ago (2009-12-17 12:55:20 UTC) #33
ced1
14 years, 4 months ago (2009-12-17 13:01:15 UTC) #34
Ok
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b