[web2py] Re: Web2py - Front-end performance optimization tutorial

2015-09-17 Thread pang
> > I also noticed in the source code that puting main.css.gz in the same > directory as main.css will automatically serve the gzipped version with the > correct headers : that's pretty sweet. > I didn't know about it before though (it isn't documented), so I built my > own gzip management. >

[web2py] Re: Why do i have to submit the form twice in order to work?

2015-09-17 Thread Alfonso Serra
Thanks Annet, ill definitely will try, I was trying to get away without having to write formstyles, since i need control on the html output and it was a single post at a time. I thought SQLFORM would be enough. but it isnt, ive hacked form.custom.end so it renders the right id and formname

[web2py] Re: Adding class='hidden' creates an element style='display: none'

2015-09-17 Thread Stuart Rolinson
Perhaps breaks was a little strong, I should say it conflict with Bootstrap's .hidden class and causes problems with javascript being used to show and hide sections. Thanks, Stuart On Wednesday, September 16, 2015 at 10:02:23 AM UTC-7, Anthony wrote: > > What Bootstrap functionality is broken

[web2py] Re: Why do i have to submit the form twice in order to work?

2015-09-17 Thread Alfonso Serra
And this does work, which is very bad. def example2(): rows = db(db.agencias).select() #create as many forms as rows forms = dict() for row in rows: forms[row.id] = SQLFORM(db.agencias, row.id).process() fields = forms.itervalues().next().fields if

[web2py] Re: Adding class='hidden' creates an element style='display: none'

2015-09-17 Thread Stuart Rolinson
That got it , Thanks. On Wednesday, September 16, 2015 at 10:02:23 AM UTC-7, Anthony wrote: > > What Bootstrap functionality is broken by this? > > On Wednesday, September 16, 2015 at 9:42:55 AM UTC-4, Stuart Rolinson > wrote: >> >> When I create an item directly in the html form with a class

[web2py] Re: Adding class='hidden' creates an element style='display: none'

2015-09-17 Thread Stuart Rolinson
That got it , Thanks. On Wednesday, September 16, 2015 at 6:42:55 AM UTC-7, Stuart Rolinson wrote: > > When I create an item directly in the html form with a class ='hidden' for > use with bootstrap, web2py appears to be rendering an additional element > style "display:none" which stops

Re: [web2py] Re: Initialize vars

2015-09-17 Thread Manuele Pesenti
Il 16/09/15 19:41, lenin.marti...@metamaxzone.com ha scritto: > Omg thanks problem solved. Can you give me more documentation about that. http://web2py.com/books/default/chapter/29/04/the-core#request and maybe you would like to read also...

[web2py] Re: Adding class='hidden' creates an element style='display: none'

2015-09-17 Thread Stuart Rolinson
That got it, thank you. On Wednesday, September 16, 2015 at 8:25:18 AM UTC-7, Leonel Câmara wrote: > > web2py.js does that, I think it's because of appadmin using class hidden > and since appadmin uses your app's layout it may not have the css saying > it's supposed to be display:none, but to

[web2py] Re: Is it possible to have this type of multiple requires in db.py?

2015-09-17 Thread Leonel Câmara
Yes its wrong I'm sorry I didn't notice it. You got the order wrong. It should be: Field('organizationID','reference Organization', requires = IS_IN_DB(db. Organization.organizationPrimaryTypeID == 1, 'Organization.id')), -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] Re: web2py SPA(single page application)

2015-09-17 Thread António Ramos
I get it you meant "Changing" right ? this is the way Vue.config.delimiters = ['(%', '%)']; 2015-09-16 23:27 GMT+01:00 António Ramos : > Massimo, can you explain what it "chancing the triple delimiters" ? > > i used web2py with vuejs without a problem... > > > for example

Re: [web2py] Re: SQLform grid custom function for delete

2015-09-17 Thread Vid Ogris
I am trying with something like this links = [lambda row: A('',_class='glyphicon glyphicon glyphicon-remove-sign', _href =URL('settings','deactivate', vars=dict(s = '2')))] But I cannot send vars to my controller function I also tried with callback() Any idea why? I need to send id of the

[web2py] Re: Self-referencing tables and queries

2015-09-17 Thread Carla Raquel
*So what? You should future proof the app. Some day there might be extensions in India or something.* Actually, the extensions are internal to the company, either phone numbers or mobile numbers, so your scenario won't ever apply. *Do you mean the extensions of the persons he supervises?*

Re: [web2py] Re: Self-referencing tables and queries

2015-09-17 Thread António Ramos
+1 *There's no need for an extension to have a supervisor, because the supervisor is already stored in Person. !!!* 2015-09-17 11:10 GMT+01:00 Carla Raquel : > *So what? You should future proof the app. Some day there might be > extensions in India or something.* > >

[web2py] Re: Self-referencing tables and queries

2015-09-17 Thread Leonel Câmara
> Actually, the extensions are internal to the company, either phone numbers or mobile numbers, so your scenario won't ever apply. Fine, I disagree with this assumption but I'm not your client. > Conclusion: Just the Supervisor extensions Well this is very easy, the Supervisor is just a

Re: [web2py] Re: SQLform grid custom function for delete

2015-09-17 Thread Anthony
What do you mean you cannot send vars? Exactly what is happening? Please show more code. -- 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

[web2py] Re: Is it possible to have this type of multiple requires in db.py?

2015-09-17 Thread Anthony
On Thursday, September 17, 2015 at 3:08:31 AM UTC-4, Leonel Câmara wrote: > > Yes its wrong I'm sorry I didn't notice it. You got the order wrong. It > should be: > > Field('organizationID','reference Organization', requires = IS_IN_DB(db. > Organization.organizationPrimaryTypeID == 1,

[web2py] Re: Why do i have to submit the form twice in order to work?

2015-09-17 Thread Anthony
No need for all this -- you can still use the method I proposed, creating just a single form (and giving it an explicit name). As you build each form in the view, just include a hidden "id" field and set its value to row.id (no need to use the "hidden" argument to SQLFORM, as you will be adding

[web2py] Re: SQLFORM grid, adding buttons

2015-09-17 Thread Niphlod
"view" depends on the details=False argument "add record" on the create=False Its working exactly as requested :P -- 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

[web2py] Re: Is it possible to have this type of multiple requires in db.py?

2015-09-17 Thread Anthony
The first argument to IS_IN_DB can be either a DAL object (i.e., just "db") or a Set object (which is what you want). The second argument must be a field (either a field object or the name in 'tablename.fieldname' form) -- it cannot be a Query object, as you are using. So, you want:

[web2py] Re: Has anyone integrated user-driven multiprocessing?

2015-09-17 Thread Anthony
Niphlod can probably provide better advice regarding managing scheduler workers and system resources, but yes, you should be able to have a few workers running ready to handle incoming tasks. On Wednesday, September 16, 2015 at 6:11:08 PM UTC-4, Phillip wrote: > > Are you saying that if I start

[web2py] oparation on forms

2015-09-17 Thread zakaria danone
Hi, i'm new on web2py and i try to create a simple app for billing user will enter unit price and quantity and sum automati apper on form row1*row2 = sum cant someone help me thank's -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] SQLFORM grid, adding buttons

2015-09-17 Thread Ron Chatterjee
Is any reason that I don't see "add record" and "view" button with my sqlform.grid (like shown in the example here: http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM-grid)? When I use @auth.requires_login(). I do see the edit and delete button. # db.py

Re: [web2py] Re: web2py SPA(single page application)

2015-09-17 Thread António Ramos
I think you wont have that problem after 1.0 Unsafe delimiters for HTML interpolation can now be configured separately: Vue.config.unsafeDelimiters = ['{!!', '!!}'] Note in 1.0.0-alpha when you set Vue.config.delimiters, it will still implicitly update the unsafe delimiters following the

[web2py] Re: XML pickle/unpickle

2015-09-17 Thread Massimo Di Pierro
Weird. Can you open a ticket and I will test it asap? On Wednesday, 16 September 2015 13:31:40 UTC-5, Maxim wrote: > > > Why do you want comment it out anyway? >> > > This: > >> The reason is that is allows storing variables that contain XML('.') >> in sessions. That is useful to deal with

[web2py] Re: oparation on forms

2015-09-17 Thread 黄祥
perhaps you can take a look at web2py appliances about posonlinestore http://www.web2py.com/appliances https://github.com/mdipierro/web2py-appliances best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: SQLform grid custom function for delete

2015-09-17 Thread Dave S
On Thursday, September 17, 2015 at 3:55:48 AM UTC-7, Anthony wrote: > > What do you mean you cannot send vars? Exactly what is happening? Please > show more code. The snippet above looks lik he's trying to set vars within the URL helper inside the lambda. Is he trying to make a link that

[web2py] Re: oparation on forms

2015-09-17 Thread Dave S
On Thursday, September 17, 2015 at 8:03:13 AM UTC-7, zakaria danone wrote: > > Hi, > i'm new on web2py and i try to create a simple app for billing > user will enter unit price and quantity and sum automati apper > on form row1*row2 = sum > cant someone help me > thank's > Would a computed

[web2py] Re: Calling all Boulder, CO web2py users

2015-09-17 Thread Jim S
Can't commit til I hear the dates but am interested. -Jim On Thursday, September 17, 2015 at 2:33:26 PM UTC-5, weheh wrote: > > *** Please reply to this thread if you're interested in a Boulder, CO > web2py meetup. *** > > Hello Boulder web2py users. I organized a very well received web2py

Re: [web2py] Re: web2py SPA(single page application)

2015-09-17 Thread JorgeH
so, why is Vue better than Ractive? or viceversa... On Thursday, September 17, 2015 at 1:44:03 PM UTC-5, Ramos wrote: > > I think you wont have that problem after 1.0 > > > Unsafe delimiters for HTML interpolation can now be configured separately: > > Vue.config.unsafeDelimiters = ['{!!',

[web2py] Re: Has anyone integrated user-driven multiprocessing?

2015-09-17 Thread Niphlod
The basic concept of the scheduler is to have a process (or multiple ones) NOT managed by the webserver, that are ready to do some work when told to do so. Why ? 99% of the cases is composed by: - long-running computations that will incur in the webserver dropping the process for timeout -

[web2py] Re: Is it possible to have this type of multiple requires in db.py?

2015-09-17 Thread Alex Glaros
Thanks Leonel and Anthony, works great. is used in many places and has greatly improved my app. much appreciated, Alex -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: SQLFORM grid, adding buttons

2015-09-17 Thread Ron Chatterjee
Thank you. On Thursday, September 17, 2015 at 12:06:33 PM UTC-4, Niphlod wrote: > > "view" depends on the details=False argument > "add record" on the create=False > > Its working exactly as requested :P > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] SQLFORM.grid and ractive

2015-09-17 Thread weheh
Anybody ever try to get an SQLFORM.grid(...) to render within a ractive template? I'm having trouble getting it to work. SQLTABLE works OK, but grid seems to bundle a script, which causes ractive to choke. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Calling all Boulder, CO web2py users

2015-09-17 Thread weheh
*** Please reply to this thread if you're interested in a Boulder, CO web2py meetup. *** Hello Boulder web2py users. I organized a very well received web2py meetup in Berkeley, CA, recently and would like to repeat something like it in Boulder, CO. Massimo has committed to attend and give a

[web2py] Authenticate with Radius Server

2015-09-17 Thread Fabiano Almeida
Hi @ll! I have an pfSense server with FreeRadius. Can I log in web2py app with users from FreeRadius? How? thx! -- 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

Re: [web2py] Re: web2py SPA(single page application)

2015-09-17 Thread António Ramos
Im not saying better. I said favourite. The docs are very good. Never gave ractive a chance because the docs were not very appealing at first sight. Only my opinion. Em 17/09/2015 21:14, "JorgeH" escreveu: > so, why is Vue better than Ractive? > > or viceversa... > > On

Re: [web2py] Re: web2py SPA(single page application)

2015-09-17 Thread Massimo Di Pierro
In vue.js there are unsafe_delimiters and they change automatically when you set delimiters. So I chose delimiters to e '{%','%}' and it automatically changed unsafe_delimiters to '{{%','%}}' so it was conflicting with web2py delimiters {{.}}. On Thursday, 17 September 2015 03:25:43 UTC-5,

[web2py] Nginx proxy for Apache error

2015-09-17 Thread Nguyen Minh Tuan
Hi, I setup Web2py with Apache successfully, but when I setup a Nginx proxy for Apache server I get error : --- (getattr(): attribute name must be string) Traceback (most recent call last): File "C:\web2py\gluon\main.py", line 436, in wsgibase

[web2py] Re: Authenticate with Radius Server

2015-09-17 Thread Leonel Câmara
I have zero experience with Radius, however there's no reason you could not make your custom login_method using an appropriate python radius client (I'm sure there are modules for that in pypi) check gluon/contrib/login_methods for examples of custom logins. -- Resources: - http://web2py.com

[web2py] Re: XML pickle/unpickle

2015-09-17 Thread Maxim
I did yesterday, issue #1067. I think the solution may be to replace: 671 return marshal.loads(data) with 671 return XML(marshal.loads(data)) On Thursday, September 17, 2015 at 9:11:58 PM UTC+3, Massimo Di Pierro wrote: > > Weird. Can you open a ticket and I will test it asap? > >

[web2py] Re: Why do i have to submit the form twice in order to work?

2015-09-17 Thread Alfonso Serra
Hi Anthony. ye ive tried, tricked the view so it has unique form names but on submission, if i call process, it wont pass validation. Im probably doin it wrong but ive manage to get it working. Ive decided to make a video out of this, so i can explain the problems im having and how did i solve