Re: [web2py] Re: Smartgrid layout question

2013-05-15 Thread fun man
Ovidio, I have a similar need, but not exactly an icon. I want to change the "file" link to reflect the original file name. I got too busy and haven't got enough time to research it. If anyone know how to or may point a direction for you or me, it will be great. On Mon, May 13, 2013 at 8:54 PM,

Re: [web2py] Re: Smartgrid layout question

2013-04-24 Thread fun man
sorry... i need some coffee. Typed the wrong name of table above. Case 1) - I still can't get demo_detail to be listed first. My smartgrid shows achievement first and then demo_detail. On Wed, Apr 24, 2013 at 10:59 PM, fun man wrote: > Thanks Cliff. > > I've tried a few

Re: [web2py] Re: Smartgrid layout question

2013-04-24 Thread fun man
Thanks Cliff. I've tried a few combination, and it didn't get to what I want. 1) linked_tables=['demo_detail','achievement'].sort(reverse=True) 2) linked_tables=dict(demo_detail=id,achievement='id') Case 1) - I still can't get achievement to listed first. My smartgrid shows achievement first and

Re: [web2py] Re: Return value from javascript to controller

2013-04-19 Thread fun man
Apologize everyone, and Niphlod, I forgot to restart my browser, and now the 2 values are consistent .. my bad for the disturbance. On Sat, Apr 20, 2013 at 9:16 AM, fun man wrote: > Hi Niphlod, > > def index(): > # when people first login, they will get their timezone s

Re: [web2py] Re: Return value from javascript to controller

2013-04-19 Thread fun man
> page, javascript detects the timezone and it is sent back to the same > controller function (in this case, "index"). > > Another way is to "hack it up" somewhere > > def index(): > if session.plugin_timezone_tz: > db.sometable.insert( > detecte

Re: [web2py] Re: Return value from javascript to controller

2013-04-19 Thread fun man
controller function (in this case, "index"). > > Another way is to "hack it up" somewhere > > def index(): > if session.plugin_timezone_tz: >db.sometable.insert( > detected_timezone=session.plugin_timezone_tz, user_id=auth.user_id) > > some_mess

Re: [web2py] Re: Return value from javascript to controller

2013-04-18 Thread fun man
unctions in the application. I am reading your plugin, and it will take me some time to really figure out what is going on inside fast_tz_detector()... Not sure why it didn't return the thing I want :-) On Thu, Apr 18, 2013 at 6:08 PM, fun man wrote: > Sorry Niphlod. I was on my pho

Re: [web2py] Re: Return value from javascript to controller

2013-04-18 Thread fun man
> without seeing the community's effort here. > > Thanks Niphlod, and everyone to create and support this. > > On 19 Apr, 2013, at 3:13, Niphlod wrote: > > packed an app with a few examples: might explain better how to deal with > timezones. > > On Thursday, April 1

Re: [web2py] Re: Return value from javascript to controller

2013-04-18 Thread fun man
and that that idea fits with your one ? > > > On Thursday, April 18, 2013 4:35:51 PM UTC+2, fun man wrote: > >> i am not using any specific language translation. It should be the >> default language. >> >> i also think that it is timezone issue, but not very sur

Re: [web2py] Re: Return value from javascript to controller

2013-04-18 Thread fun man
i am not using any specific language translation. It should be the default language. i also think that it is timezone issue, but not very sure how to do the normalization. The model i use is Field('modified_on', 'datetime'), I see that there is no timezone attached at the end. On Thu, Apr 18

Re: [web2py] Re: Return value from javascript to controller

2013-04-17 Thread fun man
On Wed, Apr 17, 2013 at 3:10 PM, Niphlod wrote: > that's exactly what I tested yesterday evening... can you please try to > strip out the next=URL('index') part ? > It's the only thing that is different. > > > On Wednesday, April 17, 2013 4:14:58 AM UTC+2, fun ma

Re: [web2py] Re: Return value from javascript to controller

2013-04-16 Thread fun man
Hi Niphlod, I need to trouble you again for your guidance. I've successfully copied the files. I've added a new application tz_test to test the plugin. This is my controller and there are some other scaffolding coded not included. import p