[web2py:33407] Upload test files into web-py not using form

2009-10-22 Thread Alessio
Hi, i have web2py application that manages images, it has a simple defined database with an upload field that refers to uploaded images. Thus i am able to store images inside the database using the web2py provided form. But for testing needings i have an action in my default controller that scans

[web2py:33514] Re: Upload test files into web-py not using form

2009-10-23 Thread Alessio
epo_path): >         for filename in files: >             path = os.path.join(root, filename) >             imgId = db.image.insert(file = db.image.file.store(open > (path,'rb'),filename)) > > On Oct 22, 5:02 am, Alessio wrote: > > > Hi, > > i have web2py application that

[web2py] change dropdown menu login

2016-05-12 Thread Alessio Varalta
Hi, I want to change the dropdown menu in the rigth corner of the web2py application. I don't want the text Login but a icon..I see that the code is imported with {{='auth' in globals() and auth.navbar('Welcome',mode='dropdown') or ''}} But where is defined this code? -- Reso

[web2py] Print break not working

2016-05-14 Thread Alessio Varalta
Hi, I have completed a web2py application for a customer..I have only one finish problem..I have a page where i have the landing page where i have a main-container and inside this there were 5 div..I want to call window.print(); for print these 5 div...So i have created media print css file a

[web2py] Problem save datetime

2016-05-18 Thread Alessio Varalta
Hi i have this table db.define_table('verbale', Field('partecipants',label=T('Partecipanti'),type="text",requires=IS_LENGTH(3000)), Field('date_verbale_start',label=T('Data inizio'),type="datetime",requires=IS_DATETIME('%Y-%m-%d %H:%M:%S')), Field('date_verbal

[web2py] Re: Problem save datetime

2016-05-20 Thread Alessio Varalta
I see the error..the define field i correct ..the error is in my controller :) resolved On Wednesday, 18 May 2016 20:54:56 UTC+2, Dave S wrote: > > > > On Wednesday, May 18, 2016 at 9:55:57 AM UTC-7, Alessio Varalta wrote: >> >> Hi i have this table >&g

[web2py] Re: I think I can make websites now with web2py but is there any scope for freelancing?

2016-05-24 Thread Alessio Varalta
I started to use web2py for a collaboration with public organisation that use web2py..After in these months I have realized my first web2py application for a client https://barometro.ethicalsoftware.net/coop...But in my region there isn't at this moment work like web2py developer, there is only

[web2py] bug web2py ticket json

2016-05-30 Thread Alessio Varalta
Hi, I notice a big problem with the ticket report when you use json. I have a controller where i take from the body the json with simple json and after parsing the body. The problem is that if there is an error the ticket reporting an error of decoding json in any cases...For example in my case

[web2py] Re: bug web2py ticket json

2016-06-08 Thread Alessio Varalta
Ok I make in these days On Saturday, 4 June 2016 17:47:34 UTC+2, Massimo Di Pierro wrote: > > Can you please open a ticket and provide a minimal example of a controller > to reproduce? > > > On Monday, 30 May 2016 04:15:41 UTC-5, Alessio Varalta wrote: >> >> Hi, I

[web2py] change the default applicaton of web2py

2016-09-11 Thread Alessio Varalta
Hi, I call my application with base_url+ name_application. With base_url web2py call welcome application, I want to change and with base_url i want to call my name_application. Where is the code to change? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://gith

[web2py] Re: change the default applicaton of web2py

2016-09-13 Thread Alessio Varalta
Very frendly works On Monday, 12 September 2016 08:36:26 UTC+2, Alessio Varalta wrote: > > Hi, I call my application with base_url+ name_application. > > With base_url web2py call welcome application, I want to change and with > base_url i want to call my name_application. Where

[web2py] Custom Login is correct like this?

2015-11-05 Thread Alessio Varalta
def user(): """ exposes: http:///[app]/default/user/login http:///[app]/default/user/logout http:///[app]/default/user/register http:///[app]/default/user/profile http:///[app]/default/user/retrieve_password http:///[app]/default/user/change_p

[web2py] () appadmin

2015-11-06 Thread Alessio Varalta
Hi I have two table and I don't understand because I received a error when I enter in appadmin/esercizio...I use sqlite and I try to download the Csv of esercizio table and the csv is correct..the application work fine, but when I try to enter esercizio I received this error(see below the table

[web2py] Admin plus plugin github page not found

2015-11-07 Thread Alessio Varalta
Hi, I see this plugin Admin plus http://www.web2pyslices.com/slice/show/1937/admin-plus that is also on download plugin of web2py but in both case there isn't a correct download. Where I can find this plugin? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://g

[web2py] Re: () appadmin

2015-11-07 Thread Alessio Varalta
Python manual for full > details. > > By the way, these lines are duplicated in your code > db.esercizio_consorzio.id.readable = False > db.esercizio_consorzio.id.writable = False > > maybe you want the second set to be > db.esercizio.id.readable = False > db.esercizio.id.wri

[web2py] Re: 2.12.1 is out

2015-11-08 Thread Alessio Varalta
Thanks for the work On Friday, 7 August 2015 18:59:13 UTC+2, Massimo Di Pierro wrote: > > Changelog: > > - security fix: Validate for open redirect everywhere, not just in login() > > - allow to pack invidual apps and selected files as packed exe files > > - allow bulk user registration with defau

Re: [web2py] Re: !! NEW ADMIN !!

2015-11-08 Thread Alessio Varalta
ad...@gmail.com and in the password/clave admin but the authentication is false and i don't understand On Saturday, 7 November 2015 14:08:47 UTC+1, samuel bonill wrote: > Download : > https://github.com/SamuelBonilla/admin_plus/blob/master/web2py.plugin.admin_plus.w2p?raw=true > El

Re: [web2py] Re: !! NEW ADMIN !!

2015-11-08 Thread Alessio Varalta
quot; in "127.0.0.1:8000/ > /appadmin/insert/db/auth_membership" > > 4. !! ready! Now you can log in... " 127.0.0.1:8000/ > /plugin_admin_plus/index" > > NOTE: is replaced by the name of your application > El nov 8, 2015 10:29 AM, "Ale

[web2py] Re: Admin plus plugin github page not found

2015-11-10 Thread Alessio Varalta
There also many problem in http://www.web2pyslices.com/..many plugin don't have the online demo and this is danger because the user can't work on a plugin for example 30 minutes only for see if is a good plugin or not On Saturday, 7 November 2015 11:51:00 UTC+1, Alessio Varalta wrote:

[web2py] Re: New Web2py Materialize CSS Welcome app scaffold

2015-11-18 Thread Alessio Varalta
Thanks for the work. Is good but I have doubt about the color of header,footer and the position of the text in the footer. On Friday, 13 November 2015 18:55:56 UTC+1, Mark Graves wrote: > > Hey everyone, > > I just put up a new web2py welcome scaffold app based on materializecss. > > The reposito

Re: [web2py] Re: web2py and python3

2015-11-19 Thread Alessio Varalta
I think that for the programmer is not so important the version..always if the last is not too old..Python 2.7 is not too old but the problem that i see is that there is a good guide and good forum..web2py have many good features, but the real problem that I find( I am a web2py developer from 5

[web2py] Re: how to custom the view sqlform.grid

2015-11-24 Thread Alessio Varalta
Hi, you can change your db file. For example set the attribute readable false if you want that this attribute don't appear in form On Wednesday, 25 November 2015 03:01:19 UTC+1, Laurent Lc wrote: > > > How do i do if i want to see some fields (and not all) when i click on show > thanks > -- Re

[web2py] Export grid in pdf

2015-11-30 Thread Alessio Varalta
Hi, I have a question about export pdf a Sqlform Grid. For me generate the pdf is not a problem I can use wkhtmltopdf, but I see that you can export the grid in csv format, html format ecc...Because not in pdf? I think is useful to create in the framework default function for this operation, I

[web2py] Install wkhtmltopdf in pythonanywhere

2015-12-01 Thread Alessio Varalta
Hi, I use pythonanywhere and have an application on it. This application use wkhtmltopdf, but how can I install wkhtmltopdf. on pythonanywhere You can't use the console because you don't have sudo privilege. I can see that if you go to Files section(pythonanywhere) you can upload folder or file

[web2py] Create Class that extends a model of the dal

2015-12-02 Thread Alessio Varalta
Hi, I want to assign specific function to a Model of the Dal for example I have the table layer_scheda and I want to add the method change_pos..For example in Java o Ruby we have a package with the model class where you can put the function inside the class in these case with Web2py? -- Resour

[web2py] Re: Create Class that extends a model of the dal

2015-12-02 Thread Alessio Varalta
For example there is the possibility to define the class model like Java/Ruby I see this document http://weppy.org/docs/0.1/dal -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/lis

[web2py] Re: Create Class that extends a model of the dal

2015-12-02 Thread Alessio Varalta
py/ceqq4JwkWi4/csn0kZfyPuwJ > (not documented in the book). > > Anthony > > On Wednesday, December 2, 2015 at 10:59:39 AM UTC-5, Alessio Varalta wrote: >> >> Hi, I want to assign specific function to a Model of the Dal for example >> I have the table layer_scheda and I want t

[web2py] Personalize order reading Model File

2015-12-04 Thread Alessio Varalta
I have a model with multiple files, my problem is that I have this file 1-model_layer_ruolo 2_model_layer_scheda 3_model_esercizio But web2py ignore the number and execute like first file 3_model_esercizio there is the possibility to define the order of reading? -- Resources: - http://web2py.c

[web2py] Problem define model class to model dal table no guide

2015-12-05 Thread Alessio Varalta
Hi, I have a problem..I have controller with too much code..So I want to use the logic of Java or Ruby. Have a class that represent the object of my database and implement function in this class and use this class in the Controller. The problem is that I try the VirtualField a part of web2py gu

[web2py] Re: Problem define model class to model dal table no guide

2015-12-05 Thread Alessio Varalta
"body": lambda row, value: markdown(value) } validators = { "title": IS_NOT_EMPTY(), "body": IS_NOT_EMPTY() } @computation('slug') def make_slug(self, row): # custom code to create the slug Web2py not? On Saturd

[web2py] Re: Create Class that extends a model of the dal

2015-12-05 Thread Alessio Varalta
ut this I think that any programmer have the need to put some code in a class that represent the table and class function for manipulate the table..For big project you can write all in a code or create many modules file with only function On Wednesday, 2 December 2015 17:20:25 UTC+1, Alessio Vara

[web2py] Re: Problem define model class to model dal table no guide

2015-12-06 Thread Alessio Varalta
('mytable', > ..., > Field.Method('change_name', lambda r, nome: r.mytable.update_record( > nome=nome))) > > db.mytable(1).change_name(nome='Alessio') > > Anyway, there are other ways to handle such things without resorting to > virtual fields or clas

[web2py] Re: web2py resources

2015-12-07 Thread Alessio Varalta
I think is helpful to report this pdf document in web2py overview becase for example the part of class don't exist in this moment on the site guide and for example I search this information in these days On Monday, 7 December 2015 02:34:40 UTC+1, Alfonso Serra wrote: > > No idea, i just know tha

[web2py] Re: Problem define model class to model dal table no guide

2015-12-07 Thread Alessio Varalta
AM UTC-5, Alessio Varalta wrote: >> >> This solution for me is not good. Ok in this case work but virtual field >> allows only simple operation on the single filed of a table. >> > > A virtual/method field can be as complex as you want it to be, and it does >

[web2py] Re: Problem define model class to model dal table no guide

2015-12-08 Thread Alessio Varalta
Thanks to all for the response :) On Monday, 7 December 2015 15:09:04 UTC+1, Anthony wrote: > > On Monday, December 7, 2015 at 6:07:13 AM UTC-5, Alessio Varalta wrote: >> >> Thanks for the help. I found the solution in this document >> https://drive.google.com/file/d/0B1M

[web2py] Re: 2 different registration form

2015-12-14 Thread Alessio Varalta
You can simple for example insert the membership with a query and set the right references. For exmpale for the registration you can recovery the id of the user in this way last record or by the form in the controller i think you have form.accept? After yuon can make a query that insert the us

[web2py] Re: 2 different registration form

2015-12-14 Thread Alessio Varalta
For the membership you can create the two field with appadmin and after you have to set the field in Role table where you use the id user that you have recovery and the static id for example > > >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/w

[web2py] Error decode json SimpleJson web2py

2015-12-19 Thread Alessio Varalta
Hi , I have a problem with send a json to server(Please help me :)) this is my jquery Ajax call $.ajax({ url: url, type: 'POST', contentType: "application/json; charset=utf-8", data: myJSON, dataType: 'json', suc

Re: [web2py] Re: web2py 2.13.1 is OUT

2015-12-20 Thread Alessio Varalta
Hi, how can I upgrade? There is the possibility to upgrade by console web2py? On Saturday, 19 December 2015 23:32:54 UTC+1, Yoel Benitez Fonseca wrote: > > sorry, in the console it works, its seems to be my problem > > 2015-12-19 17:27 GMT-05:00, Yoel Benitez Fonseca >: > > i have upgrade to t

[web2py] Re: Error decode json SimpleJson web2py

2015-12-20 Thread Alessio Varalta
I found the solution. The problem is that i pass a wrong key value. I think there is a bug on web2py about ticket. Because the ticket don't tell me foreign key wrong but json wrong On Saturday, 19 December 2015 16:12:02 UTC+1, Alessio Varalta wrote: > > Hi , I have a problem with sen

[web2py] Have a more complex organize of controller files

2015-12-26 Thread Alessio Varalta
Hi, I have a problem with my logicI want to know if is possibile to have in the controller this structure folder(main)/with the file py and this case how the url work Because for example i have the enttity Coperative and i have different page that work with this entity ..so I want to have a

[web2py] Re: Have a more complex organize of controller files

2015-12-27 Thread Alessio Varalta
can use URL args to determine the routing). > > Anthony > > On Saturday, December 26, 2015 at 5:36:37 PM UTC-5, Alessio Varalta wrote: >> >> Hi, I have a problem with my logicI want to know if is possibile to >> have this structure >> >> different fo

[web2py] Re: How to change the background color/ image in menu bar?

2015-12-27 Thread Alessio Varalta
You change web2py.css and the menu.py file On Sunday, 27 December 2015 16:40:33 UTC+1, RAGHIB R wrote: > > -- 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) ---

[web2py] Re: Visualizzazione di PDF e JPG in una pagina

2016-01-02 Thread Alessio Varalta
Per visualizzarlo potresti fare un windows.open(url per scaricare il file) in questo modo ti apre una pagina con il pdf questo è javascript(all'interno della pagina non lo so) per il downlod invece dovresti chiamare via javascript un windows.open che chiama una funzione controller che ritorna u

[web2py] Re: what's wrong in this code? please help

2016-01-02 Thread Alessio Varalta
You have to implement the operation of insert in a controller not in view On Saturday, 2 January 2016 21:12:17 UTC+1, RAGHIB R wrote: > > For example I called a db query uu in view > Where each elements in uu will be displayed in view with a button for > each. And if user clicks on any one of the

[web2py] Re: what's wrong in this code? please help

2016-01-03 Thread Alessio Varalta
you can simple create a form like in the web2py guide and a controller that references the from see web2py guide that are basic exmpale you can't do all operation in the view and you put the update and insert operation in the controller not in the view, in the view only select On Sunday, 3 Janu

[web2py] Import module problem

2016-01-08 Thread Alessio Varalta
Hi i have created a module in module/download_pdf/pdf_user where i implemente the class userpdf the problem is that when is save the file i received this No module named ecc.. and i have a problem to import...I don't understand the problem -- Resources: - http://web2py.com - http://web2py.com/

Re: [web2py] Import module problem

2016-01-08 Thread Alessio Varalta
Thanks..I have a big problem :) One day I programmer in Rails, another in web2py and another with Java and sometimes is diffcult :) On Friday, 8 January 2016 09:59:07 UTC+1, Manuele wrote: > > Il 08/01/16 09:03, Alessio Varalta ha scritto: > > Hi i have created a module in module/

[web2py] Re: Have a more complex organize of controller files

2016-01-08 Thread Alessio Varalta
functions is not so good and create another file without folder for separate a part of these functions is not so good. This last part is not so intuitive but I understand. On Tuesday, 29 December 2015 16:10:39 UTC+1, Anthony wrote: > > On Sunday, December 27, 2015 at 4:38:03 AM UTC-5, Alessio V

[web2py] Re: Email Registration

2016-01-09 Thread Alessio Varalta
Maybe is a problem of the server not web2py for example with pythonanywhere you have to have a premium account or on the server there aren't a service for the email Il giorno sabato 9 gennaio 2016 21:41:31 UTC+1, Tom Russell ha scritto: > > > Hi, > > I have everything in place according to the

Re: [web2py] Can we use a web2py app on Android mobile?

2016-01-09 Thread Alessio Varalta
I think is possibile to develope one page with text for a view window page for example of a product change css for mobile..but not for a manage product that required that you programmer in Android or with another framwork specific for developer on mobile Il giorno lunedì 4 gennaio 2016 22:38:4

[web2py] Re: Can we use a web2py app on Android mobile?

2016-01-11 Thread Alessio Varalta
o use the latest Javascript frameworks, such as AngularJS or > ReactJS. > > My advice would be to learn js and angular then go down the ionic ( > http://ionicframework.com/) path. I really don't see a case for bringing > web2py into android. > > Edit: > > What A

Re: [web2py] Email Registration

2016-01-11 Thread Alessio Varalta
l) So wirte in pythonanywhere forum and ask what type of service use the site and the problem Il giorno sabato 9 gennaio 2016 22:52:17 UTC+1, Tom Russell ha scritto: > > Yea I have a premium account with pythonanywhere. > > On Saturday, January 9, 2016, Alessio Varalta > wrote: >

[web2py] Length and requires is not null together

2016-01-17 Thread Alessio Varalta
Hi I have a problem with filed controll i have this Field Field('nome',),type="string",length=50,requires=IS_NOT_EMPTY()), I generate the table with sqlform grid and when i add new element and try to compile requires is not empty is active not length=50 if i eliminate requires is not

[web2py] probem reference auth_user sqlite

2016-01-21 Thread Alessio Varalta
Hi I have a database in sqlite..today I try to add new table..very simple db.define_table('viewnews', Field('user_id','reference auth_user',requires=IS_NOT_EMPTY()), ) but when i insert a row a have this error Traceback (most recent call last): File "/home/

[web2py] Re: probem reference auth_user sqlite

2016-01-21 Thread Alessio Varalta
Resolve I don't know why but i change the name of the table and now work :) On Thursday, 21 January 2016 20:49:04 UTC+1, Niphlod wrote: > > did you alter in any way the auth_user table ? > > On Thursday, January 21, 2016 at 8:43:07 PM UTC+1, Alessio Varalta wrote: >> >

[web2py] Pack all command launch through application

2016-01-26 Thread Alessio Varalta
Hi, I have a programm with sqlite. Now i have that my application generate a csv backup but i prefer to launch a pack all command that generate a tar file in a specific folder. There is the possibility to use pack all command inside add application in a controller in simple way? -- Resources:

[web2py] Pack all through a controller

2016-01-26 Thread Alessio Varalta
Hi I have a web2py application that use sqlite and i want to create a backup. In this moment i use export csv and eventually import, but i have many doubt first the id for the import that change and after the problem of limit record of csv that i can import in one time, so i think to pack all s

[web2py] Problem to pack all the application without past deleted file file

2016-02-02 Thread Alessio Varalta
Hi, I have a problem with my web2py application. I have worked for three weeks online in a debian server and i have created-deleted many files. My problem is if i make now a pack all and after i ricreate the application in locale web2py i see my file but after the old file that i have deleted.

[web2py] Apply where clause in external references

2016-02-17 Thread Alessio Varalta
Hi I have a class group and a class user for example. So i have a loop for row_user in row_group.user.select() now i want only the user that have status true i try for row_user in row_group.user.select(db.user.stato==True) but i have a error or row_user in row_group.user.select(stato==True) Ho

[web2py] assign default user.id to a field to a filed

2016-03-03 Thread Alessio Varalta
Hi I have a table with a field Field('created_by',db.auth_user,default=auth.user.id, writable=False), I want that when a user save a row the field created by take the id of the user and is a reference field for auth_user. I create a sqlfrom grid but when i try to save I have this error Integr

[web2py] Re: assign default user.id to a field to a filed

2016-03-04 Thread Alessio Varalta
Thanks is a problem with my sqlite On Thursday, 3 March 2016 14:59:40 UTC+1, Leonel Câmara wrote: > > Are you logged in? > > Still I think the error is somewhere else since the way you defined the > field allows a NULL value. > -- Resources: - http://web2py.com - http://web2py.com/book (Do

[web2py] strategy to take multi user in a sqlform grid

2016-03-04 Thread Alessio Varalta
Hi I have question about how a user can select multi user in one time. For example i have a sqlform grid and i want that the login user select the partecipants of a event, so i can have multipartecipant, is impossibile to created this system with sqlfrom grid? I can use requires is in db but so

[web2py] implement authentication in navbar

2016-03-11 Thread Alessio Varalta
Hi, is possible to use create authentication in navbar for example in the menu file? Or I have change copy the html code of navbar and put this in the layout file and after I inser the code of the form? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.c

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-25 Thread Alessio Varalta
Is great! I think is a good choose to introduce a functionality that in admin console you can choose this as starter On Friday, 25 March 2016 11:09:38 UTC+1, Ramos wrote: > > This starter is sooo cool. > Its was time we had something like this. > > > > 2016-03-24 19:51 GMT+00:00 Ron Chatterjee >

[web2py] Create links in smartgrid for the child

2016-03-30 Thread Alessio Varalta
Hi I have a smartgrid with one child and i want a to add links to my child is possibile for example: I have entity dashboard with a child label_dashboard So i create the smartgrid grid = SQLFORM.smartgrid(db.dashboard,linked_tables=['label_dashboard']) Now I want to add links to label_das

[web2py] Parsing doom elements html

2016-04-12 Thread Alessio Varalta
Hi, I want to parsing a html file with elements i see on the guide http://web2py.com/books/default/chapter/29/05/the-views#Server-side-DOM-and-parsing so my question is when i retrieve a object how i can access to the value? for example parsed_html=parsed_html.elements('a') for item in p

[web2py] Re: Parsing doom elements html

2016-04-12 Thread Alessio Varalta
p. > > Anthony > > On Tuesday, April 12, 2016 at 3:50:52 AM UTC-4, Alessio Varalta wrote: >> >> I retrieve a file with requests and after i make >> >> r = requests.get(href) >> parsed_html=TAG(r.text) >> >> I received this error >> &g

[web2py] Use model without DAL

2015-04-15 Thread Alessio Varalta
Hi, i have to use the class model but not the connection with the database exist and method to take the model and insert the value without DAL? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/w

[web2py] Hide css of my application

2017-02-05 Thread Alessio Varalta
Hi, I have a web2py application. I use in my project web2py but also rails, and with rails you can comprim all css in a single file...you can make this operation with web2py? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] server for load web2py application

2017-02-26 Thread Alessio Varalta
Hi, I want to load a web2py site on a server. I see https://www.pythonanywhere.com/ is very simple but I want to know another service for compare the price, any suggestions? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source c

[web2py] pythonanywhere configuration domain web2py application

2017-03-06 Thread Alessio Varalta
Hi, I have buy a domain on aruba and paid account on pythonanywhere. My domain is www.asdbluestars-bz.it My application run on https://alessiovic.pythonanywhere.com/bluestars/ So I rename in Web of pythonanywhere the application like www.asdbluestars-bz.it and after i see a new field Dns setup

[web2py] Re: pythonanywhere configuration domain web2py application

2017-03-07 Thread Alessio Varalta
at your website. > > > CNAME: webapp-xx.pythonanywhere.com > > where xx is a 6 digit number. > > Go to you DNS setup with your registrar and create a CNAME record pointing > your domain, www.asdbluestars-bz.it to the cname entry from > pythonanywhere. > > M

[web2py] Re: pythonanywhere configuration domain web2py application

2017-03-07 Thread Alessio Varalta
Thanks work On Tuesday, 7 March 2017 13:24:18 UTC+1, Jim S wrote: > > Host should be www.asdbluestars-bz.it. > > -Jim > > On Tuesday, March 7, 2017 at 4:23:10 AM UTC-6, Alessio Varalta wrote: >> >> Thanks, for the reply. Yes, I make this operation now on pythonan

[web2py] problem with gluon.contrib.simplejson.loads JSONDecodeError

2017-06-13 Thread Alessio Varalta
Hi, I send to my controller this json { "order_of_day": "ffd", "body": "dd", "date_start": "2017-06-28 17:11:38", "date_end": "2017-06-23 17:11:40", "utenti": [] } and I make myJson=gluon.contrib.simplejson.loads(request.body.read()) but I have an error (No JSON object could be decod

[web2py] Re: problem with gluon.contrib.simplejson.loads JSONDecodeError

2017-06-13 Thread Alessio Varalta
e')}}?index=true"); },error: function (error) { alert("Si è verificato un errore durante il salvataggio"); }, data: { "order_of_day": order_of_day, "body": body,"date_start": date_start,"date_end":date_end,"utenti":

[web2py] Re: problem with gluon.contrib.simplejson.loads JSONDecodeError

2017-06-20 Thread Alessio Varalta
I think is a little bug of web2py or the proxy I restart the server and make a new installation of the application and works On Thursday, 15 June 2017 10:44:56 UTC+2, Dave S wrote: > > > > On Tuesday, June 13, 2017 at 8:44:28 AM UTC-7, Alessio Varalta wrote: >> >>

[web2py] Web2py and multiple controller

2018-02-08 Thread Alessio Varalta
I have a new project and I have to choose if web2py is the right framework. My doubt is about the structure of a web2py application. You canno't have subfolder right? So you can put the major of the code in the module and this is ok, but a the controller level you have: Many and Many Controller i

[web2py] Re: Web2py and multiple controller

2018-02-09 Thread Alessio Varalta
logic order On Friday, 9 February 2018 02:59:43 UTC+1, Anthony wrote: > > On Thursday, February 8, 2018 at 4:00:48 AM UTC-5, Alessio Varalta wrote: >> >> I have a new project and I have to choose if web2py is the right >> framework. >> My doubt is about the str

[web2py] trap form

2015-05-06 Thread Alessio Varalta
Hi,I have a form with type button i will when i click on the button call a function that return a render.response view and insert this view in the code without reload a new page -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Insert with where condition query web2py sqlite

2015-05-28 Thread Alessio Varalta
Hi i don't find on the guide the method to execute a query with where condition... i see db.class.insert but i don t find a method to use this with where condition or i use db.executesql("Insert into auth_user('person') values(4) where auth_user.id=38;") but i receive a error -- Reso

[web2py] web2py grid edit

2015-06-30 Thread Alessio Varalta
Hi, i have a problem. I have a grid form but i want that the user can modify the field without the section edit..So i want load a grid where the user can modify the field and after click on a save button a save all parameters -- Resources: - http://web2py.com - http://web2py.com/book (Document

[web2py] Add a form sqlfactory

2015-06-30 Thread Alessio Varalta
Hi, there is the possibility to add a form to sqlfactory with a for cycle..for example, i will a system where i can cycle with a for and add an element form = SQLFORM.factory(db['element']) first time now i will add the second element to form -- Resources: - http://web2py.com - http://web2py.

[web2py] Invalid literal for init with base 64

2015-07-06 Thread Alessio Varalta
Hi, i use a sqlite database and i use SQLFORM for save my dateThe problem is that have a table with two Field that have date type and when i use SQLFORM and save this date, I have a error when i try to retrieve the date and i have a error when i use appadmin for see my database and the erro

[web2py] Re: Invalid literal for init with base 64

2015-07-07 Thread Alessio Varalta
ples/global/vars/Field>('inviato',type='boolean',requires=IS_NOT_EMPTY <http://127.0.0.1:8000/examples/global/vars/IS_NOT_EMPTY>()), Field <http://127.0.0.1:8000/examples/global/vars/Field>('user_id','reference auth_user'), )

[web2py] Use wkhtmltopdf in web2py

2015-07-19 Thread Alessio Varalta
Hi I am going to use wkhtmltopdf in a web2py application for generate pdf file. I see only another topic about wkhtmltopdf in this forum and I understand that i have to use calls service but I the line of command is for me incorrect.There is a example online with the call for use wkhtmltopdf wi

[web2py] Re: Use wkhtmltopdf in web2py

2015-07-21 Thread Alessio Varalta
Today I try thanks very much On Monday, July 20, 2015 at 8:14:40 AM UTC+2, Ariya Owam-aram wrote: > > > Hi Alessio > > If you call from Apache then you can call subprocess directly from > webserver but in nginx you have to use schedule task. Better to run > wkhtmltopdf

[web2py] SQLFORM with external references

2015-08-09 Thread Alessio Varalta
Hi, I have a table with external references my main table is person and this has a field called scheda that is a external references to a table scheda. If i create a sqlform the field scheda is a input string and the user must insert the id of the external references for the form submit accept.

[web2py] Comand URL don't work in a external file js

2015-08-11 Thread Alessio Varalta
Hi, I have a problem with the comand URL. If i use this comand inside a view like