Re: [web2py] Re: what's wrong with web2py.com homepage

2015-10-27 Thread Selman Kocael
yes. it is okey. 2015-10-28 8:48 GMT+02:00 黄祥 : > not sure but right now is back to normal again. > > best regards, > stifan > > On Wednesday, October 28, 2015 at 1:21:36 PM UTC+7, xmarx wrote: >> >> home page is like this for me right now: web2py.com >> >> [image: Satır içi resim 1] >> >> >> >>

[web2py] Re: what's wrong with web2py.com homepage

2015-10-27 Thread 黄祥
not sure but right now is back to normal again. best regards, stifan On Wednesday, October 28, 2015 at 1:21:36 PM UTC+7, xmarx wrote: > > home page is like this for me right now: web2py.com > > [image: Satır içi resim 1] > > > > > -- Resources: - http://web2py.com - http://web2py.com/book (Docu

[web2py] what's wrong with web2py.com homepage

2015-10-27 Thread Selman Kocael
home page is like this for me right now: web2py.com [image: Satır içi resim 1] -- 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

[web2py] how to find and reference field names in tables

2015-10-27 Thread Alex Glaros
is it possible to do something like this? For row in tables: # all the tables if row.field_name == 'last_name': # only tables with this field name query = row.organizationID == db.Organization.id #how to reference other fields in the located table? thanks, Alex Glaros -- Resourc

[web2py] Re: pass javascript value into sqlform

2015-10-27 Thread 黄祥
ah, my bad, the position order is not right in the views. e.g. correct *views/default/test.html* {{extend 'layout.html'}} {{=btn }} {{=DIV(_id='demo') }} {{=scr }} another example that work using javascript and form : controllers/default.py def again(): t_name = 'any_tbl' # just for more r

[web2py] Re: cannot disable automatic login after registration

2015-10-27 Thread 黄祥
thanks piere best regards, stifan On Monday, October 26, 2015 at 3:29:49 PM UTC+7, Pierre wrote: > > hi stifan, > > add this to db.py : > > auth.settings.extra_fields['auth_user']=[Field('geolat','float'), > Field('geolng','float')] > > db.auth_user._manua

[web2py] Re: Oracle drivers.

2015-10-27 Thread Michael Messmer
Ok more info. added this to a def and its a copy of code from 'line 1101' of web2py /gluon /*widget.py* : def about(): from

[web2py] Re: CMS WEB2PY

2015-10-27 Thread James Burke
I've posted the source code of my CMS on github: https://github.com/peregrinius/web2py-liscio I migrated it onto the latest version of web2py, but there is a change on the new version which means a menu items with children is no longer clickable link. I guess this is for the benefit of tablets?

Re: [web2py] DAL alternatives

2015-10-27 Thread António Ramos
pyDAL is the choice. But if i use it outside web2py i need an alternative http server/rest endpoint and something to auth clients. What do you suggest to add to pyDAL ? Regards António 2015-10-22 14:56 GMT+01:00 António Ramos : > I agree with you except for the "kept secret" because it keeps aw

[web2py] Re: parse_as_rest - filter GET request with parameters rather than patterns

2015-10-27 Thread Mamisoa Andriantafika
Thank you for your answer. Is there another way to make a rest scaffold service that work with vars in web2py? Le mardi 27 octobre 2015 13:56:43 UTC+1, Niphlod a écrit : > > parse_as_rest works exclusively with args, not vars. > > On Tuesday, October 27, 2015 at 1:20:03 AM UTC+1, Mamisoa Andrian

[web2py] Re: Smartgrid: get the ID of the just inserted row

2015-10-27 Thread Serge Bourgeois
Thanks! oncreate is working perfectly! Le mardi 27 octobre 2015 11:54:46 UTC+1, Serge Bourgeois a écrit : > > > When creating a new record with smartgrid, the the 'onvalidation' > function cannot give the form.vars.id is since the record is not created > yet. > I understand that the onvalidat

Re: [web2py] logged in user and auth.user_id=None

2015-10-27 Thread Richard Vézina
Can you show the code you change previous and the actual code? You may have erase something related to the auth... Richard On Tue, Oct 27, 2015 at 8:51 AM, Pierre wrote: > Hi, > > strange..I changed my application adding virtual fields and now it > seems like the authentification system is

[web2py] Re: parse_as_rest - filter GET request with parameters rather than patterns

2015-10-27 Thread Niphlod
parse_as_rest works exclusively with args, not vars. On Tuesday, October 27, 2015 at 1:20:03 AM UTC+1, Mamisoa Andriantafika wrote: > > > Hi, > > Is it possible to GET an answer with a setup restfull service with > parse_as_rest with: > > /rest/table_name?id=1 > > > > that is equivalent to the w

[web2py] Re: SQLFORM.grid: trigger edit when clicking anywhere on the row itself

2015-10-27 Thread Niphlod
without user_signature=False you can't edit record if the user isn't logged in. Anyway you don't need to fiddle with jquery: just render a hidden button with the link and the signature and then just use that as a reference to trigger the navigation to the edit form when the user clicks on the ta

[web2py] logged in user and auth.user_id=None

2015-10-27 Thread Pierre
Hi, strange..I changed my application adding virtual fields and now it seems like the authentification system is corrupted I can login and logout but auth.user_id is unavailable I login and type in the shell : print auth.user_id it says None auth.user.id gives an error if I go to the we

Re: [web2py] Re: CMS WEB2PY

2015-10-27 Thread James Burke
Thanks Selman. I have already begun work to put a version up on github. Hopefully I'll have something up tonight. On 27 Oct 2015 1:27 PM, "Selman Kocael" wrote: > it's nice. > > 2015-10-26 21:49 GMT+02:00 James Burke : > >> I created a CMS a few years ago now in web2py... It is fairly basic >> co

Re: [web2py] Re: CMS WEB2PY

2015-10-27 Thread Selman Kocael
it's nice. 2015-10-26 21:49 GMT+02:00 James Burke : > I created a CMS a few years ago now in web2py... It is fairly basic > compared to Carlos one. > > I have a test website for a client on GAE > > http://badevday-test.appspot.com/ > > to access the backend > > http://badevday-test.appspot.com/ad

Re: [web2py] Smartgrid: get the ID of the just inserted row

2015-10-27 Thread Vinicius Assef
Use the `oncreate` argument. -- Vinicius Assef On 27 October 2015 at 08:54, Serge Bourgeois wrote: > > When creating a new record with smartgrid, the the 'onvalidation' > function cannot give the form.vars.id is since the record is not created > yet. > I understand that the onvalidation pa

[web2py] Smartgrid: get the ID of the just inserted row

2015-10-27 Thread Serge Bourgeois
When creating a new record with smartgrid, the the 'onvalidation' function cannot give the form.vars.id is since the record is not created yet. I understand that the onvalidation para allow to control what happens before the form is accepted, but I confess I couldnt' find a kind of 'after_v

[web2py] Re: SQLFORM.grid: trigger edit when clicking anywhere on the row itself

2015-10-27 Thread Julian Sanchez
Yes, that's what I was generating via jQuery but I (wrongfully) thought that if the _signature argument was missing I would get an error message. But looks like if you have a user logged in the lack of _signature in the querystring doesn't trigger an error even if you don't specify 'user_signa

[web2py] Re: About execute sql statement

2015-10-27 Thread DucVa
Hi Anthony, Are you showing the *exact* code? That is simple code to understand easily. In my app, I use storeproceduce. Did you copy the exact application from one machine and move it to another, or are there any differences at all? My code is same in anywhere. "pass in fields". I don't know i