[web2py] LOAD component, timeout and passing variables / arguments
Hi, currently I'm using LOAD and components on a project. The problem is that when using a timeout for auto-reloading the component then the current view state is lost, let me explain: 1. A controller called performance_matrix.py has a method index(); that method receives request.vars and depending on received variable x it displays a different type of data. 2. The view performance_matrix/index.html is quite simple, because it has just the LOAD inside of it to load the component that displays a matrix depending on an x variable. {{extend 'layout.html'}} {{block center}} {{=LOAD('performance_matrix','index.load',ajax=True, times = infinity, timeout=1000*60)}} {{end}} 3. The file performance_matrix/index.load contains the view of the component, it has a form that when you change values on it it makes a POST to the server with the new x variable that changes what the view displays. 4. The problem is, that when timeout within the load happends, then requested variable x is lost so the state of the displayed view gets back to default I don't want this behavior; i want the timeout to happend and send whatever vars I currently have in the state of the component. Any help i would appreciate 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 received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Problem with JSON
After last upgrade i've this problem with response.json -Controller cut --- if form.process().accepted: return response.json({'formkey':form.formkey,'html' :XML(html_from_helpers)}) -cut --- The json generated by controller fails in this js because don't escape double quotes in html_from_helpers string. Is it a bug? Before last update it worked fine $('#form').submit(function(e){ e.preventDefault(); $.ajax({ type: POST, url: /my/url, data: $('#form').serialize(), // serializes the form's elements. success: function(json) { risposta=JSON.parse(json);; // show response from the php script. $('#form:input[name=_formkey]').val(risposta.formkey); $('#myUL').html(risposta.html).listview('refresh'); $(.risposta_flash).remove();$('div class=ui-body ui-body-b risposta_flash style=margin:20px;Stato di cura inserito/div').prependTo(#content_principale).hide().slideDown(); } }); return false; }); 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 Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: LOAD component, timeout and passing variables / arguments
it's best if you pack an app to reproduce the issue, or at least some complete piece of code that explains it. From what I understand, you're expecting that a (re)LOAD()ed component would change its behaviour due to some variable. *A controller called performance_matrix.py has a method index(); that method receives request.vars and depending on received variable x it displays a different type of data.* means that hitting /app/performance_matrix/index?*x=1* produces a different output than /app/performance_matrix/index? *x=2* *performance_matrix/index.html is quite simple...{{extend 'layout.html'}}{{block center}}{{=LOAD('performance_matrix','* *index.load',ajax=True, times = infinity, timeout=1000*60)}}{{end}}* this is quite convoluted (or a typo in your explanation...) you're loading a component INSIDE performance_matrix/index.html WITHOUT any reference to the *x *variable, and in addition you are LOAD()ing the same controller, albeit with .load, every 60 seconds for eternity.how can you expect the LOAD()ed piece to produce different outputs ? it has no knowledge of *x* -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: LOAD component, timeout and passing variables / arguments
You should probably store the state in the session, so after the initial form submission, re-loads can read the values from the session. Anthony On Monday, February 16, 2015 at 11:23:07 AM UTC-5, Boris Aramis Aguilar Rodríguez wrote: Hi, currently I'm using LOAD and components on a project. The problem is that when using a timeout for auto-reloading the component then the current view state is lost, let me explain: 1. A controller called performance_matrix.py has a method index(); that method receives request.vars and depending on received variable x it displays a different type of data. 2. The view performance_matrix/index.html is quite simple, because it has just the LOAD inside of it to load the component that displays a matrix depending on an x variable. {{extend 'layout.html'}} {{block center}} {{=LOAD('performance_matrix','index.load',ajax=True, times = infinity, timeout=1000*60)}} {{end}} 3. The file performance_matrix/index.load contains the view of the component, it has a form that when you change values on it it makes a POST to the server with the new x variable that changes what the view displays. 4. The problem is, that when timeout within the load happends, then requested variable x is lost so the state of the displayed view gets back to default I don't want this behavior; i want the timeout to happend and send whatever vars I currently have in the state of the component. Any help i would appreciate 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 received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Include another file, but do not process it
Thanks Anthony, looks like a good solution. On Sunday, February 15, 2015 at 2:35:23 AM UTC+1, Anthony wrote: Maybe something like this: In a model file or module: def include_hbs(view_path): import os response.write(open(os.path.join(request.folder, 'views', view_path), 'rb').read(), escape=False) In the view: {{include_hbs('dashboard.hbs')}} You might also add an option to cache in RAM for some period of time. Anthony On Saturday, February 14, 2015 at 6:42:38 AM UTC-5, Daniel Gonzalez wrote: Hi, This is my use case: I have some web2py templates which are serving some views with embedded handlebar templates, which are intended for processing on the client side: they must arrive untouched to the browser. The problem is that handlebars and web2py have by default the same delimiters: {{ }} I can change these default settings for either web2py or handlebars, but this has some unintended consequences. For example, I need to go around configuring tools to understand these changes, like code highlighters (web-mode in emacs, etc) which is not always obvious / possible to do. So, I would prefer to stick to the default delimiters. What I would like is something like this: !-- my-view.html: web2py / html code -- ... {{include 'dashboard.hbs'}} !-- dashboard.hbs: handlebars stuff -- {{sdfsdf}} But I would like the web2py engine not to process dashboard.hbs, and serve it as-is. Web2py could make this decision based on the extension of the file (do not process .hbs files) or with a flag to disable processing for a specific include: {{include 'dashboard.hbs' dont-process}} Is this implemented? I have found no documentation regarding the web2py include statement (there is documentation scattered around the guide, but nothing specific as far as I can see). Thanks! DanG -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Problem with JSON
uhm. what does your shell print out of this ? response.json({'html' : XML('span class=foobar/span')}) mine does u'{html: span class=\\foo\\bar/span}' so it's not the issue you're describing. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: LOAD component, timeout and passing variables / arguments
Other things to consider... Unless the form submission results in creating/updating a record, you might want to do a GET instead of a POST request. Instead of a single component with a form and some data to display, consider two separate components -- one with the form, and one to display the data. When the form is submitted, upon completion of the Ajax request, you can have the second component load the data, setting it to reload repeatedly. Your view might look something like: {{=LOAD('performance_matrix', 'form.load', ajax=True)}} div id=data/div Then in the form action: def form(): ... if request.vars.some_field: data_url = URL('performance_matrix', 'data.load', vars=dict(some_field=request.vars.some_field)) response.js = '$.web2py.component(%s, data, timeout=1000*60, times=infinity)' % data_url return dict(form=form) Rather than handling everything via the index() function, have separate functions for dealing with the form and generating the data output. When the form is submitted, the above triggers Javascript to load the relevant data in the #data div on the page. Because the value of the field is encoded in the query string of the #data component's URL, every time it reloads, it will display the same data (until the form is submitted again and the #data component is overwritten with a new one). Anthony On Monday, February 16, 2015 at 3:20:27 PM UTC-5, Anthony wrote: You should probably store the state in the session, so after the initial form submission, re-loads can read the values from the session. Anthony On Monday, February 16, 2015 at 11:23:07 AM UTC-5, Boris Aramis Aguilar Rodríguez wrote: Hi, currently I'm using LOAD and components on a project. The problem is that when using a timeout for auto-reloading the component then the current view state is lost, let me explain: 1. A controller called performance_matrix.py has a method index(); that method receives request.vars and depending on received variable x it displays a different type of data. 2. The view performance_matrix/index.html is quite simple, because it has just the LOAD inside of it to load the component that displays a matrix depending on an x variable. {{extend 'layout.html'}} {{block center}} {{=LOAD('performance_matrix','index.load',ajax=True, times = infinity, timeout=1000*60)}} {{end}} 3. The file performance_matrix/index.load contains the view of the component, it has a form that when you change values on it it makes a POST to the server with the new x variable that changes what the view displays. 4. The problem is, that when timeout within the load happends, then requested variable x is lost so the state of the displayed view gets back to default I don't want this behavior; i want the timeout to happend and send whatever vars I currently have in the state of the component. Any help i would appreciate 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 received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: google trends about web2py
do not think it is not detected is the right statement. web2py is a unique search term. It only refers to web2py. Django is more likely refer to the guitarist than then framework and therefore it needs further refinement. Same goes the other frameworks. On Monday, 16 February 2015 08:58:46 UTC-6, Ramos wrote: i found dificult to get google trenes to compare web2py, flask, django, rails,etc http://www.google.pt/trends/explore#q=%2Fm%2F0dgs72v%2C%20web2py%2C%20%2Fm%2F06y_qx%2C%20%2Fm%2F0505clcmpt=qtz= only web2py is not detected as a webframework when you press the web2py word Comments please António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Testing and web2py - especially appadmin
James, Thank you for bringing up this very important issue. I have been setting up a continuous integration environment using open source software (Jenkins) as well as some tutorials, in the manner of the ruby koans package. If you're interested, there are 3 repos right now (They are very rough -- I will be updating them very much in the next two weeks): https://bitbucket.org/MarkGraves/pytest_bdd_koans https://bitbucket.org/MarkGraves/pytest_koans https://bitbucket.org/MarkGraves/web2py_pytest_koans They will include both unit testing as well as behavior driven development for user acceptance testing (introduced to me by Jay Martin -- also a web2py developer) Also, Vinicius created a framework for testing web2py applications. Here is a link to my fork of it, which patches a small issue with speed that Vinicius and I are engaged on. https://github.com/gravesmedical/web2py.test Also, here is a link to a resource introducing BDD http://www.manning.com/smart/ Unfortunately, the examples are mostly in java. Jay and I have been working on creating versions for python. Feel free to PM me if you'd like to discuss these topics in further detail. -Mark On Wednesday, February 4, 2015 at 9:10:31 PM UTC-6, James O' Driscoll wrote: I am currently working on creating tests for my default controller, I have found a few articles relating to web2py and unit testing, but not many. I have two questions: 1. Any recommendations for good resources available to help create tests for web2py. 2. Is there a doctest/unit test available for the appadmin controller. Regards, James -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py as a portable python environment
you can run scripts with web2py.exe but it being a better shell than the one from python is arguable. I don't see the issue, though: if you want to use python fetch python portable, it's good and it works perfectly fine. If you want to use web2py use web2py. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Trying to run a Portable Python environment , to learn, etc... can i use Web2py?
duplicate of https://groups.google.com/d/msg/web2py/relzJz_v250/nWBBQLIx_2UJ On Monday, February 16, 2015 at 1:47:49 PM UTC+1, Charly Farley wrote: Found this VERY OLD link on Stackoverflow ... http://stackoverflow.com/questions/259160/did-anyone-try-portable-python quote .. Resolution You may want to check out *web2py* http://web2py.com/. The windows executable includes python and does run without installation for example from a usb drive, like portable python. But it includes more goodies such as a web server, web based editor and plug and play web applications. web2py is stable (currently version 1.46) web2py exposes a python shell web2py.exe -S yourappname -M There is also a web based python shell available. .. unquote I was wondering, is the above still applicable? Because of course, when Python is installed normally to windows, you start Python IDLE, you get a lot of flexibility, some elements of debugging and good error messages, etc So can I use Web2PY in the same way I can use IDLE ie as if it was installed, and write python scripts, run them, etc? Many 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 subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Groupby year on date field
it's the same method as extrapolating the count() part year_part = db.mydiary.Entry_Date.year() distinct_years = . for row in distinct_years: only_year = row[year_part] On Monday, February 16, 2015 at 10:19:17 AM UTC+1, Moiz Nagpurwala wrote: In my controller I have this code: sum_of_entries = db.mydiary.id.count() distinct_years = db(db.mydiary.id 0).select(sum_of_entries, db.mydiary. Entry_Date.year(), groupby=db.mydiary.Entry_Date.year(), orderby=~ sum_of_entries) In my view I'm trying to display the results in a loop like so: ul class=list-group {{for y in distinct_years:}} {{yr=y}} #cant extract the year part into yr variable {{count=y[sum_of_entries]}} #this extracts the count in a variable successfully li class=list-group-item{{=A(yr, _href=URL(year,args=yr))}}span class=badge pull-right{{=count}}/span/li {{pass}} /ul when I print the y it outputs this result: Row {'_extra': {'COUNT(mydiary.id)': 1L, 'EXTRACT(year FROM mydiary.Entry_Date)': 2001L}} Please guide me to extract the year part from this Row object. 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 subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: web2py wikia
Hi Massimo, thanks for your answer. Although I think the book is a very good resource for offline help (and to raise some money, I am waiting the publish of the sixth edition to buy it), it is statical and have something that complete and at the same time simple is really tough. I've seen web2pyslices before, but it isn't a proper wikia, is it? It's all mixed recipes and tips. Useful for the more experienced user but less attractive for a newcomer or user looking for a systematic approach to the informations. It is an improper comparation but, for example, when I was an Arch linux user I used their wikia really much and there you can find almost anything on the operating system and important program in repository. Priceless. I think the project may gain in visibility and easiness. Just my two cents, hoping they help. All the best -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Trying to run a Portable Python environment , to learn, etc... can i use Web2py?
Found this VERY OLD link on Stackoverflow ... http://stackoverflow.com/questions/259160/did-anyone-try-portable-python quote .. Resolution You may want to check out *web2py* http://web2py.com/. The windows executable includes python and does run without installation for example from a usb drive, like portable python. But it includes more goodies such as a web server, web based editor and plug and play web applications. web2py is stable (currently version 1.46) web2py exposes a python shell web2py.exe -S yourappname -M There is also a web based python shell available. .. unquote I was wondering, is the above still applicable? Because of course, when Python is installed normally to windows, you start Python IDLE, you get a lot of flexibility, some elements of debugging and good error messages, etc So can I use Web2PY in the same way I can use IDLE ie as if it was installed, and write python scripts, run them, etc? Many 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 subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: How to display the results of this query
Thanks a lot Massimo for your prompt and accurate answer. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Groupby year on date field
In my controller I have this code: sum_of_entries = db.mydiary.id.count() distinct_years = db(db.mydiary.id 0).select(sum_of_entries, db.mydiary. Entry_Date.year(), groupby=db.mydiary.Entry_Date.year(), orderby=~ sum_of_entries) In my view I'm trying to display the results in a loop like so: ul class=list-group {{for y in distinct_years:}} {{yr=y}} #cant extract the year part into yr variable {{count=y[sum_of_entries]}} #this extracts the count in a variable successfully li class=list-group-item{{=A(yr, _href=URL(year,args=yr))}}span class=badge pull-right{{=count}}/span/li {{pass}} /ul when I print the y it outputs this result: Row {'_extra': {'COUNT(mydiary.id)': 1L, 'EXTRACT(year FROM mydiary.Entry_Date)': 2001L}} Please guide me to extract the year part from this Row object. 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 subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: i am trying send email using web2py with gmail and using smtp setting i have attached all code
That's true ! All the issues I have experienced with sending email (*unable to send email*) from Web2Py via Gmail, have been caused by the 2-steps authentication which was enabled on my gmail account. In order for Web2Py to be able to send email via gmail: 1. Read Google instructions at https://support.google.com/mail/answer/1173270?hl=en 2. When logged in with your gmail account, go to https://security.google.com/settings/security/apppasswords?pli=1 and enter the once-only pwd Google provides with the app you intend to allow use the gmail services (I have mentioned Web2Py) 3. In the model where the mail services are defined - use exactly what's recommended in the W2P book with the new pwd mentioned above - and it works ! Thanks for mentioning it Michael NeoToren On Saturday, April 26, 2014 at 6:45:30 AM UTC-4, Michael Beller wrote: If you have two step authentication enabled in your gmail account you need to use an application specific password ... https://support.google.com/mail/answer/1173270?hl=en -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Web2py deployment with installer script.
Hi All, When installing on a ubuntu server with the install script does it configure the postgresql correctly? if it does what is the default DAL config to use it instead of SQLite? is there any harm in using SQLite in a production environment? Many Thanks, Simon -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] web2py as a portable python environment
Hi, I'm interested in learning python 2.7 but I do not wish to install it: rather, I'd like to leave it portable, on a usb stick. I came across this quite old post ... http://stackoverflow.com/questions/259160/did-anyone-try-portable-python The resolution is ... You may want to check out *web2py* http://web2py.com/. The windows executable includes python and does run without installation for example from a usb drive, like portable python. But it includes more goodies such as a web server, web based editor and plug and play web applications. web2py is stable (currently version 1.46) web2py exposes a python shell web2py.exe -S yourappname -M There is also a web based python shell available. .. It is an old post, so am wondering if the above Is still true, that I can use web2py to run scripts, etc? Can I assume the web based python shell is similar to Idle? 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 subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: IMPORTANT - WEB2PY CONSULTING
We have always been listing companies that do web2py support. Eventually we should have a certification program for consultants but that is another story. On Monday, 16 February 2015 18:42:41 UTC-6, Ramkrishan Bhatt wrote: Massimo site is enough or we need to pass some test to get include officially. Or any legal formality we need to do to become official web2py cunsultant. I also request if you can classified with domain/industry/solutions expert. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Options selected in form
Hi! Thanks Richard for your answer. I've solved my problem. Only I needed to ask if elementos is checked: if form.validate(): ... elementos = form.elements(_name=lista_tipos_asunto) for e in elementos: if e['_checked']=='checked': print e['_value'] With this I know if a option is checked Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] no email field in auth_user
Hello! I'm wonder if it is possible to disable (or remove) the field email from auth_user. In my application I don't need it. Thanks for any help. Regards. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] IMPORTANT - WEB2PY CONSULTING
Massimo site is enough or we need to pass some test to get include officially. Or any legal formality we need to do to become official web2py cunsultant. I also request if you can classified with domain/industry/solutions expert. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] IMPORTANT - WEB2PY CONSULTING
Massimo site is enough or we need to pass some test to get include officially. Or any legal formality we need to do to become official web2py cunsultant. I also request if you can classified with domain/industry/solutions expert. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: no email field in auth_user
You can ignore it by setting its readable and writable attributes to False. On Monday, February 16, 2015 at 8:44:56 PM UTC-5, José Eloy wrote: Hello! I wonder if it is possible to disable (or remove) the email field from auth_user. In my application I don't need it. Thanks for any help. Regards. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Return object from represent method of field
Hi, when i return a XML from the represent, it gives me a error. Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. Traceback (most recent call last): File /home/leonardo/PycharmProjects/lpfx_gie/web2py/gluon/restricted.py, line 224, in restricted exec ccode in environment File /home/leonardo/PycharmProjects/lpfx_gie/web2py/applications/gie/controllers/secretaria.py http://127.0.0.1:8000/admin/edit/gie/controllers/secretaria.py, line 771, in module File /home/leonardo/PycharmProjects/lpfx_gie/web2py/gluon/globals.py, line 393, in lambda self._caller = lambda f: f() File /home/leonardo/PycharmProjects/lpfx_gie/web2py/gluon/tools.py, line 3444, in f return action(*a, **b) File /home/leonardo/PycharmProjects/lpfx_gie/web2py/applications/gie/controllers/secretaria.py http://127.0.0.1:8000/admin/edit/gie/controllers/secretaria.py, line 416, in entradas exportclasses=classeExportar, orderby=~db.entrada_cartao_alunos.horario_entrada) File /home/leonardo/PycharmProjects/lpfx_gie/web2py/gluon/sqlhtml.py, line 2661, in grid value = field.formatter(value) File /home/leonardo/PycharmProjects/lpfx_gie/web2py/gluon/dal/objects.py, line 1636, in formatter value = item.formatter(value) File /home/leonardo/PycharmProjects/lpfx_gie/web2py/gluon/validators.py, line 2373, in formatter year = value.year AttributeError: 'XML' object has no attribute 'year' But when i remove the XML, it gives me no error. So, The represent of the field has limitation? I'm tryng to return a attr html type. That's the content of the represent method dt_str = valor.strftime(%H:%M:%S %d/%m/%Y) return XML('abbr title=%s%s/abbr' % (valor.strftime(%A).title(), dt_str)) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Testing and web2py - especially appadmin
first to the party, latest to the thread. https://github.com/niphlod/welcome_augmented -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] google trends about web2py
i found dificult to get google trenes to compare web2py, flask, django, rails,etc http://www.google.pt/trends/explore#q=%2Fm%2F0dgs72v%2C%20web2py%2C%20%2Fm%2F06y_qx%2C%20%2Fm%2F0505clcmpt=qtz= only web2py is not detected as a webframework when you press the web2py word Comments please António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] IMPORTANT - WEB2PY CONSULTING
Good Day, Massimo, the site of itjp, needs changes, I agree, but the current site talking on web2py, made with web2py. If this layout is approved to signal me with a ok. domingo, 15 de fevereiro de 2015, Massimo Di Pierro massimo.dipie...@gmail.com escreveu: We need to update the list of companies that provide web2py consulting. This list is obsolete: http://web2py.com/init/default/support Some links are broke. Most pages do not even mention web2py. Some of them have a design that is simply not acceptable for a web development company. That list will be eliminated. IF YOU WANT TO BE LISTED please update your page to have a decent design and MENTION WEB2PY on the main site. Then respond to this thread by providing an updated link and the country were you incorporated. If you have a self-employed individual list your country of residence. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com javascript:_e(%7B%7D,'cvml','web2py%2bunsubscr...@googlegroups.com');. For more options, visit https://groups.google.com/d/optout. -- [image: http://itjp.net.br] http://itjp.net.br http://itjp.net.b http://itjp.net.brr *Ovidio Marinho Falcao Neto* ovidio...@gmail.com Diretoria de Desenvolvimento João Pessoa- Paraiba Brasil Fone: +55(83) 8826-9088 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] IMPORTANT - WEB2PY CONSULTING
Sorry my link is this http://itjp.net.br Em domingo, 15 de fevereiro de 2015, Massimo Di Pierro massimo.dipie...@gmail.com escreveu: We need to update the list of companies that provide web2py consulting. This list is obsolete: http://web2py.com/init/default/support Some links are broke. Most pages do not even mention web2py. Some of them have a design that is simply not acceptable for a web development company. That list will be eliminated. IF YOU WANT TO BE LISTED please update your page to have a decent design and MENTION WEB2PY on the main site. Then respond to this thread by providing an updated link and the country were you incorporated. If you have a self-employed individual list your country of residence. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com javascript:_e(%7B%7D,'cvml','web2py%2bunsubscr...@googlegroups.com');. For more options, visit https://groups.google.com/d/optout. -- [image: http://itjp.net.br] http://itjp.net.br http://itjp.net.b http://itjp.net.brr *Ovidio Marinho Falcao Neto* ovidio...@gmail.com Diretoria de Desenvolvimento João Pessoa- Paraiba Brasil Fone: +55(83) 8826-9088 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.