'exposes' and 'edit views' order in editor

29 views
Skip to first unread message

Gael Princivalle

unread,
May 8, 2015, 4:07:50 AM5/8/15
to web...@googlegroups.com
Hello.

When I open in the editor a controller, at the top controller functions are listed in 'exposes' and 'edit views'.
I don't understand which is the order criteria for these lists.
brands, user, news, index
Is there a way to have these lists in an alphabetic order?
brands, index, news, user

Thanks.

Niphlod

unread,
May 8, 2015, 7:24:14 AM5/8/15
to web...@googlegroups.com
hopefully they either are alphabetical or in the same order they're defined :D ... some logic should be there :P

Gael Princivalle

unread,
May 8, 2015, 8:49:47 AM5/8/15
to web...@googlegroups.com
Ok for 'exposes' they are in the order they are define.
And for 'edit views' ?

Niphlod

unread,
May 8, 2015, 9:08:57 AM5/8/15
to web...@googlegroups.com
views are alphabetical.

Gael Princivalle

unread,
May 8, 2015, 9:18:52 AM5/8/15
to web...@googlegroups.com
So I have to check my alphabet knowledge, here is how my views are displayed in the editor:
 fuzz, googleaf365ee20ab65216, user, news, ordine_verifica, fattoria_didattica, contatti, test, attivita_fattoria_didattica, carrello, chi_siamo, index, test2, ordine_indirizzo, in_progress, prodotto, prodotti, brands

I have two web2py 2.9.12 installations, both with five applications, and the view order is the same.

Gael Princivalle

unread,
May 8, 2015, 9:18:55 AM5/8/15
to web...@googlegroups.com
So I have to check my alphabet knowledge, here is how my views are displayed in the editor:
 fuzz, googleaf365ee20ab65216, user, news, ordine_verifica, fattoria_didattica, contatti, test, attivita_fattoria_didattica, carrello, chi_siamo, index, test2, ordine_indirizzo, in_progress, prodotto, prodotti, brands

I have two web2py 2.9.12 installations, both with five applications, and the view order is the same.



----------------------
Gael Princivalle

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/eY7g2apCK7w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Niphlod

unread,
May 8, 2015, 11:07:10 AM5/8/15
to web...@googlegroups.com
the order comes from glob.glob() . from what I recalled, it returned alphabetically sorted results. 
Seems instead - checking the docs - that "The list is in arbitrary order" . sorry for the misdirection.

Gael Princivalle

unread,
May 8, 2015, 11:28:55 AM5/8/15
to web...@googlegroups.com
Is it possible in new web2py versions to change it to alphabetical?

Niphlod

unread,
May 8, 2015, 3:43:25 PM5/8/15
to web...@googlegroups.com
for both functions and views or only for views ?

Gael Princivalle

unread,
May 8, 2015, 3:57:12 PM5/8/15
to web...@googlegroups.com
Well for my personal advice, alphabetic order is the universal way to organize informations.
I use only view links, so for my personal use only views, but I think it's useful having also functions in alphabetic order. 


----------------------
Gael Princivalle

Niphlod

unread,
May 8, 2015, 4:00:02 PM5/8/15
to web...@googlegroups.com
that was exactly what I was thinking about: same order for both, and alphabetical is kinda universal.

Won't be a long-standing issue but right now I need to go to bed. Can you please raise an issue on github ? Just to keep it tracked.

Reply all
Reply to author
Forward
0 new messages