[web2py] Re: Modifying "A" helper callback behavior

2015-02-23 Thread 黄祥
i found solution from anthony in another discussion : {{=XML(A(...).xml().replace(' data-w2p_disable_with="default"', '') ) }} it strange in 2.9.11 the same code running well but not in 2.9.12 best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] Re: web2py on Microsoft Azure PAAS

2015-02-23 Thread Kiran Subbaraman
You have probably already come across this post: https://groups.google.com/d/msg/web2py/pkVKXkui7qI/vdKK4YxptZAJ. On Tuesday, February 10, 2015 at 5:33:15 PM UTC+5:30, Gary Cowell wrote: > > Anyone any experience on deploying a web2py app on Microsoft Azure Web? > > Can it be done? > -- Resourc

[web2py] SQLFORM.grid without database IO

2015-02-23 Thread Martin Weissenboeck
There is a paragraph in the book called "SQLFORM without database IO". Is it possible to do the same with a grid? Regards, Martin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/l

[web2py] Re: Creating my own layout.html, but errors not displaying

2015-02-23 Thread Tom Campbell
Ugh, I thought I copyedited. For clarification: On Monday, February 23, 2015 at 3:58:52 PM UTC-8, the idiot Tom Campbell wrote: > > Creating my own layout.html based on the AdminLTE theme > . It works, but errors are not > being displayed. For example,

[web2py] wiki_editor group added to impersonated account

2015-02-23 Thread Calvin
Hi When I access the wiki function with an impersonated account, the impersonated account automatically gets added to the wiki_editor group at least for the duration of the account being impersonated. Is this the desired behaviour? Thanks Calvin -- Resources: - http://web2py.com - http://web

[web2py] Re: printing from controller

2015-02-23 Thread Dave S
On Monday, February 23, 2015 at 4:21:14 PM UTC-8, Abhijit Chatterjee wrote: > > I cant seem to get the debugger to work except 3rd party ide. Does anyone > know how to print out a variable from the controler (from default.py). I > asked cuz the print function seem dont work there. Python's "p

[web2py] Re: Manual--image blog--groups--manager & members

2015-02-23 Thread Dave S
On Monday, February 23, 2015 at 3:16:47 AM UTC-8, dangne...@juno.com wrote: > > Instructions in the manual chapter called "Overview": > > "Using appadmin create a group "manager" and make some users members of > the group. They will be able to access > > http://127.0.0.1:8000/images/default/man

[web2py] printing from controller

2015-02-23 Thread Abhijit Chatterjee
I cant seem to get the debugger to work except 3rd party ide. Does anyone know how to print out a variable from the controler (from default.py). I asked cuz the print function seem dont work there. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/we

[web2py] Re: can't type forward slash in editor

2015-02-23 Thread Dave S
On Saturday, February 21, 2015 at 1:14:45 AM UTC-8, dangne...@juno.com wrote: [...] > > Side Note: I just watched a series of 5 videos that somebody put on you > tube, a presentation Massimo did a while back, and I am happy that I will > be able to copy what he did and tweak it to adapt it to

[web2py] Beginner Dropbox question

2015-02-23 Thread Alex Glaros
Am writing app for government agencies to post meeting info for public transparency. Agendas and meeting materials will eventually be many and be large docs, e.g., PowerPoint presentations, graphics, etc, so would like to use Dropbox instead of my app, which is on PythonAnywere. Is it possible

[web2py] Creating my own layout.html, but errors not displaying

2015-02-23 Thread Tom Campbell
Creating my own layout.html based on the AdminLTE theme . It works, but errors are not being displayed. For example, I have a notnull*=*True validation rule in the 'description' field of the model model but if a description isn't displayed, not error

[web2py] manually update password

2015-02-23 Thread José Eloy
Hello! I have an auth_user form with extra fields. To update a record I use a SQLFORM and the update command of DAL instead of the standard update way of SQLFORM. How can I manually update the password field? I receive the actual password from request.vars.password, but I don't know how to save

[web2py] Re: importing .csv to create DAL object

2015-02-23 Thread Niphlod
you can try to extract models using https://github.com/web2py/web2py/blob/master/scripts/extract_mysql_models.py . To load the data, it'll be best to do the work table by table. On Monday, February 23, 2015 at 9:44:27 PM UTC+1, Abhijit Chatterjee wrote: > > If I have an old site n mysql databas

[web2py] Re: Header for selectable

2015-02-23 Thread Oliver Holloway
Did you find how to do this? I too would like to have a header for the selectable column. Shown below is how I'm defining it. I know how to use headers to control table field headers, but I have failed to find how to control the checkbox column header. If there's no way to do that, no worries,

[web2py] importing .csv to create DAL object

2015-02-23 Thread Abhijit Chatterjee
If I have an old site n mysql database. N want to convert to web2py, rather than typing up the entire Database from scratch, is there a way that I export the existing mysql database to a csv n then import that .csv file to DAL to create the database automatically? -- Resources: - http://web2

[web2py] Re: no email field in auth_user

2015-02-23 Thread José Eloy
Thanks guys for all the help. I checked my program again and now it works: db2.auth_user.email.readable = False db2.auth_user.email.writable = False were the solution. The email field is not shown as I did wish. My fault, I was checking the password field! (sorry, I was confused). Regards. --

[web2py] on CheckboxesWidget styles

2015-02-23 Thread 'DenesL' via web2py-users
Hello all, while using the checkboxes widget I noticed that for style='ul' it generates a bunch of UL elements each with a single LI, instead of the single UL with a bunch of nested LI elements that I expected to see. Changing the ul wrapper from (DIV, UL, LI) to (UL, LI, TAG[''] ) would solve

[web2py] Re: sessions2trash.py

2015-02-23 Thread Niphlod
now it's in trunk, so next releases will be fine. On Monday, February 23, 2015 at 10:31:09 AM UTC+1, Annet wrote: > > Hi Niphlod, > > Thanks for the time and effort you put into fixing this issue, the dropbox > script does clean > up de folder structure. > > Best, > > Annet > -- Resources: - h

Re: [web2py] Re: Session folder size

2015-02-23 Thread Niphlod
BTW, the admin interface "cleanup" process is just something people would hit before packing the app. It just zaps errors, sessions and cache folders. it's not meant to be run on production. @omichiba: perfect. I run such a task weekly in the prod env (10-15 apps, 200 users) and that's more th

[web2py] Manual--image blog--groups--manager & members

2015-02-23 Thread dangnearhere
Instructions in the manual chapter called "Overview": "Using appadmin create a group "manager" and make some users members of the group. They will be able to access http://127.0.0.1:8000/images/default/manage"; I don't know what this means. I can get to appadmin: http://127.0.0.1:8000/images

[web2py] Re: parse a json response in views

2015-02-23 Thread CC J
Thanks I think I found the solution with :eval: onchange="jQuery(gaslists).empty();ajax('prices', ['station_name'], ':eval' );" and in the controller return "jQuery('#target').html(%s);" % repr(str(row.db_ulp_price)) I must read read read the docs On Sunday, February 22, 2015 at 3:33:09 PM UTC

[web2py] Re: Create many similar forms on one page

2015-02-23 Thread niki
This is really helpful. i can easily post for a single section. However for multiple sections, i am still trying to figure it out. Thanks so much. On Monday, 23 February 2015 15:24:19 UTC+2, 黄祥 wrote: > > perhaps you can use load component > ref: > > http://www.web2py.com/books/default/chapter/29

[web2py] Re: Save variable in view from controllers and models for further math and other manipulation

2015-02-23 Thread Massimo Di Pierro
In your case categores is a DAL rows object. there are many things you can do with in the view: 1) embed it {{=categories}} 2) loop over the Rows {{for row in categories:}} {{=row.name}} {{pass}} 3) convert it into a json table var categories = {{=XML(categories.as_json())}}; 4) I under

[web2py] Re: Why to always digitally sign ajax calls?

2015-02-23 Thread Massimo Di Pierro
It is not about what is more secure. the serve a different purpose. The signature makes sure the action that generate the signature is called before the action that checks the signature and prevents changes in the get parameters. On Sunday, 22 February 2015 23:26:17 UTC-6, Robin Manoli wrote: >

[web2py] Re: IMPORTANT - WEB2PY CONSULTING

2015-02-23 Thread Bruno Codeman
Massimo, please add my company: Name: Sonne Tech Website: www.sonnetech.com.br Country: Brazil. Thanks! Em domingo, 15 de fevereiro de 2015 20:21:36 UTC-2, Massimo Di Pierro escreveu: > > We need to update the list of companies that provide web2py consulting. > This list is obsolete: > > http:

[web2py] Re: parse a json response in views

2015-02-23 Thread Massimo Di Pierro
Does this help? onchange="jQuery(gaslists).empty();jQuery.getJSON('prices', jQuery('[name=station_name]').val(), function(data){alert(data.diesel);});" On Saturday, 21 February 2015 23:33:09 UTC-6, CC J wrote: > > Hi > > I submit a request to the web2py server > > onchange="jQuery(gaslists).empt

[web2py] Re: how to change grid name?

2015-02-23 Thread Massimo Di Pierro
No you have to specify plural in the table. No other way. On Saturday, 21 February 2015 15:40:37 UTC-6, Oliver Holloway wrote: > > Thanks! Now that I've build my own view, the "grid" variable is no longer > displaying. > > The pluralized table name is still showing, so I did some reading, and >

Re: [web2py] Re: Session folder size

2015-02-23 Thread Omi Chiba
Yes, I know it's available on admin but trying to automate the process. I'm running web2py on windows so it sounds like I can create a .bat file to run the sessions2trash.py command. On Monday, February 23, 2015 at 7:28:13 AM UTC-6, 黄祥 wrote: > > i think web2py admin already have it when you pr

[web2py] Re: Modifying "A" helper callback behavior

2015-02-23 Thread 黄祥
hi, i face the same problem too in web2py 2.9.12-stable in web2py 2.9.11-stable didn't found the problem the button is not back after the user clicked, please see attached file. the left square is appear when clicked more than 1 times. the right square is appear when clicked one time. any idea

[web2py] Search for fields with multiple values (list:string) in SQLFORM?

2015-02-23 Thread LoveWeb2py
Hello everyone, I really enjoy using the SQLFORM, however I've noticed when I convert fields to list:string I can no longer search by those specific fields. Is this something I could fix in SQLFORM? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/

Re: [web2py] Re: Session folder size

2015-02-23 Thread 黄祥
i think web2py admin already have it when you press the clean on admin interface it said : cache, errors and sessions cleaned best regards, stifan On Monday, February 23, 2015 at 4:50:44 PM UTC+7, Ramos wrote: > > there should be an admin button to clean that session garbage, as we > already ha

[web2py] Re: Create many similar forms on one page

2015-02-23 Thread 黄祥
perhaps you can use load component ref: http://www.web2py.com/books/default/chapter/29/12/components-and-plugins#LOAD best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py

[web2py] Create many similar forms on one page

2015-02-23 Thread niki
hi everybody I am trying to figure out how to create many forms that are similar on one page. The idea is to have people comment on various sections of a page with text. This means that, each section has its comments. The forms are the same with a comment field and a submit button. This is the

Re: [web2py] Re: Session folder size

2015-02-23 Thread António Ramos
there should be an admin button to clean that session garbage, as we already have to clean errors. 2015-02-23 9:33 GMT+00:00 Annet : > Hi, > > I had an issue with the sessions2trash.py file which Niphlod fixed last > week. > The sessions2trash.py script posted here works: > > https://www.dropbox.

[web2py] Re: Session folder size

2015-02-23 Thread Annet
Hi, I had an issue with the sessions2trash.py file which Niphlod fixed last week. The sessions2trash.py script posted here works: https://www.dropbox.com/s/4080g390sa5byw6/sessions2trash.py?dl=0 Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] PDF view - set printing page size

2015-02-23 Thread José Luis Redrejo
I think this could be useful for you: https://github.com/jredrejo/Labels-for-pyfpdf 2015-02-22 9:50 GMT+01:00 Pavel : > > Hallo, > I am making simple app for registrations and printing ID cards. I have > simple pdf view. For instance: > > {{ > import os > from gluon.contrib.generics import pdf_fr

[web2py] Re: sessions2trash.py

2015-02-23 Thread Annet
Hi Niphlod, Thanks for the time and effort you put into fixing this issue, the dropbox script does clean up de folder structure. Best, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/w