wizard again

36 views
Skip to first unread message

Massimo Di Pierro

unread,
Aug 22, 2011, 12:13:49 PM8/22/11
to web2py-developers
Should we have a

Table.label_singlar
Table.label_plural

?

Anthony

unread,
Aug 22, 2011, 10:21:01 PM8/22/11
to web2py-d...@googlegroups.com
Is the idea to use singular for create/view/edit and plural for the grid?

Massimo Di Pierro

unread,
Aug 22, 2011, 10:23:07 PM8/22/11
to web2py-d...@googlegroups.com
yes/ rails that that. 

--
mail from:GoogleGroups "web2py-developers" mailing list
make speech: web2py-d...@googlegroups.com
unsubscribe: web2py-develop...@googlegroups.com
details : http://groups.google.com/group/web2py-developers
the project: http://code.google.com/p/web2py/
official : http://www.web2py.com/

Chris Steel

unread,
Aug 22, 2011, 11:32:26 PM8/22/11
to web2py-d...@googlegroups.com
+1

That is something I have wished for from time to time if I understand correctly? I think if something like the following labels worked it should work in all cases and in any language...

data
data

group
groups

goose
flock

...

--
mail from:GoogleGroups "web2py-developers" mailing list
make speech: web2py-d...@googlegroups.com
unsubscribe: web2py-develop...@googlegroups.com
details    : http://groups.google.com/group/web2py-developers
the project: http://code.google.com/p/web2py/
official    : http://www.web2py.com/



--
Christopher Steel

Voice of Access

Anthony

unread,
Aug 22, 2011, 11:44:24 PM8/22/11
to web2py-d...@googlegroups.com
Sounds good.

Massimo Di Pierro

unread,
Aug 22, 2011, 11:45:22 PM8/22/11
to web2py-d...@googlegroups.com
table._singular
table._plural

or

table._label_singular
table._label_plural

or other?

Anthony

unread,
Aug 22, 2011, 11:57:23 PM8/22/11
to web2py-d...@googlegroups.com
I don't feel strongly, but I think the latter -- it's longer but seems more clear.

On Monday, August 22, 2011 11:45:22 PM UTC-4, Massimo Di Pierro wrote:
table._singular
table._plural

or

table._label_singular
table._label_plural

or other?

On Aug 22, 2011, at 10:44 PM, Anthony wrote:

Sounds good.

On Monday, August 22, 2011 10:23:07 PM UTC-4, Massimo Di Pierro wrote:
yes/ rails that that. 

On Aug 22, 2011, at 9:21 PM, Anthony wrote:

Is the idea to use singular for create/view/edit and plural for the grid?

On Monday, August 22, 2011 12:13:49 PM UTC-4, Massimo Di Pierro wrote:
Should we have a

Table.label_singlar
Table.label_plural

?



--
mail from:GoogleGroups "web2py-developers" mailing list

Massimo Di Pierro

unread,
Aug 23, 2011, 12:02:52 AM8/23/11
to web2py-d...@googlegroups.com
How about the _. We have a policy that we do not want name conflict with possible field names but I always feel the underscore is horrible.

Should we have something like

table.META.xyz -> table._xyz

to make the syntax more clear. Does not have to be called "META", can be "ATTRIBUTES". could be lower case. or better should be a word that is not a python keyword but it is a reserved SQL keyword so it cannot be a field.
Reply all
Reply to author
Forward
0 new messages