[web2py] Re: $.web2py.component

2018-03-03 Thread Andrea Fae'
giorno giovedì 18 gennaio 2018 23:59:08 UTC+1, Anthony ha scritto: > > On Thursday, January 18, 2018 at 2:58:47 PM UTC-5, Andrea Fae' wrote: >> >> Anthony, you are very good teacher. But can I have a couple of examples >> using web2py and javascript? thank in advance.

Re: [web2py] Re: accessing Exchange IMAP email

2018-02-26 Thread Andrea Fae'
r supporting imap as part of the DAL. Nobody was using it > and it is not the right abstraction. > > On Sunday, 25 February 2018 03:02:44 UTC-6, Andrea Fae' wrote: >> >> I'm sorry, but what are you telling me exactly? >> >> 2018-02-25 3:33 GMT+01:00 Massimo Di

[web2py] accessing Exchange IMAP email

2018-02-21 Thread Andrea Fae'
I have an exchange server and usually I access to email using "domain\username" and password... using # Replace user, password, server and port in the connection string # Set port as 993 for SSL supportimapdb = DAL("imap://user:password@server:port", pool_size=1) what can I type in the user ?

[web2py] Re: download rows

2018-02-14 Thread Andrea Fae'
11:37:17 UTC+1, Andrea Fae' ha scritto: > > Hello, I need to create a page to download rows from a dataset to a file. > Is there any automatic possibility (embedded download function is > related?) without creating a function and relative view? > Thank you > -- Resour

[web2py] download rows

2018-02-14 Thread Andrea Fae'
Hello, I need to create a page to download rows from a dataset to a file. Is there any automatic possibility (embedded download function is related?) without creating a function and relative view? Thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] menu separator line

2018-02-14 Thread Andrea Fae'
How to insert a separator line between 2 menu items? Thank you -- 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

[web2py] Re: SERVICE_PAUSED

2018-02-09 Thread Andrea Fae'
It seems that the version \nssm-2.24-101-g897c7ad\win64\ is working Il giorno venerdì 9 febbraio 2018 20:49:01 UTC+1, Andrea Fae' ha scritto: > > I tried with the version suggested in the nssm site. I have the last > version of windows 10. > But the problem remains the same.

Re: [web2py] Re: code written by Massimo Di Pierro in the web2py video tutorial

2018-02-09 Thread Andrea Fae'
https://www.youtube.com/watch?v=dHu8O1gZOl0 there are 4 parts in youtube Il giorno venerdì 9 febbraio 2018 20:51:11 UTC+1, Jim S ha scritto: > > Could you provide a link to the tutorials that you're talking about? > > -Jim > > On Fri, Feb 9, 2018 at 1:47 PM, Andrea Fae'

[web2py] Re: SERVICE_PAUSED

2018-02-09 Thread Andrea Fae'
I tried with the version suggested in the nssm site. I have the last version of windows 10. But the problem remains the same...can anyone help me to fix? Thank you Il giorno giovedì 8 febbraio 2018 21:34:30 UTC+1, Andrea Fae' ha scritto: > > c:\data\nssm-2.24\win64>nssm.

[web2py] Re: code written by Massimo Di Pierro in the web2py video tutorial

2018-02-09 Thread Andrea Fae'
ebruary 7, 2018 at 1:52:28 PM UTC-6, Andrea Fae' wrote: >> >> Hello, it would be a great thing to have a document with the code written >> by Massimo in the video tutorials... >> thank you >> > -- Resources: - http://web2py.com - http://web2py.com/book (Docu

[web2py] SERVICE_PAUSED

2018-02-08 Thread Andrea Fae'
c:\data\nssm-2.24\win64>nssm.exe start web2py_scheduler_test web2py_scheduler_test: START: Operazione completata. c:\data\nssm-2.24\win64>nssm.exe status web2py_scheduler_test SERVICE_PAUSED c:\data\nssm-2.24\win64> Why? I'm following exactly the instructions given in the web2py guide... --

[web2py] code written by Massimo Di Pierro in the web2py video tutorial

2018-02-07 Thread Andrea Fae'
Hello, it would be a great thing to have a document with the code written by Massimo in the video tutorials... thank you -- 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] scheduler question

2018-02-06 Thread Andrea Fae'
Hello, days ago I started to use scheduler and all was working very well. I could see db.scheduler_run.task_id lines in the db with all the results and console. Now the scheduler works very well but I don't see nothing in the table db.scheduler_run.task_id. Why? Talk completed without

[web2py] Re: Form button landing page

2018-02-05 Thread Andrea Fae'
details. > > On Monday, January 29, 2018 at 11:17:24 AM UTC-5, Andrea Fae' wrote: >> >> If I write this for testing >> >> form[0][-1][1].append(TAG.BUTTON('Annulla', _class='btn btn-default', >> _type='Cancel',_onclick="document.location='%s';return false&qu

[web2py] _class='generic_widget form_control'

2018-02-05 Thread Andrea Fae'
What means _class='generic_widget form_control'? -- 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

[web2py] Re: Form button landing page

2018-01-29 Thread Andrea Fae'
If I write this for testing form[0][-1][1].append(TAG.BUTTON('Annulla', _class='btn btn-default', _type='Cancel',_onclick="document.location='%s';return false" % URL('lista_ticket_asset/SC'))) it's not woking too. Il giorno lunedì 29 gennaio 2018 17:09:07 UTC+1, Andrea Fae'

[web2py] Form button landing page

2018-01-29 Thread Andrea Fae'
Hello, in a controller this is working form[0][-1][1].append(TAG.BUTTON('Annulla', _class='btn btn-default', _type='Cancel',_onclick="document.location='%s';return false" % URL('index'))) and the landing page is default\index this is not working

Re: [web2py] Re: web2py IDE

2018-01-26 Thread Andrea Fae'
Is there available a debugger too? Il giorno venerdì 26 gennaio 2018 20:04:42 UTC+1, Ramos ha scritto: > > for free > Sublime Text 3 + w2p plugin > > Work and gives you a web2py console and some other stuff > > Regards > > 2018-01-26 18:57 GMT+00:00 Andrea Fae' <a

Re: [web2py] .represent

2018-01-26 Thread Andrea Fae'
`id` arg is the other_id value. > > Maybe the example could be more clear in this way: > > db.mytable.other_id.represent = lambda id, row: db.other_table[id].other_field > > > On Fri, Jan 26, 2018 at 10:24 AM, Andrea Fae' <and...@gmail.com > > wrote: > >> "R

[web2py] Re: web2py IDE

2018-01-26 Thread Andrea Fae'
: You can develop your software with system >> versions of Python and its components, and fix the behaviour when the >> system versions will change. This is possible but not the best solution. >> Better is install and activate virtualenv for the project folder. Then >> you wil

[web2py] .represent

2018-01-26 Thread Andrea Fae'
"Represent" from web2py book But what exactly are the relationship between "other_id" and "is" in the second example? And in the third from what is get the variable "value"? Thank you .represent can be None or can point to a function that takes a field value and returns an alternate

[web2py] Enabling or disablink link on a grid "on the fly"

2018-01-25 Thread Andrea Fae'
Hello guys! I have a grid like this form = SQLFORM.grid(query, args=[tipologia], fields=[db.ticket.id, db.ticket.created_on, db.asset.tipo, db.asset.seriale, db.asset.modello,db.asset.nome, db.asset.uo, db.asset.is_active, db.ticket.anomalia, db.ticket.chiuso, db.ticket.risoluzione], links =

[web2py] web2py IDE

2018-01-24 Thread Andrea Fae'
Web2py integrated ide environment is not bad, but with limited debugging, no intellisense and so on. I'd like to know what is a completely free IDE for using with web2py. Visual Studio Community? Visual Code Editor? In which way? How can I integrate web2py with these IDE? Is it possible? Can

[web2py] Re: $.web2py.component

2018-01-18 Thread Andrea Fae'
. You can use it to trigger the creation or > reloading of Ajax components using Javascript (e.g., clicking a button > could load a component). > > Anthony > > On Thursday, January 18, 2018 at 2:31:34 PM UTC-5, Andrea Fae' wrote: >> >> Who is able to explain well $.web2py.

[web2py] $.web2py.component

2018-01-18 Thread Andrea Fae'
Who is able to explain well $.web2py.component? What is the meaning? Where is in the web2py book? Thank you -- 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)

Re: [web2py] Re: web2py.component equivalent for =LOAD

2018-01-07 Thread Andrea Fae'
I'm sorry but in the documentation there isn't written explicitally web2py.component with the dotwhere did you find it? And for $.web2py.component? What is the meaning? Thank you Il giorno giovedì 16 febbraio 2017 22:40:18 UTC+1, Richard ha scritto: > > {{=LOAD()}} = HTML > >

[web2py] web2py 2.16.1 and python27

2017-11-19 Thread Andrea Fae'
What version of python 3 can I use with 2.16.1 version? How to upgrade python? web2py application made with python 2.7 will be compatible? thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] crud.read labels

2017-11-01 Thread Andrea Fae'
Is it possibile to manage crud.read field labels? Thanks -- 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

[web2py] Re: back button

2017-09-25 Thread Andrea Fae'
2017 01:06:00 UTC+2, Massimo Di Pierro ha scritto: > > You cannot add buttons to a readonly crud form because it has no button > row. You can do: > > form.components.append(A('Back',_onclick="window.history.go('-1')")) > > > On Sunday, 3 September 2017 13:49

Re: [web2py] How can you remove the text "Export" from a grid??

2017-09-10 Thread Andrea Fae'
t; > Anthony > > On Saturday, September 9, 2017 at 1:28:12 PM UTC-4, Andrea Fae' wrote: >> >> exportcls = dict(csv=False, xml=False, csv_with_hidden_cols=False, >> html=False, json=False, tsv_with_hidden_cols=False, tsv=False) >> >> *for

Re: [web2py] How can you remove the text "Export" from a grid??

2017-09-09 Thread Andrea Fae'
an you show your code, a screenshot, and explain exactly what you are > trying to achieve. If I do SQLFORM.grid(..., csv=False), I see no export > links. > > Anthony > > On Thursday, September 7, 2017 at 7:42:38 AM UTC-4, Andrea Fae' wrote: >> >> Yes >>

[web2py] How can you remove the text "Export" from a grid??

2017-09-07 Thread Andrea Fae'
I don't want any export and I dont' want the text "export" in the bottom of the grid... -- 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

Re: [web2py] Delete EXPORT button from SQLFORM.grid

2017-09-07 Thread Andrea Fae'
I need the same! Il giorno venerdì 5 maggio 2017 09:30:56 UTC+2, Yebach ha scritto: > > How can you also remove the text "Export" ?? > > If I set all classes to False the text stays, if I remove export classes > from signature it displays all > > On Wednesday, August 15, 2012 at 12:41:28 PM

[web2py] back button

2017-09-03 Thread Andrea Fae'
I use in a method this form=crud.read(db.evento,evento) and the html vies is very simple {{extend 'layout.html'}} Evento {{=form}} how to add a simple button to go back in the previous page? I tried form.add_button('Back', URL('index')) but I have this error 'NoneType'

[web2py] auth_user email field

2017-08-26 Thread Andrea Fae'
Hello, is it possible to get email field in auth_user table not unique? I don't use email form accessing but username. I don't want to create a custom auth_user table if it's possible. Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: color picker

2017-07-19 Thread Andrea Fae'
I'm sorry but it's Javascript. I prefer to define a field of web2py db. How to implement? Thank you very much Il giorno martedì 18 luglio 2017 21:57:00 UTC+2, Leonel Câmara ha scritto: > > You can use a polyfill such as this one > https://briangrinstead.com/blog/input-type-color-polyfill/ > > I

[web2py] color picker

2017-07-18 Thread Andrea Fae'
Hello, how to implement a field color picker like Field('colore', 'string', widget=lambda f,v: SQLFORM.widgets.string.widget(f,v, _value=v, _type='color',_data_text='hidden', _hex='true')), This above is working in Chrome and Firefox but not in IE 11... -- Resources: - http://web2py.com -

[web2py] auth_user email field

2017-06-02 Thread Andrea Fae'
Email field in auth_user table is obligatory. Is it possible to get this field not obligatory? Thanks -- 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

[web2py] Future of web2py

2017-05-27 Thread Andrea Fae'
Hello guys, I'd like to know if there will be future of web2py? Any information about it? Thanks -- 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

[web2py] Re: recurring events from one form

2017-05-12 Thread Andrea Fae'
Hey guys...I know there are gurus of web2py...no suggestion? Please help me... thank you Il giorno giovedì 11 maggio 2017 21:40:42 UTC+2, Andrea Fae' ha scritto: > > Hello, I have a form that in this moment create one record in the > database. This records represent

[web2py] recurring events from one form

2017-05-11 Thread Andrea Fae'
Hello, I have a form that in this moment create one record in the database. This records represent an event: db.define_table('evento', Field('titolo', requires=[IS_NOT_EMPTY()]), Field('inizio', type='datetime'), Field('fine', type='datetime'),

[web2py] Re: convert virtual field in grid to another language

2017-05-07 Thread Andrea Fae'
Anthony, you are a guru of web2py! Il giorno sabato 6 maggio 2017 15:50:52 UTC+2, Anthony ha scritto: > > On Saturday, May 6, 2017 at 4:50:47 AM UTC-4, Andrea Fae' wrote: >> >> Solution: >> db.evento.giorno_inizio.represent = lambda giorno_inizio, row: >> T(giorno_

[web2py] Re: convert virtual field in grid to another language

2017-05-06 Thread Andrea Fae'
Solution: db.evento.giorno_inizio.represent = lambda giorno_inizio, row: T(giorno_inizio) But I don't know whhy I have to specify "row" in tha lambda function... Il giorno venerdì 5 maggio 2017 22:44:10 UTC+2, Dave S ha scritto: > > > > On Friday, May 5, 2017 at 12:09:3

[web2py] convert virtual field in grid to another language

2017-05-05 Thread Andrea Fae'
I have this table db.define_table('evento', Field('titolo', requires=[IS_NOT_EMPTY()]), Field('inizio', type='datetime'), Field('fine', type='datetime'), Field.Virtual('giorno_inizio', lambda

Re: {Disarmed} Re: {Disarmed} Re: [web2py] Re: lack of documentation

2017-04-24 Thread Andrea Fae'
email_source=link_campaign=sig-email_content=webmail> > > <#CAEM0BxOYdGUBiF5vsQGZpfrH6cV3_t2RuThgUQGcahYF=9fXfQ@mail.gmail.com_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > 2017-04-24 12:07 GMT+01:00 Andrea Fae' <and...@gmail.com >: > >> Yes you are right, but there is something in the book, something in the >&

[web2py] more on @auth.requires

2017-04-24 Thread Andrea Fae'
As Anthony suggested me (and thank you for his help), I use for example these function to control authorization @auth.requires(lambda: verifica_manager_site(list_of_roles_manager_site)) At the starting of default.py, where I have the other function that needs authotiation, I putted code to

Re: {Disarmed} Re: {Disarmed} Re: [web2py] Re: lack of documentation

2017-04-24 Thread Andrea Fae'
Yes you are right, but there is something in the book, something in the codeno complete full documentation...managed in only one site. It's like it is...I have to accept this. thanks Il giorno martedì 11 aprile 2017 15:07:00 UTC+2, Anthony ha scritto: > > On Tuesday, April 11, 2017 at

[web2py] Re: @auth.requires for functions

2017-04-23 Thread Andrea Fae'
Il giorno giovedì 20 aprile 2017 16:31:31 UTC+2, Andrea Fae' ha scritto: > > Hello, if I have to get the list from database, where I need to put the > code? At the start of default.py where I use the functions? Thanks > > Il giorno mercoledì 19 aprile 2017 17:30:06 UTC+2, Ant

[web2py] Re: @auth.requires for functions

2017-04-20 Thread Andrea Fae'
', 'role3'] # You could get this list via > a database query > > @auth.requires(lambda: any(auth.has_membership(role) for role in > list_of_roles)) > def myfunc(): > ... > > Anthony > > On Wednesday, April 19, 2017 at 8:14:53 AM UTC-4, Andrea Fae' wrote: >> >>

Re: [web2py] Re: @auth.requires for functions

2017-04-20 Thread Andrea Fae'
() return true if one (or more) of the elements is True. > > > this: > > auth.has_membership(role) for role in list_of_roles > > try all the roles in the list. > > so if one of the auth.has_membership() return true, the lamba function return > true. >

[web2py] Re: @auth.requires for functions

2017-04-20 Thread Andrea Fae'
> list_of_roles = ['role1', 'role2', 'role3'] # You could get this list via > a database query > > @auth.requires(lambda: any(auth.has_membership(role) for role in > list_of_roles)) > def myfunc(): > ... > > Anthony > > On Wednesday, April 19, 2017 at 8:14

[web2py] @auth.requires for functions

2017-04-19 Thread Andrea Fae'
For example I have this type of functions: # sono autorizzati i vari manager a seconda della sede @auth.requires(auth.has_membership('Total-manager') | auth.has_membership('Conegliano-studente') | auth.has_membership('Pordenone-manager') | auth.has_membership('Pordenone-studente') |

[web2py] Re: requires option on field does't work

2017-04-19 Thread Andrea Fae'
You are right, as usual. Thank you Il giorno martedì 18 aprile 2017 20:55:00 UTC+2, Anthony ha scritto: > > >> db.materia.nome.requires=IS_NOT_IN_DB(db(db.materia.docente==request.vars.docente),db.materia.nome) >> > > There is no request.vars.docente. Based on your controller code, it > appears

[web2py] delete record confirmation dialog

2017-04-18 Thread Andrea Fae'
How to change customized message in the confirmation dialog about delete a record using grid or smartgrid? (depending on the situation) Any examples? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] requires option on field does't work

2017-04-18 Thread Andrea Fae'
I have this table db.define_table('materia', Field('nome', requires=[IS_NOT_EMPTY(),IS_NOT_IN_DB(db,'materia.nome')]), Field('docente','reference auth_user'), auth.signature,singular="Materia",plural="Materie",migrate='materia.table',

[web2py] lack of documentation

2017-04-09 Thread Andrea Fae'
Web2py is wonderful, but it has a big challenge. No documentation. Or at least no complete documentation. It's all based on the book and some site that can give you suggestions...it's too less. Is there any person tha can tell me a complete reference of the language (don't tell me the api, I'm

[web2py] dynamic menu

2017-04-09 Thread Andrea Fae'
I'm writing an application for managing sites and people in this sites with different roles. In my menu.py I have, for example this code if auth.has_membership('total-manager') | auth.has_membership('pordenone-manager'): response.menu.append( ('Sede Pordenone', False, None, [

[web2py] Visual Studio Code and debugging

2017-03-22 Thread Andrea Fae'
I tried to use Visual Studio Code like IDE for debugging web2py programs. In the launch.json I inserted this: { "name": "Web2py", "type": "python", "request": "launch", "stopOnEntry": true, "pythonPath": "${config.python.pythonPath}",

[web2py] grid ondelete redirection

2017-03-18 Thread Andrea Fae'
Why the redirection is not working? def mostra_evento(): evento_id=request.args(0) query = (db.evento.id == evento_id) db.evento.inizio.writable=db.evento.fine.writable=db.evento.risorsa.writable=db.evento.docente.writable=db.evento.materia.writable=False

[web2py] bootstrap modal and conditional fields

2017-03-09 Thread Andrea Fae'
I'm using a modal bootstrap to show a form from a table, this is the funntion called from JS webcomponent $.web2py.component("{{=URL('default', 'nuovo_evento.load')}}"+ "?titolo=" + title +"=" + risorsa + "=" +start + "=" + end,"modulo-evento"); Function of the controller: def

Re: [web2py] Re: javascript prompt and modal dialog

2017-03-05 Thread Andrea Fae'
and > processing . > > > > Em quinta-feira, 23 de fevereiro de 2017 16:09:08 UTC-3, Andrea Fae' > escreveu: >> >> When I click function select I want that appears a modal dialog using >> jquery, asking some fields, and using this fields passing to controller >

[web2py] Re: $.get jquery and controller

2017-02-28 Thread Andrea Fae'
I want to pass data to a controller, this controller insert these data to a database, and after returning to fullcalendar view... Il giorno martedì 28 febbraio 2017 21:37:51 UTC+1, Andrea Fae' ha scritto: > > I have this code in a view (from a select funcion javascript) > > >

[web2py] $.get jquery and controller

2017-02-28 Thread Andrea Fae'
I have this code in a view (from a select funcion javascript) $.get('{{=URL('default','nuovo_evento')}}',{risorsa:eventData.resourceId,titolo:eventData.title,start:start,end:end}); this code call a controller def nuovo_evento(): form=crud.create(db.evento) return

[web2py] Fullcalendar scheduler and menu

2017-02-23 Thread Andrea Fae'
When I use fullcalendar scheduler and call controller from menu. After calling the controller and see the view menu item changing. It disappear the arrow to click and it's not usable. This is the menu response.menu = [ ('Sede Pordenone', False, None, [ (T('Scheduler'),

Re: [web2py] Re: javascript prompt and modal dialog

2017-02-23 Thread Andrea Fae'
Can you givem me examples about using this beautiful addon? Il giorno giovedì 23 febbraio 2017 20:09:08 UTC+1, Andrea Fae' ha scritto: > > When I click function select I want that appears a modal dialog using > jquery, asking some fields, and using this fields passing to controller >

Re: [web2py] Re: javascript prompt and modal dialog

2017-02-23 Thread Andrea Fae'
and im using it with web2py > > 2017-02-22 13:44 GMT+00:00 Marlysson Silva <marly...@gmail.com > >: > >> Explain more your problem? >> >> You are using just javascript or want integrate with web2py? >> >> >> Em sábado, 18 de fevereiro de 2017 16:11:30

[web2py] Re: javascript prompt and modal dialog

2017-02-18 Thread Andrea Fae'
I will be very grateful who can answer. thanks a lot!! Il giorno sabato 18 febbraio 2017 20:11:30 UTC+1, Andrea Fae' ha scritto: > > Hello. > From Javascript I need to ask some different values and promt is good only > for 1 text box. > > I know that I have to use jqury modal d

[web2py] javascript prompt and modal dialog

2017-02-18 Thread Andrea Fae'
Hello. >From Javascript I need to ask some different values and promt is good only for 1 text box. I know that I have to use jqury modal dialog, but I don't know nothing about it (I need to study?) Is there anyone that can write me a very simple example? You have to know that I have to use

[web2py] Re: Passing variables

2017-02-13 Thread Andrea Fae'
7 20:47:20 UTC+1, Dave S ha scritto: > > > > On Monday, February 13, 2017 at 11:13:17 AM UTC-8, Andrea Fae' wrote: >> >> I sawnot working >> > > Can you show your code? ESP is a very inefficient way to debug, and my > tarot cards are wet from the

[web2py] Re: Passing variables

2017-02-13 Thread Andrea Fae'
I sawnot working Il giorno lunedì 13 febbraio 2017 17:34:50 UTC+1, Anthony ha scritto: > > Ajax. See http://web2py.com/books/default/chapter/29/11/jquery-and-ajax. > > > On Monday, February 13, 2017 at 11:24:02 AM UTC-5, Andrea Fae' wrote: >> >> How to

Re: [web2py] Re: Fullcalendar scheduler - creating, changing and saving data to database

2017-02-13 Thread Andrea Fae'
nt from it, just create them from web2py... >> >> Richard >> >> On Mon, Feb 13, 2017 at 7:02 AM, Andrea Fae' <and...@gmail.com >> > wrote: >> >>> Thank you for who can help me! >>> >>> >>> Il giorno domenica 12 febbraio 2

[web2py] Passing variables

2017-02-13 Thread Andrea Fae'
How to pass variables from a view to a controller? Ho to pass variables from a Javascript included in a view to a controller? Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: Fullcalendar scheduler - creating, changing and saving data to database

2017-02-13 Thread Andrea Fae'
te a form in web2py, you know how to enter a record (even), you can > retrieve these records, so... Instead of trying to mess with fullcalendar > to create event from it, just create them from web2py... > > Richard > > On Mon, Feb 13, 2017 at 7:02 AM, Andrea Fae' <and...@gmail.

[web2py] Re: Calling controller from javascript

2017-02-13 Thread Andrea Fae'
Why ajax('{{=URL('test', '')}}',[],''); it's not working? " 'test' is a normal controller for test with a view very simple - see below eventDrop: function(event, delta, revertFunc) { if (!confirm("Sei sicuro di fare questa modifica?")) { revertFunc();

[web2py] Re: Fullcalendar scheduler - creating, changing and saving data to database

2017-02-13 Thread Andrea Fae'
Thank you for who can help me! Il giorno domenica 12 febbraio 2017 11:46:06 UTC+1, Andrea Fae' ha scritto: > > Hello guys, > I'm trying to use Fullcalendar scheduler for my application > > Now I can retrieve resources and event from database. Next step I have to: > - create

[web2py] Calling controller from javascript

2017-02-12 Thread Andrea Fae'
Ho to call a controller function from: - javascript (inside a view) - from html view ({{put controller function here?}} Can I have the exact syntax on both cases? Thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

[web2py] Fullcalendar scheduler - creating, changing and saving data to database

2017-02-12 Thread Andrea Fae'
Hello guys, I'm trying to use Fullcalendar scheduler for my application Now I can retrieve resources and event from database. Next step I have to: - create new events simply clicking and dragging to the scheduler fullcalendar and saving event to the database - when moving or resizing events,

[web2py] Re: Fullcalendar scheduler

2017-02-07 Thread Andrea Fae'
).css('background-color', 'silver'); > {{pass}} >/*$('td[data-date="' + '{{=row.start_date}}' + > '"]').addClass('fully_colored_holiday');*/ > $('.fc-other-month').html(''); > $('.fc-other-month').css(&qu

[web2py] Fullcalendar scheduler

2017-02-05 Thread Andrea Fae'
Any people can tell me how to load from database table resources to show using this add-on? https://fullcalendar.io/scheduler/ Any suggestion? Thanks a lot -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Fullcalendar questions

2017-02-05 Thread Andrea Fae'
r > https://github.com/mdipierro/kusoma/blob/master/controllers/calendar.py > Perhaps it can be useful. > > > On Sunday, 5 February 2017 07:44:22 UTC-6, Andrea Fae' wrote: >> >> I want to use this add-on with web2py >> >> https://fullcalendar.io/scheduler/ &g

[web2py] Re: response.files.append or insert syntax

2017-02-05 Thread Andrea Fae'
Yes, thank you, but why this syntax? r=request,c='static',f='myview.css' Il giorno domenica 5 febbraio 2017 15:36:02 UTC+1, Nico de Groot ha scritto: > > response.files is a list of filenames that will be included while > rendering the view. You can add your own .css and .js files to this list

[web2py] Fullcalendar questions

2017-02-05 Thread Andrea Fae'
I want to use this add-on with web2py https://fullcalendar.io/scheduler/ How to load resource data from a database, for example? I need scheduler information with web2py. Is there any person with experience using this add-on? Thank you -- Resources: - http://web2py.com -

[web2py] response.files.append or insert syntax

2017-02-05 Thread Andrea Fae'
What is the meaning and syntax of lines like this? Where I can find? response.files.append(URL(r=request,c='static',f='myview.css') Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] button "share" social - how to delete

2017-01-27 Thread Andrea Fae'
How to don't show the button "share" in the right bottom part of a web2py application? Thank you -- 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

[web2py] crud.create cancel button

2017-01-27 Thread Andrea Fae'
I tried this form = crud.create(db.ticket, next='lista_ticket',onaccept=lambda form,asset=asset:send_email_ticket(form,asset)) form[0][-1][1].append(TAG.BUTTON('Cancel',_onclick="document.location='%s';"%URL('index'))) But Cancel button doesn't appear. What is wrong? Thank you --

[web2py] Re: pass arguments to menu item

2017-01-26 Thread Andrea Fae'
You are great! Thank you very much. Il giorno giovedì 26 gennaio 2017 01:06:48 UTC+1, Leonel Câmara ha scritto: > > Yes, I'm sorry Andrea, I don't use the grid much nowadays, that's because > you're using request.args(0) and the grid also uses args, when it sees your > arg it thinks it should

[web2py] Re: pass arguments to menu item

2017-01-25 Thread Andrea Fae'
Thanks a lot, but nevertheless it's not working. flash tell me I'm not authorized The function modified is this def lista_asset(): if (request.args(0) == 'SC'): query = (db.asset.tipo=='SC') & (db.asset.is_active==True) else: query = (db.asset.is_active==True)

[web2py] Re: pass arguments to menu item

2017-01-25 Thread Andrea Fae'
Thanks but it's not the question. I wanted to pass some arguments to function like this... ('Scanner operativi', False, URL('default', 'lista_asset', *args='SC*')), but when I use in the function the system told me in session.flash "Not authorized" and doesn't show me what I

[web2py] pass arguments to menu item

2017-01-25 Thread Andrea Fae'
How to pass arguments to menu item? That can be retrieved by a function? Can I have a simple example? Thank you -- 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: Conditional validation

2017-01-21 Thread Andrea Fae'
Where can I find conditional validation documentation? Il giorno venerdì 20 gennaio 2017 17:22:14 UTC+1, Andrea Fae' ha scritto: > > Hello guys, I need to have a dependent field in a table. > If the field "is_active" = True then I cannot insert in the field "date&quo

[web2py] Conditional validation

2017-01-20 Thread Andrea Fae'
Hello guys, I need to have a dependent field in a table. If the field "is_active" = True then I cannot insert in the field "date" nothing. If the field "is_atvie" = False then I can or not insert something in the field "date". How to do in the definition of table? Or it's better to use

[web2py] new DAL

2017-01-19 Thread Andrea Fae'
Can anyone explain exatly this? db = DAL(myconf.get('db.uri'), pool_size=myconf.get('db.pool_size'), migrate_enabled=myconf.get('db.migrate'), check_reserved=['all']) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: rename auth_* table files

2017-01-19 Thread Andrea Fae'
Maybe I resulved in this way: auth.define_tables(username=..., signature=..., migrate='',fake_migrate=True) Il giorno giovedì 19 gennaio 2017 15:52:57 UTC+1, Andrea Fae' ha scritto: > > I have this situazione. > The auth tables are named like > c8b669d15150d7109e5f7ab36744a5b7_aut

[web2py] rename auth_* table files

2017-01-19 Thread Andrea Fae'
I have this situazione. The auth tables are named like c8b669d15150d7109e5f7ab36744a5b7_auth_user.table the other tables are named like sede.table pc.table etc. I would like to rename auth talbe like "auth_user.table", "auth_permission.table", etc. How to do? Thenks -- Resources: -

Re: [web2py] table auth_user already exists

2017-01-19 Thread Andrea Fae'
morevoer I want to rename the name of auth tables files but this tables are totally standard...I have to modify db.py? Il giorno giovedì 19 gennaio 2017 15:07:38 UTC+1, Andrea Fae' ha scritto: > > It's not working. I want to rename the name of the tables but in > production I d

Re: [web2py] table auth_user already exists

2017-01-19 Thread Andrea Fae'
igrate=false and fake_migrate=True then set back > migrate=True between these change you have to make a page reload (any page) > of you app... It will force web2py to reanalyse and sync web2py with the > backend. > > Note: In production, you should set migrate to false > > R

[web2py] table auth_user already exists

2017-01-18 Thread Andrea Fae'
Why if I delete .table files and log file inside database folder sqlite I have this error? sqlite is or not a only one file? Is it something regarding migrate=true or false? Can I have a better explanation than the book? Thank you -- Resources: - http://web2py.com -

[web2py] Re: 2012 R2 web2py installation

2017-01-18 Thread Andrea Fae'
I need to type "python web2py.py -a "password" with double quote! Il giorno lunedì 16 gennaio 2017 21:04:49 UTC+1, Dave S ha scritto: > > > > On Monday, January 16, 2017 at 2:48:20 AM UTC-8, Andrea Fae' wrote: >> >> Hello, I symply installed: >> - pyth

[web2py] Re: Disable change password after login

2017-01-16 Thread Andrea Fae'
Yes, but how? Where? Il giorno lunedì 16 gennaio 2017 17:03:22 UTC+1, Leonel Câmara ha scritto: > > Append "change_password" to auth.settings.actions_disabled if the user has > a registration_id > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Disable change password after login

2017-01-16 Thread Andrea Fae'
Only for users with a value in "registration_id" I want di disable the change password function. How to do? Thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

<    1   2   3   >