[web2py] new version of printed book?

2011-08-29 Thread Gour-Gadadhara Dasa
Hello! The end of the month is approaching and although we're busy doing some amanda backups in order to safely return back to (arch(linux, we're wondering what's with the new version of printed web2py book? Sincerely, Gour -- “In the material world, conceptions of good and bad are all

Re: [web2py] Re: Mobile detector

2011-08-29 Thread Martin Weissenboeck
I tried: def mobile(): from gluon.contrib import user_agent_parser ua = user_agent_parser.detect(request.env.http_user_agent) if ua.dist.is_mobile: and i got: AttributeError: 'NoneType' object has no attribute 'is_mobile' Browsers: Opera 11.50, Safari 3.1.2 (1) What is wrong?

Re: [web2py] Re: testing scheduler in windows

2011-08-29 Thread António Ramos
Any directions to solve this issue? i´m installing another machine with windows 7 to try again. Em 24 de agosto de 2011 13:54, António Ramos ramstei...@gmail.comescreveu: s 2.6.5 32bits and Windows 7(64Bits)

Re: [web2py] is anybody using the new scheduler....

2011-08-29 Thread António Ramos
I tried, got an error and no one care. :( 2011/8/29 Massimo Di Pierro massimo.dipie...@gmail.com ... does it work for you? Pros? Cons? Errors? Did you stress test it?

Re: [web2py] new version of printed book?

2011-08-29 Thread António Ramos
Also, the pdf version should be free for the ones that bought the first version, like me! :) 2011/8/29 Gour-Gadadhara Dasa g...@atmarama.net Hello! The end of the month is approaching and although we're busy doing some amanda backups in order to safely return back to (arch(linux, we're

[web2py] off topic - Python tutorials

2011-08-29 Thread António Ramos
check this site,its free for viewing ! A lot of movie tutorials for python and other languages http://marakana.com/techtv/index.html

Re: [web2py] Re: Mobile detector

2011-08-29 Thread Angelo Compagnucci
Hi Martin, In trunk the correct syntax should be: from gluon.contrib import user_agent_parser ua = user_agent_parser.detect(request.env.http_user_agent) if ua.is_mobile: ... Or better: ua = request.user_agent() if ua.is_mobile: ... The mothod user_agent() search in session if the user_agent

[web2py] Re: Published my collection of plugins

2011-08-29 Thread peter
Thanks for quick bug fixes Are you considering adding pagination? Peter On Aug 29, 5:16 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I would definitively want to see multiline records in SQLFORM.grid. Is anybody interested in doing this? Massimo On Aug 28, 11:06 pm, kenji4569

Re: [web2py] Re: Mobile detector

2011-08-29 Thread Martin Weissenboeck
Hi Angelo, it works now, thanks! Any ideas about the second question? There have been a lot of proposals how to change every view from .html to .m.html if is_mobile is true. Now I am a little bit confused: what would be the best code following if ua.is_mobile...? 2011/8/29 Angelo

[web2py] Current trunk on Linux

2011-08-29 Thread peter
When I try running the current trunk on linux, I get the following error. (dp1 S'output' p2 S'' sS'layer' p3 S'Framework' p4 sS'code' p5 S'' sS'snapshot' p6 (dp7 sS'traceback' p8 S'Traceback (most recent call last):\n File /opt/web-apps/web2py/gluon/main.py, line 484, in wsgibase\n File

[web2py] Re: Current trunk on Linux

2011-08-29 Thread peter
I just realised that I did not restart web2py. This solved the problem Peter On Aug 29, 10:58 am, peter peterchutchin...@gmail.com wrote: When I try running the current trunk on linux, I get the following error. (dp1 S'output' p2 S'' sS'layer' p3 S'Framework' p4 sS'code' p5 S''

Re: [web2py] Re: Mobile detector

2011-08-29 Thread Angelo Compagnucci
Hi Maritn, In trunk you can now do: #only at the top of you controller from gluon.contrib import user_agent_parser @mobilize def index(): example action using the mobilizer decorator it is rendered by views/default/index.html or views/default/index.mobi depending if your browser

[web2py] Weird admin editing of views but ok on controllers

2011-08-29 Thread Noel Villamor
Just got a fresh clone from trunk. Am on Apache2+wsgi. When clicking the edit button of a view, I get the following at the browser resulting to a 404 Not Found. Notice the '%2F' which is supposed to be just '/'. https://.../admin/default/edit/welcome/views/default%2Findex.html When clicking

[web2py] Re: Lost with simple replace + db.select() result

2011-08-29 Thread Anthony
On Sunday, August 28, 2011 11:29:05 PM UTC-4, pbreit wrote: row.update_record is going to actually modify the text in the database (if that's what you want). Note, you can do row.update() if you just want to modify the current row object _without_ changing the record in the database.

[web2py] Re: Weird admin editing of views but ok on controllers

2011-08-29 Thread Anthony
Probably due to this recent fix: http://code.google.com/p/web2py/source/detail?r=c5f6a123b846d9c9c84e2ddbe21beb8691057dea On Monday, August 29, 2011 6:49:22 AM UTC-4, Noel Villamor wrote: Just got a fresh clone from trunk. Am on Apache2+wsgi. When clicking the edit button of a view, I get

[web2py] Re: Weird admin editing of views but ok on controllers

2011-08-29 Thread Noel Villamor
Hmmm ... I can verify this by reverting gluon/html.py to the 2011-08-25 version. What is the command for that in hg? Version 1.98.2 (2011-08-25 22:59:48) Version 1.98.2 (2011-08-26 07:44:22) Or perhaps I can just manually edit it. On Aug 29, 11:18 pm, Anthony abasta...@gmail.com

[web2py] Re: SQLFORM not handling hidden fields? Or do I have a bug?

2011-08-29 Thread Cliff
Not sue that would help. The insert goes into purchase_orders, not supplier_contacts. On Aug 26, 4:16 pm, Anthony abasta...@gmail.com wrote: Does it work if you set db.supplier_contacts.supplier_id.writable = True in the controller function? On Friday, August 26, 2011 11:12:31 AM

[web2py] Re: testing scheduler in windows

2011-08-29 Thread Massimo Di Pierro
Try start python and type: import platform On Aug 29, 3:43 am, António Ramos ramstei...@gmail.com wrote: Any directions to solve this issue? i´m installing another machine with windows 7 to try again. Em 24 de agosto de 2011 13:54, António Ramos ramstei...@gmail.comescreveu: s

[web2py] Re: new version of printed book?

2011-08-29 Thread Massimo Di Pierro
It is although the process is manual. You email me you purchase receipt and I email you a link to the pdf book. On Aug 29, 3:47 am, António Ramos ramstei...@gmail.com wrote: Also, the pdf version should be free for the ones that bought the first version, like me! :) 2011/8/29 Gour-Gadadhara

[web2py] Re: Published my collection of plugins

2011-08-29 Thread Massimo Di Pierro
SQLFORM.grid(query) SQLFORM.smartgrid(table) are replacements for SQLTABLE and crud. they have search, pagination, sorting, and lots more. Give them a try. On Aug 29, 4:40 am, peter peterchutchin...@gmail.com wrote: Thanks for quick bug fixes Are you considering adding pagination? Peter On

[web2py] Re: is anybody using the new scheduler....

2011-08-29 Thread Massimo Di Pierro
Sorry Ramos. The problem is that your error is not in the scheduler. It is in import platform a standard Python module. Something is wrong with your version of Python. On Aug 29, 3:44 am, António Ramos ramstei...@gmail.com wrote: I tried, got an error and no one care. :( 2011/8/29 Massimo Di

[web2py] Re: is anybody using the new scheduler....

2011-08-29 Thread Massimo Di Pierro
which questions? On Aug 29, 5:06 am, Martín Mulone mulone.mar...@gmail.com wrote: I'm on it. For me is working really nice, but I have some questions. Also I'm working in a plugin to admin the scheduler.- 2011/8/29 António Ramos ramstei...@gmail.com I tried, got an error and no one care.

[web2py] Re: Weird admin editing of views but ok on controllers

2011-08-29 Thread Noel Villamor
Anthony, your suspicion is confirmed. I reverted to the older gluon/ html.py and the '%2F' issue is gone. On Aug 29, 11:28 pm, Noel Villamor noe...@gmail.com wrote: Hmmm ... I can verify this by reverting gluon/html.py to the 2011-08-25 version. What is the command for that in hg?        

[web2py] Re: Weird admin editing of views but ok on controllers

2011-08-29 Thread Massimo Di Pierro
For now I have reverted that patch. It is backward incompatible and breaks things like this: URL('download',args='path/to/file') To the developers, let's discuss it on web2py-developers. massimo -- Forwarded message -- From: Anthony abasta...@gmail.com Date: Aug 29, 6:18 am

[web2py] Re: new version of printed book?

2011-08-29 Thread Gour-Gadadhara Dasa
On Mon, 29 Aug 2011 04:58:11 -0700 (PDT) Massimo Di Pierro massimo.dipie...@gmail.com wrote: It is although the process is manual. You email me you purchase receipt and I email you a link to the pdf book. I'd like to buy new printed edition and wonder when it will be available. Sincerely,

Re: [web2py] Re: is anybody using the new scheduler....

2011-08-29 Thread António Ramos
to use the trunk version Which version of python should i run in my pc? 2011/8/29 Massimo Di Pierro massimo.dipie...@gmail.com Sorry Ramos. The problem is that your error is not in the scheduler. It is in import platform a standard Python module. Something is wrong with your version of

Re: [web2py] Re: testing scheduler in windows

2011-08-29 Thread António Ramos
no error importing platform! I have python2.5 and 2.6 32 bits 2011/8/29 Massimo Di Pierro massimo.dipie...@gmail.com Try start python and type: import platform On Aug 29, 3:43 am, António Ramos ramstei...@gmail.com wrote: Any directions to solve this issue? i´m installing another

[web2py] Re: new version of printed book?

2011-08-29 Thread Massimo Di Pierro
Hopefully by the end of september. On Aug 29, 7:28 am, Gour-Gadadhara Dasa g...@atmarama.net wrote: On Mon, 29 Aug 2011 04:58:11 -0700 (PDT) Massimo Di Pierro massimo.dipie...@gmail.com wrote: It is although the process is manual. You email me you purchase receipt and I email you a link

[web2py] Re: testing scheduler in windows

2011-08-29 Thread Massimo Di Pierro
Can anybody else reproduce this error that Ramos is having on windows? http://web2py.googlegroups.com/attach/3a16ca7b8a2d7baa/Scheduler.jpg The error is clearly at import platform in the web2py code. Massimo On Aug 29, 8:35 am, António Ramos ramstei...@gmail.com wrote: no error importing

Re: [web2py] Re: is anybody using the new scheduler....

2011-08-29 Thread Martín Mulone
Can I suggest to pass a value to disable logging feature in the loop, I already have my own logging methods in the scripts, mixing is a really bad idea, and a headache. Also can't be customized. 2011/8/29 Massimo Di Pierro massimo.dipie...@gmail.com which questions? On Aug 29, 5:06 am, Martín

[web2py] Re: SQLFORM not handling hidden fields? Or do I have a bug?

2011-08-29 Thread DenesL
Cliff, please post the related dogs table model.

[web2py] Re: SQLFORM not handling hidden fields? Or do I have a bug?

2011-08-29 Thread Anthony
Did you show the correct controller code? Your form is define as a SQLTABLE (rather than SQLFORM), and the table argument is db.suppliers, not db.purchase_orders. Anthony On Monday, August 29, 2011 7:33:25 AM UTC-4, Cliff wrote: Not sue that would help. The insert goes into

[web2py] Re: Published my collection of plugins

2011-08-29 Thread Omi Chiba
It's just GREAT !! I love the Suggest Widget. On Aug 29, 7:00 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: SQLFORM.grid(query) SQLFORM.smartgrid(table) are replacements for SQLTABLE and crud. they have search, pagination, sorting, and lots more. Give them a try. On Aug 29, 4:40 

[web2py] natural language search in SQLFORM.grid and smartgrid

2011-08-29 Thread Massimo Di Pierro
A new feature in trunk allows natural language search in SQLFORM.grid and smartgrid for example given: db.define_table('person',Field('name')) form = SQLFORM.smartgrid(db.person) you can search for name is max name is Max person.name is Max person.name = Max person.name == Max name contains max

[web2py] Re: GAE select all does not iterate

2011-08-29 Thread howesc
like is not supported on GAE, and for your particular like clause there is no real work-around for that on GAE. there are some tricks for a couple of like cases mentioned on this thread here: http://stackoverflow.com/questions/47786/google-app-engine-is-it-possible-to-do-a-gql-like-query

Re: [web2py] natural language search in SQLFORM.grid and smartgrid

2011-08-29 Thread Bruno Rocha
I did not look in the source yet. But. Is it possible to support i18n? name contains m To name contém m name is equal or greater than To name é igual ou maior que Is there some way to have a dictionary of terms? (what if a field is named 'starts'? ) http://zerp.ly/rochacbruno Em 29/08/2011

[web2py] Re: natural language search in SQLFORM.grid and smartgrid

2011-08-29 Thread Massimo Di Pierro
If a field is named starts you can do starts starts with m supporting internationalization here would be possible, but a mess. I would not recommend it. I am not even sure full language in english is a good idea. On Aug 29, 10:41 am, Bruno Rocha rochacbr...@gmail.com wrote: I did not look in

[web2py] [ANNOUNCE] uWSGI 0.9.9

2011-08-29 Thread Roberto De Ioris
Tyrant, is available for highly-untrusted environments. This is the first release linkable as a shared library (will be the base for pypy support). Look at skel.c in source distribution for an example. * Changelog for 0.9.9 [20110829] - various spooler improvements - upload progress optimizations

[web2py] Jquerymobile plugin limit exceeded?

2011-08-29 Thread António Ramos
hello i´m creating an app in web2py for mobile devices i have an issue i have a view that needs to parse a list . This list can go up to 1300 rows of data! Sometimes the pages loads empty and i started to play with range values. {{extend 'plugin_jqmobile/layout.html'}} ul

[web2py] Re: new version of printed book?

2011-08-29 Thread Gour-Gadadhara Dasa
On Mon, 29 Aug 2011 06:36:55 -0700 (PDT) Massimo Di Pierro massimo.dipie...@gmail.com wrote: Hopefully by the end of september. OK. Thank you for the info. We'll be patient. ;) Sincerely, Gour -- “In the material world, conceptions of good and bad are all mental speculations…” (Sri

Re: [web2py] Re: natural language search in SQLFORM.grid and smartgrid

2011-08-29 Thread António Ramos
I think database administration should also have a natural language tool to update all/subset of record for example. 2011/8/29 Massimo Di Pierro massimo.dipie...@gmail.com If a field is named starts you can do starts starts with m supporting internationalization here would be possible, but

[web2py] Re: natural language search in SQLFORM.grid and smartgrid

2011-08-29 Thread Massimo Di Pierro
The medium term plan is replace the entire appadmin with a few lines of SQLFORM.smatgrid(...) smartgrid allows to register a callback to perform operations on selected rows (update, delete) but needs a little more work. On Aug 29, 11:45 am, António Ramos ramstei...@gmail.com wrote: I think

Re: [web2py] Re: Changed field name in table def, database OK, but getting key error [SOLVED]

2011-08-29 Thread Richard Vézina
On Thu, Aug 25, 2011 at 9:31 PM, Eric Scott erictransla...@gmail.comwrote: Perfect! This thread solved at least one major headache, and perhaps another even greater headache. Massimo, I'm embarrassed I had not tried grep. It worked. I found the string in the db_wizard_populate.py file. I

[web2py] Re: crud not updating

2011-08-29 Thread apple
emailed you a package anthony. Can't get much simpler than this. I don't get it. The second crud.update call is made with the same parameters, same session but gets a different result. CONTROLLER def onaccept(form): print(accepted) def test(): print(request.vars) print(request.args)

[web2py] Re: SQLFORM not handling hidden fields? Or do I have a bug?

2011-08-29 Thread Cliff
Anthony, Good catch. The form should be SQLFORM, the table should be db.purchase_orders. bangs head on desk On Aug 29, 10:18 am, Anthony abasta...@gmail.com wrote: Did you show the correct controller code? Your form is define as a SQLTABLE (rather than SQLFORM), and the table argument is

[web2py] Re: SQLFORM not handling hidden fields? Or do I have a bug?

2011-08-29 Thread Cliff
It would look something like this: db.define_table('dogs', Field('dog_name'), Field('dog_birthdate', 'date'), Field('dog_weight', 'integer'), Field('dog_owner', db.owner) ) db.dogs.dog_owner.requires=IS_IN_DB(db, db.dogs.id, '%(owner_name)s', zero=Choose an owner) Caveat: not

[web2py] Re: Is it safe to run to web2py instances on the same database?

2011-08-29 Thread pbreit
Hard to tell from your application description but sometimes it's better to implement inter-application communication, for example through an API or RPC.

[web2py] Re: SQLFORM not handling hidden fields? Or do I have a bug?

2011-08-29 Thread DenesL
On Aug 29, 1:22 pm, Cliff cjk...@gmail.com wrote: It would look something like this: db.define_table('dogs',     Field('dog_name'),     Field('dog_birthdate', 'date'),     Field('dog_weight', 'integer'),     Field('dog_owner', db.owner) ) db.dogs.dog_owner.requires=IS_IN_DB(db,

[web2py] Some powerTable questions

2011-08-29 Thread Pierre Thibault
Hello, I have a few question on the power table: - Can I make the columns re-sizable? - Can I display a column hierarchically? I want to display a little triangle or little + at the left of each item in a column so the user can unfold the item like if it was a folder containing other folders and

[web2py] Re: table, grid, smartgrid, getting better

2011-08-29 Thread Cliff
No need to do a fresh install. Why clobber all your test data? Check out one or more of the sqlite gui interfaces at this link: http://stackoverflow.com/questions/1507506/what-are-good-open-source-gui-sqlite-database-managers Then drop the column using the gui. On Aug 28, 9:51 am, Juan Tiger

[web2py] Howto change request.uri_language through URL function?

2011-08-29 Thread Alexander Cabezas
I want to change the application language through URL function, but this doesn't expect the lang parameter. I did some tests with these adresses http://127.0.0.1:8000/es-es/default/index and http://127.0.0.1:8000/fr-fr/default/index and it changed the application language due to gluon.rewrite.

[web2py] Say My Name Example not working, version 1.98.2

2011-08-29 Thread rami
I recently decided to try web2py and so I am going through the tutorials in Chapter 3. I have Version 1.98.2. When I got to the Say My Name Example, I followed the steps, but I found out that I have to add response.generic_patterns = ['*'] because I kept getting Invalid View. Ok, so in my default

[web2py] Re: table, grid, smartgrid, getting better

2011-08-29 Thread stephanl
Hi, I found a small bug: You can get to the edit form by clicking the 'Edit' button in one row of the grid. It calls this URL: http://127.0.0.1:8000/test/default/index/person/edit/person/1?_signature=... So far so good Using the view button in a row you can get to the non editable form of a

Re: [web2py] Some powerTable questions

2011-08-29 Thread Bruno Rocha
Datatables has resizeable feature. So you can do it with a bit of javascript. But there is not an API for that in plugin yet. PowerTable will be rewriten, may be using solidtable as base. Web2py now has too many table/grid options and I think we can just extend the existing best ones.

[web2py] Re: SQLFORM not handling hidden fields? Or do I have a bug?

2011-08-29 Thread Anthony
Does it insert the non-hidden fields, or is no record getting inserted at all? On Friday, August 26, 2011 5:43:15 AM UTC-4, Cliff wrote: I use SQLFORM something like this: fields = 'dog_name dog_weight dog_birtdate'.split(' ') hidden = {'dog_owner' : some_known_value} # We already know

[web2py] List widget issue when invalid form

2011-08-29 Thread rdmurphy
Hi everyone, Since it's my first post, I'd like to first say great framework to the whole team. I'm really enjoying using it. I think I've found a small bug in the handling of list fields in an invalid form. I have a list:string field and another required field. When there is only 1 input field

[web2py] Re: Some powerTable questions

2011-08-29 Thread Pierre Thibault
Thank you. So, I don't have data coming SQL. Would then recommend solidtable? On 29 août, 15:46, Bruno Rocha rochacbr...@gmail.com wrote: Datatables has resizeable feature. So you can do it with a bit of javascript. But there is not an API for that in plugin yet. PowerTable will be rewriten,

[web2py] Re: Say My Name Example not working, version 1.98.2

2011-08-29 Thread pbreit
Are the view files in views (incorrect) or views/default (correct)? You don't need response.generic_patterns = ['*'] when you are creating view files. You can put response.generic_patterns = ['*'] in db.py model file so that it applies to your whole app.

[web2py] Re: Say My Name Example not working, version 1.98.2

2011-08-29 Thread Omi Chiba
Rami, I'm using the same version and just follow the chapter but It works fine. It runs under Rocket WSGI web server comming with web2py. If you are using another web server, then you should check the configuration. Or it could be a typo somewhere. I will send you my app to your mail address. On

[web2py] Server side form validation

2011-08-29 Thread leftcase
Hi group, first time post! A question about server side form validation. I have been following the tutorials on the web2py website and I'm building a simple form like this in the controller: form=FORM(TABLE(TR(Username:,INPUT(_type=text,_name=username,requires=[IS_NOT_EMPTY(), IS_NOT_IN_DB(db,

[web2py] Re: Server side form validation

2011-08-29 Thread Massimo Di Pierro
Validation is always performed server side. if you use FORM(INPUT()) that each input gets its own requires=[..] if you use SQLFORM(table) than the requires are from the table.field.requires. Anyway, do not use FORM(...INPUT()...) but use SQLFORM.factory(...Field(...)...) It is

Re: [web2py] Re: Server side form validation

2011-08-29 Thread Chris Rowson
Thanks for the rapid reply Massimo, It is much appreciated. Chris On Aug 30, 2011 12:23 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Validation is always performed server side. if you use FORM(INPUT()) that each input gets its own requires=[..] if you use

Re: [web2py] Re: Some powerTable questions

2011-08-29 Thread Bruno Rocha
what is your data source? datatables can handle json and xml (but it is not implemented in the plugin, but can be done with JS), if you want a JSON based grid I recommend PowerGrid, another plugin I created. PowerGrid is based in JSON or PJSON, it comes with a default callback module, but you can

[web2py] Re: Some powerTable questions

2011-08-29 Thread Pierre Thibault
On 29 août, 20:26, Bruno Rocha rochacbr...@gmail.com wrote: what is your data source? I have XML data. datatables can handle json and xml (but it is not implemented in the plugin, but can be done with JS), if you want a JSON based grid I recommend PowerGrid, another plugin I created.

[web2py] Re: Published my collection of plugins

2011-08-29 Thread tomt
Hi, Thanks for the great contributions to web2py. I'm looking forward to trying them. I implemented web2py.plugin.elrte_widget.w2p and while it worked great with firefox, I had some problems using internet explorer. Specifically, the dropdown boxes, such as the colorpicker, disappear before I

[web2py] Re: crud not updating

2011-08-29 Thread Anthony
I think this might be a bug, but I haven't tracked it down yet. Could you please submit an issue on Google Code: http://code.google.com/p/web2py/issues/list Anthony On Monday, August 29, 2011 1:02:49 PM UTC-4, apple wrote: emailed you a package anthony. Can't get much simpler than this. I

[web2py] Re: crud not updating

2011-08-29 Thread Massimo Di Pierro
Can you try? crud.settings.detect_record_change = False SQLFORM has a mechanism to prevent two users from doing this: user 1) visualize and edit record user 2) visualize and edit record user 1) save changes user 2) save changes and override changes by user 1 in SQLFORM it is disabled by

[web2py] Some improvements in scheduler

2011-08-29 Thread Massimo Di Pierro
better locking system. Now heartbeat are adjusted automatically and dynamically (max 20 seconds apart).

[web2py] Nide browser IDE

2011-08-29 Thread pbreit
Spiffy browser IDE but appears to require Node.js: http://coreh.github.com/nide/

[web2py] Re: crud not updating

2011-08-29 Thread Massimo Di Pierro
can you also try replace form.accepts(): with form.process().accepted: I think of the latter as the new way of doing for processing. Massimo On Aug 29, 9:44 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Can you try? crud.settings.detect_record_change = False SQLFORM has a

[web2py] Re: crud not updating

2011-08-29 Thread Anthony
Yes, that is in fact the problem, but shouldn't you be able to make two edits to a record in a row without an intervening failure? It's not just that a failure message is missing -- the behavior seems wrong. Anthony On Monday, August 29, 2011 10:44:35 PM UTC-4, Massimo Di Pierro wrote: Can

Re: [web2py] Re: Some powerTable questions

2011-08-29 Thread Bruno Rocha
something like this: http://wijmo.com/Wijmo-Complete/samples/#tree|overview or may be this: http://wijmo.com/Wijmo-Complete/samples/#grid|grouping-and-aggregates (the column resizing you talk http://wijmo.com/Wijmo-Complete/samples/#grid|column-resizing)

[web2py] Re: Howto change request.uri_language through URL function?

2011-08-29 Thread Christopher Steel
So something like this: http://www.amnesty.org/fr/how-you-can-help and not this: http://voiceofaccess.org/init/default/index?_language=fr-ca ?

[web2py] Re: Howto change request.uri_language through URL function?

2011-08-29 Thread Massimo Di Pierro
The parametric router allows: routers = dict( # base router BASE = dict( default_application = app, ), app = dict( default_language = 'en', languages = ['en', 'it', 'pt', 'pt-br'], ), ) and than in the model you do: T.force(request.lang) Not clear

Re: [web2py] Re: Mobile detector

2011-08-29 Thread Bruno Rocha
I commented in Anthony notes, but I will replicate it here. --- I created my own mechanism for mobile detection, which I am using for a long time. So there is one thing I decided. It is better to prefix instead of suffix. so I named my views as mobile.index.html instead of index.mobi. why?

Re: [web2py] Re: Howto change request.uri_language through URL function?

2011-08-29 Thread Jonathan Lundell
On Aug 29, 2011, at 8:50 PM, Massimo Di Pierro wrote: The parametric router allows: routers = dict( # base router BASE = dict( default_application = app, ), app = dict( default_language = 'en', languages = ['en', 'it', 'pt', 'pt-br'], ), ) and

Re: [web2py] Re: Howto change request.uri_language through URL function?

2011-08-29 Thread Jonathan Lundell
On Aug 29, 2011, at 9:26 PM, Jonathan Lundell wrote: On Aug 29, 2011, at 8:50 PM, Massimo Di Pierro wrote: The parametric router allows: routers = dict( # base router BASE = dict( default_application = app, ), app = dict( default_language = 'en', languages

Re: [web2py] Re: Mobile detector

2011-08-29 Thread Anthony
Good point. Couldn't you also do something like index.mobi.html or index.html.mobi? I don't think these view names would necessarily have to be exposed as URLs -- they just need to be used server side to render the page appropriately. Anthony On Tuesday, August 30, 2011 12:01:53 AM UTC-4,