[web2py] Re: SQLFORM.grid change form vars

2016-03-14 Thread Anthony
You can use formargs, editargs, createargs, and viewargs to pass arguments to the SQLFORM calls for create/edit/view forms. You can also set the readable/writable attributes of individual fields to prevent them from being displayed in the forms. Anthony On Tuesday, March 15, 2016 at 1:10:48

[web2py] SQLFORM.grid change form vars

2016-03-14 Thread Vinyl Darkscratch-Kazotetsu
It doesn't seem like anyone else has run into this particular issue before. I have an SQLFORM grid that is allowing my staff members on our website to add links to their profile upon the crew page. An example is mine at https://www.nightwave.me/crew?member=VinylDarkscratch However, I found

[web2py] Re: Oracle Driver Not Available When web2py run from bash script

2016-03-14 Thread Ben Wolski
Yes, the path/user/versions were all the same. I figured out that even though the $DYLD_LIBRARY_PATH and $LD_LIBRARY_PATH environment variables are set correctly in an interactive bash terminal, a bash script cannot see those same variables. Something must be overwriting them, so now I'm just

[web2py] Re: restricting load calls with its html parent permission

2016-03-14 Thread Ben Lawrence
Thanks Anthony. It took me a while to get this to work. There were two things in my code that that made calling the LOAD return a "Not Authorized" 1. {{('message' in globals())}} at the top of the calling html file. I had to delete this. 2. LOAD(... ajax=False, user_signature=True) i.e. I

[web2py] Re: Update all languages not catching Markmin

2016-03-14 Thread Vinyl Darkscratch-Kazotetsu
Opened a ticket for this particular issue on GitHub at: https://github.com/web2py/web2py/issues/1206 On Sunday, March 13, 2016 at 6:05:08 PM UTC-7, Vinyl Darkscratch-Kazotetsu wrote: > > I tried both the most recent stable, and the trunk, though neither of them > have functioned, sadly. I'll

[web2py] Re: session always written if auth.user_groups is accessed

2016-03-14 Thread Anthony
Yes, got it now. Actually, it will happen in a controller as well if you run that code at the top level rather than inside a function (will also happen if you run the code in a view). It seems to be a general problem with saving dictionaries to the session, and it is triggered not only by

[web2py] Re: session always written if auth.user_groups is accessed

2016-03-14 Thread Alex
If the code (e.g. iterating user_groups) is in a controller everything is fine and the session file is not written. But just put this code if auth.user_id: for role in auth.user_groups.itervalues(): continue in db.py of the welcome app after auth.define_tables and the session file

[web2py] Re: How to do this? Obviously I need ajax but what's the exact syntax?

2016-03-14 Thread Leonel Câmara
Make a form with a hidden input and a submit button. Display all the images, add javascript so when one image is clicked it becomes "selected" and its id is added to the hidden input (for instance the hidden input can store the values comma separated). Submit the form and in your controller

[web2py] Re: session always written if auth.user_groups is accessed

2016-03-14 Thread Anthony
Interestingly, the following code does seem to trigger overwrites of the session file (though not consistently): temp = BEAUTIFY(session) Not sure what's going on there. Anthony On Monday, March 14, 2016 at 7:42:53 PM UTC-4, Anthony wrote: > > I'm on Windows with the same web2py and

[web2py] Re: session always written if auth.user_groups is accessed

2016-03-14 Thread Anthony
I'm on Windows with the same web2py and Python versions. On Monday, March 14, 2016 at 7:00:16 PM UTC-4, Alex wrote: > > I don't think a test app is that simple to create. It needs a db, > auth_user table, user entry with memberships, login form ... because the > issue only occurs if you're

[web2py] Re: session always written if auth.user_groups is accessed

2016-03-14 Thread Alex
I don't think a test app is that simple to create. It needs a db, auth_user table, user entry with memberships, login form ... because the issue only occurs if you're logged in. It is true that the pickled sessions are different after iterating the user_groups as confirmed by Anthony. Therefor

[web2py] Re: session always written if auth.user_groups is accessed

2016-03-14 Thread Niphlod
got that but trust /me and @Anthony, we're pretty accustomed with the code. I can't replicate and @Anthony seems neither. I'm on win, 2.7.9, and tested all stable releases from 2.6.1 to latest, and can't see the session change (i.e. the file being updated) while iterating user_groups. Something

[web2py] Re: session always written if auth.user_groups is accessed

2016-03-14 Thread Alex
On Monday, March 14, 2016 at 10:08:34 PM UTC+1, Anthony wrote: > > On Monday, March 14, 2016 at 4:14:42 PM UTC-4, Alex wrote: >> >> no, I don't have response.toolbar in my view. The issue should be >> reproducible with the code snippet above - assuming you are logged in and >> have a membership

[web2py] Re: session always written if auth.user_groups is accessed

2016-03-14 Thread Alex
web2py version 2.12.3 (the code for testing if the session has changed is the same in the current version), Python 2.7.5 and Windows. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: session always written if auth.user_groups is accessed

2016-03-14 Thread Anthony
Also, which version of web2py and Python, and which platform? On Monday, March 14, 2016 at 5:08:34 PM UTC-4, Anthony wrote: > > On Monday, March 14, 2016 at 4:14:42 PM UTC-4, Alex wrote: >> >> no, I don't have response.toolbar in my view. The issue should be >> reproducible with the code snippet

[web2py] Re: session always written if auth.user_groups is accessed

2016-03-14 Thread Niphlod
BTW: can't replicate myself either with your piece of code. On Monday, March 14, 2016 at 10:08:34 PM UTC+1, Anthony wrote: > > On Monday, March 14, 2016 at 4:14:42 PM UTC-4, Alex wrote: >> >> no, I don't have response.toolbar in my view. The issue should be >> reproducible with the code snippet

[web2py] Re: session always written if auth.user_groups is accessed

2016-03-14 Thread Anthony
On Monday, March 14, 2016 at 4:14:42 PM UTC-4, Alex wrote: > > no, I don't have response.toolbar in my view. The issue should be > reproducible with the code snippet above - assuming you are logged in and > have a membership (i.e. auth.user_groups has at least one item). > It's true that you

[web2py] Re: session always written if auth.user_groups is accessed

2016-03-14 Thread Niphlod
there's a bit of machinery added to sessions to see if it actually changed or not. Actually there was an issue (referenced in the commit log as 1524, which ATM I can't find) which was fixed by the whole shebang of sorting_pickler in 2.6.0 On Monday, March 14, 2016 at 9:14:42 PM UTC+1, Alex

[web2py] Re: session always written if auth.user_groups is accessed

2016-03-14 Thread Alex
no, I don't have response.toolbar in my view. The issue should be reproducible with the code snippet above - assuming you are logged in and have a membership (i.e. auth.user_groups has at least one item). -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] please help with new widgets

2016-03-14 Thread Dave S
On Monday, March 14, 2016 at 10:55:53 AM UTC-7, Dave S wrote: > > > > On Monday, March 14, 2016 at 12:41:03 AM UTC-7, José L. wrote: >> >> Massimo, I'm missing all the time a grid (sqlgrid) widget in these >> examples. Aren't you considering it, or it's just it's not needed as the >> style

Re: [web2py] please help with new widgets

2016-03-14 Thread Dave S
On Monday, March 14, 2016 at 12:41:03 AM UTC-7, José L. wrote: > > Massimo, I'm missing all the time a grid (sqlgrid) widget in these > examples. Aren't you considering it, or it's just it's not needed as the > style will apply and look good in the three cases? > Sqlgrid is one of the most

[web2py] Re: please help with new widgets

2016-03-14 Thread Dave S
On Sunday, March 13, 2016 at 10:49:36 PM UTC-7, Massimo Di Pierro wrote: > > can you point out the typos? > Nothing that's too bad, I guess. Under DATE/TIME/DATETIME WIDGET "complete decouple the UI represnetation" (not sure if that is 1 or 2 typos) Under NUMBER WIDGET "prevent you

[web2py] Re: please help with new widgets

2016-03-14 Thread villas
FYI I made a pull-request for learn.html On Monday, 14 March 2016 05:49:36 UTC, Massimo Di Pierro wrote: > > can you point out the typos? > > On Monday, 14 March 2016 00:45:05 UTC-5, Dave S wrote: >> >> >> >> On Sunday, March 13, 2016 at 5:06:46 PM UTC-7, Massimo Di Pierro wrote: >>> >>> can

Re: [web2py] please help with new widgets

2016-03-14 Thread Dave S
On Sunday, March 13, 2016 at 11:33:09 PM UTC-7, jjs0sbw wrote: > > I get a 404 on the: > > http://mdipierro.github.io/stupid.css/widgets/metarialize.html > > page.. > Typo in the link: (same document; Massimo's used 3

[web2py] Re: session always written if auth.user_groups is accessed

2016-03-14 Thread Anthony
Do you happen to have {{=response.toolbar()}} in your view, and if so, does the problem go away if you remove it? Anthony On Sunday, March 13, 2016 at 12:10:32 PM UTC-4, Alex wrote: > > I've found out that the session file is always updated > (Session._try_store_in_file) if I access

[web2py] Re: smartgrid example problem

2016-03-14 Thread JoeCodeswell
Hi all, I said i'd do some more research & here it is. The problem STILL PERSISTS on both my local Windows 10 & my joecodeswell.com Linux machines. I ALSO tested this with Opera. The Opera message said, "This webpage has a redirect loop: The webpage at

Re: [web2py] How good a combo of MongoDB and web2py as a restful backend for a vast mobile application?

2016-03-14 Thread António Ramos
for something like socket.io you have tornado https://www.youtube.com/watch?v=MUWy-NSrvNQ for mongodb, i suggest using postgresql . It has also support for json objects and is faster than even mongodb, they say... http://www.enterprisedb.com/nosql-for-enterprise But, i´m just a curious guy with

[web2py] Re: Testing

2016-03-14 Thread Leonel Câmara
Yeah this group is moderated so you have to wait until your messages are aproved the first few times until you're whitelisted. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Testing

2016-03-14 Thread Pierre Thibault
OK, it seems the problem is gone but Saturday I sent a few messages and they would not appear. I hope the problem is not generalized. Keep on an eye on this. Le lundi 14 mars 2016 12:49:58 UTC-4, Pierre Thibault a écrit : > > I do not see my messages in this group. > -- Resources: -

[web2py] Testing

2016-03-14 Thread Pierre Thibault
I do not see my messages in this group. -- 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 the

[web2py] How to do this? Obviously I need ajax but what's the exact syntax?

2016-03-14 Thread RAGHIB R
Suppose a db table named pictures has 100 pics uploaded (from id 1 to 100). I have another db table name 'choices' with one default field as auth.user_id and another as 'choice' . Now I show user the pics from that db from id 1 to 100 and let him click on any of those such that if he clicks

[web2py] Re: How to upload my app on gae through ubuntu stepwise?

2016-03-14 Thread Willoughby
http://web2py.com/books/default/chapter/29/13/deployment-recipes?search=GAE#Deploying-on-Google-App-Engine On Monday, March 14, 2016 at 12:16:36 PM UTC-4, RAGHIB R wrote: > > Please let me know the stepwise procedure. > -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] How to upload my app on gae through ubuntu stepwise?

2016-03-14 Thread RAGHIB R
Please let me know the stepwise procedure. -- 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 the

Re: [web2py] Re: About Cubaconf

2016-03-14 Thread Carlos Cesar Caballero Díaz
Yes. I should send it before, but I was too busy and I overlooked it (my bad)... If you can make it, please tell me, I can move things up with the organizators for making an invitation (https://www.treasury.gov/resource-center/sanctions/Programs/Documents/guidance_cuba_travel.pdf) as fast as

Re: [web2py] Re: About Cubaconf

2016-03-14 Thread Carlos Cesar Caballero Díaz
Yes. I should send it before, but I was too busy and I overlooked it (my bad)... Greetings. El 13/03/16 a las 01:48, Massimo Di Pierro escribió: It is a bit on a short notice. I would love to attend. I will check next week if I can make it work. -- Este mensaje le ha llegado mediante el

[web2py] Re: What are the platforms for free web hosting of web2py apps?

2016-03-14 Thread Mirek Zvolský
allwaysdata.com, but has only 10M place (about 6M after you install web2py-min), good ssh, cron, no problem to install everything. forpsi.com paid, but only 2$/month for full VM Dne neděle 21. února 2016 7:38:46 UTC+1 Rgb Aston napsal(a): > > Which one's the best to go for? > -- Resources: -

[web2py] Re: web2py tutorials?

2016-03-14 Thread Mirek Zvolský
web2py.com/book If you are from Czech/Slovak Rep. write to me: zvol...@seznam.cz Dne neděle 13. března 2016 6:42:05 UTC+1 Moreplavec napsal(a): > > Greetings, > > looking for good Python framework to help me with my simple web apps. I > tried other frameworks and their recommended tutorials,

[web2py] Re: Regarding "registration needs verification"

2016-03-14 Thread Najtsirk
Do you get this error at the firs login (when user registers) or at the first login? Because, if you get it after the first login, this is correct behaviour. The user has to verify registrations. On Friday, 11 March 2016 16:21:43 UTC+1, Ramchandra Sharma wrote: > > Although the user is

Re: [web2py] please help with new widgets

2016-03-14 Thread José Luis Redrejo
Massimo, I'm missing all the time a grid (sqlgrid) widget in these examples. Aren't you considering it, or it's just it's not needed as the style will apply and look good in the three cases? Sqlgrid is one of the most powerful objects in web2py forms and I think most of us could not live without

Re: [web2py] please help with new widgets

2016-03-14 Thread joseph simpson
Should be: http://mdipierro.github.io/stupid.css/widgets/materialize.html On Sun, Mar 13, 2016 at 11:32 PM, joseph simpson wrote: > I get a 404 on the: > > http://mdipierro.github.io/stupid.css/widgets/metarialize.html > > page.. > > Take care and have fun.. > > Joe > > On

Re: [web2py] please help with new widgets

2016-03-14 Thread joseph simpson
I get a 404 on the: http://mdipierro.github.io/stupid.css/widgets/metarialize.html page.. Take care and have fun.. Joe On Sun, Mar 13, 2016 at 5:06 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > can somebody help me with this little project? > >

[web2py] Re: please help with new widgets

2016-03-14 Thread xmarx
in mdipierro.github.io/stupid.css/widgets/index.html line 32: (chrome view source: view-source:http://mdipierro.github.io/stupid.css/widgets/index.html ) should be: i am not expert js or css. this is all I can do. 14 Mart 2016 Pazartesi 02:06:46 UTC+2 tarihinde Massimo Di Pierro yazdı: > >