[web2py] Re: Show button in SQLFORM only if a value is present?
use the links argument links = [ ... dict(header='additional buttons', body=lambda row: BUTTON(.) if row.needs_button == 0 else '' ) ] On Thursday, June 11, 2015 at 12:45:29 AM UTC+2, LoveWeb2py wrote: I should have been more specific. I meant I want to create a SQLFORM.grid button and only have it show if a row.id value is present On Wednesday, June 10, 2015 at 5:42:33 PM UTC-4, LoveWeb2py wrote: I'd like to create a SQLFORM button, but only show the button if a value is present in the cell. Is this possible? I'm thinking of creating a function that will check to see if each record has a value present in the field for example: define_table('my_sqldata', Field('name', Field('address', migrate=False) if my_sqldata.address != '' then show icon in SQLFORM else: show nothing Is this possible? -- 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: Expose public ip address with SOAP
it seems that web2py uses request.env.wsgi_url_scheme, request.env.http_host to build the url. How is your server configured ? -- 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: Show button in SQLFORM only if a value is present?
Niphlod!! This is perfect! Exactly what I was looking for. Thank you! On Thursday, June 11, 2015 at 4:53:52 AM UTC-4, Niphlod wrote: use the links argument links = [ ... dict(header='additional buttons', body=lambda row: BUTTON(.) if row.needs_button == 0 else '' ) ] On Thursday, June 11, 2015 at 12:45:29 AM UTC+2, LoveWeb2py wrote: I should have been more specific. I meant I want to create a SQLFORM.grid button and only have it show if a row.id value is present On Wednesday, June 10, 2015 at 5:42:33 PM UTC-4, LoveWeb2py wrote: I'd like to create a SQLFORM button, but only show the button if a value is present in the cell. Is this possible? I'm thinking of creating a function that will check to see if each record has a value present in the field for example: define_table('my_sqldata', Field('name', Field('address', migrate=False) if my_sqldata.address != '' then show icon in SQLFORM else: show nothing Is this possible? -- 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] How to register custom events in auth_event?
Hi @ll! After performing a specific operation system, I need the record in auth_event. How to do? thanks in advance, Fabiano. -- 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] change soap wsdl targetnamespace
Hi, I want to change the target namespace to http://tempuri.org/; in the SOAP WSDL xml file. From the pysimplesoap's server.py, I see that I can specify it in SoapDispatcher class with namespace parameter. But I wonder how can I specify it in web2py controller's @service.soap decorator. From the code of /gluon/tools.py, it seems that the namespace could be given by setting response.namespace def serve_soap(self, version=1.1): try: from gluon.contrib.pysimplesoap.server import SoapDispatcher except: return pysimplesoap not installed in contrib request = current.request response = current.response procedures = self.soap_procedures location = %s://%s%s % ( request.env.wsgi_url_scheme, request.env.http_host, URL(r=request, f=call/soap, vars={})) *namespace = 'namespace' in response and response.namespace or location* documentation = response.description or '' dispatcher = SoapDispatcher( name=response.title, location=location, action=location, # SOAPAction namespace=namespace, prefix='pys', documentation=documentation, ns=True) I wonder how I can set response.namespace directly from web2py controller. A working example will be very nice. 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] Basic usage statistics
Minor implementation details aside, has anyone came up with a better way to do this? http://www.web2pyslices.com/slice/show/1618/basic-usage-statistics-log-what-your-users-do Particularly, in terms of not hitting the database so much. I'm thinking of making my own system but I may as well ask before reinventing the wheel. -- 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] Basic usage statistics
You may consider, log in memory and write once you have an hundred records with scheduler... This could be a great improve and a better log system on that matter... So far, with more then an hundred user, it never been an issue... Richard On Thu, Jun 11, 2015 at 12:55 PM, Leonel Câmara leonelcam...@gmail.com wrote: Minor implementation details aside, has anyone came up with a better way to do this? http://www.web2pyslices.com/slice/show/1618/basic-usage-statistics-log-what-your-users-do Particularly, in terms of not hitting the database so much. I'm thinking of making my own system but I may as well ask before reinventing the wheel. -- 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. -- 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] Basic usage statistics
I am not sure though that this is possible, I mean, is there a way to db.table.insert() without db.commit() even if other change are commited... Or say differently, is possible to specifically commit db operation?? You may also just remove the db.commit() and insert will be commited the next time db.commit() will be call. I never try this... Richard On Thu, Jun 11, 2015 at 1:03 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: You may consider, log in memory and write once you have an hundred records with scheduler... This could be a great improve and a better log system on that matter... So far, with more then an hundred user, it never been an issue... Richard On Thu, Jun 11, 2015 at 12:55 PM, Leonel Câmara leonelcam...@gmail.com wrote: Minor implementation details aside, has anyone came up with a better way to do this? http://www.web2pyslices.com/slice/show/1618/basic-usage-statistics-log-what-your-users-do Particularly, in terms of not hitting the database so much. I'm thinking of making my own system but I may as well ask before reinventing the wheel. -- 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. -- 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] Basic usage statistics
Also Leonel, if you have an app that really requires more then that (I mean not an in house intranet app) you may consider Piwik : http://piwik.org/ Richard On Thu, Jun 11, 2015 at 1:09 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: I am not sure though that this is possible, I mean, is there a way to db.table.insert() without db.commit() even if other change are commited... Or say differently, is possible to specifically commit db operation?? You may also just remove the db.commit() and insert will be commited the next time db.commit() will be call. I never try this... Richard On Thu, Jun 11, 2015 at 1:03 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: You may consider, log in memory and write once you have an hundred records with scheduler... This could be a great improve and a better log system on that matter... So far, with more then an hundred user, it never been an issue... Richard On Thu, Jun 11, 2015 at 12:55 PM, Leonel Câmara leonelcam...@gmail.com wrote: Minor implementation details aside, has anyone came up with a better way to do this? http://www.web2pyslices.com/slice/show/1618/basic-usage-statistics-log-what-your-users-do Particularly, in terms of not hitting the database so much. I'm thinking of making my own system but I may as well ask before reinventing the wheel. -- 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. -- 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 register custom events in auth_event?
origin = '' description='' db.auth_event.insert(time_stamp=request.now, client_ip=request.client, user_id=auth.user.id, origin=origin, description=description) Em quinta-feira, 11 de junho de 2015 13:20:29 UTC-3, Fabiano Almeida escreveu: Hi @ll! After performing a specific operation system, I need the record in auth_event. How to do? thanks in advance, Fabiano. -- 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] Re: Sublime Text web2py plugin
Don't want to go Off Topic, but if we can just have auto complete in the web2py web based IDE, then what does the sublime provides extra over what we already have? I like sublime. That's not the point. I believe the current IDE is good for what it does just need the auto complete and few minor add ons. On Thursday, June 11, 2015 at 9:21:41 AM UTC-4, Ramos wrote: I got a database locked error opening web2py shell in sublime I think this is a sqlite problem right ? 2015-06-11 14:15 GMT+01:00 António Ramos ramst...@gmail.com javascript: : just saw it in sublime-settings 2015-06-11 14:07 GMT+01:00 António Ramos ramst...@gmail.com javascript:: SO COOL!! the w2py shell what is the admin password that it sets when starts the server ? 2015-06-11 14:01 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com javascript:: Hi Everyone, I just tweaked the plug-in a little bit. Please uninstall the plug-in completely and install it again to get it work Steps are the following: 1. Package Control - Remove Package - W2P 2. Restart Sublime 3. Package Control - Install Package - W2P 4. Restart Sublime Sorry for the inconvenience Regards Greg 2015. június 10., szerda 16:10:41 UTC+2 időpontban Ramos a következőt írta: thank u 2015-06-10 14:18 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com: It should create a new entry in Tools - SublimeREPL - Web2py {app_name} I will check it again in the source code 2015. június 10., szerda 14:12:31 UTC+2 időpontban Ramos a következőt írta: I still have the same problem. Should i see something like web2py in Tools - Python -? thank u 2015-06-10 6:30 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com: Hi Ramos, I fixed an issue in the Add REPL support command I pushed the changes so w2p plugin should be updated automagicly via PackageControl. If you still have issues please let me know Regards Greg 2015. június 9., kedd 17:38:25 UTC+2 időpontban Ramos a következőt írta: I cant install web2py sublimeRepl via W2p:Add sublimeREPL support Just see on status bar Loading Repositories and nothing more then i search for it and i get this only [image: Imagem inline 1] Any help ? i´m on windows 7 2015-05-21 17:21 GMT+01:00 António Ramos ramst...@gmail.com: XDebug looks nice but is for php only ? 2015-05-20 20:05 GMT+01:00 Ron Chatterjee achatte...@gmail.com: Few good links for sublime I thought I can share within the community if anyone is interested. The django sublime interface walks you through the entire sublime setup. I am sure, web2py will be same. That said, I couldn't have the ipython and terminal working like anaconda. Or may be this is the best sublime can do. plugins available for debugging; for example: http://www.sitepoint.com/debugging-xdebug-sublime-text-3/ Plugins for Python development: https://packagecontrol.io/packages/IPython%20Notebook https://nipunbatra.wordpress.com/2014/01/30/plugins-for-python-development-in-sublime-text/ Navigating projects: http://www.joshuawinn.com/understanding-projects-in-sublime-text-saving-switching-etc/ Package management: https://packagecontrol.io/installation Django interface: http://www.marinamele.com/2014/03/install-and-configure-sublime-text-3.html On Wednesday, May 20, 2015 at 3:16:42 AM UTC-4, Gergely Orosz wrote: Hi Ron, To be honest I am still learning the advanced features of Sublime, Python and Web2py :) I am not familiar with ipython package unfortunately. I am using SublimeREPL package to open interactive shell in Sublime. You can open as many interactive shell as many you want. Sublime open a new tab for the shell and you can evaluate commands there. What do you mean by integrating project with ipython. Web2py has an option to start ipython shell I think if installed that is the default shell. Hope I could help. If you have any question drop me a mail Regards Greg Ron Chatterjee achatte...@gmail.com ezt írta (időpont: 2015. máj. 20., Sze, 1:43): This is great. I just started looking at sublime text. This is not a web2py question but since you are so familiar with sublime Gergely, let me ask the question anyway...in sublime, all I see a python terminal. I don't see a command prompt or ipython terminal. I have installed the ipython from install packages. How do I add more terminal into sublime? Also, integrating Ipython with the project so all the variable shows up in the workspace. Any thoughts? On Tuesday, May 19, 2015 at 5:00:58 AM UTC-4, Gergely Orosz wrote: Hi Ramos, It some bug in SublimeREPL it is not related the W2P plugin. I was away on holiday and the development slowed down a bit but I am going to make a tutorial video how to use the plugin Also started implementing the open controller from view command 2015. május 7., csütörtök 15:15:09 UTC+2 időpontban Ramos a következőt írta: if i
[web2py] Re: Basic usage statistics
Google has, it's called Google Analytics. There are alternatives out there. You could also use your web server log files. On Thursday, June 11, 2015 at 9:55:18 AM UTC-7, Leonel Câmara wrote: Minor implementation details aside, has anyone came up with a better way to do this? http://www.web2pyslices.com/slice/show/1618/basic-usage-statistics-log-what-your-users-do Particularly, in terms of not hitting the database so much. I'm thinking of making my own system but I may as well ask before reinventing the wheel. -- 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] nginx, uwsgi, profiler
I have tried the option -F with a simple web2py start: python web2py.py -F profilerdir... Works fine, no problem. But now I want to do the same with nginx and emperor: where is the place to add the -F parameter? And, by the way, is there a web2py app to read and display the *.prof files? I have only found cprofilev (https://github.com/ymichael/cprofilev). Regards, Martin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/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 register custom events in auth_event?
please take a look at this discussion : https://groups.google.com/forum/#!topic/web2py/sp4fpYz36HI best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/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] Re: Basic usage statistics
For LAN Piwik!! Richard On Thu, Jun 11, 2015 at 2:36 PM, Derek sp1d...@gmail.com wrote: Google has, it's called Google Analytics. There are alternatives out there. You could also use your web server log files. On Thursday, June 11, 2015 at 9:55:18 AM UTC-7, Leonel Câmara wrote: Minor implementation details aside, has anyone came up with a better way to do this? http://www.web2pyslices.com/slice/show/1618/basic-usage-statistics-log-what-your-users-do Particularly, in terms of not hitting the database so much. I'm thinking of making my own system but I may as well ask before reinventing the wheel. -- 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. -- 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: Basic usage statistics
you could use a redis queue to push events into, and then a scheduler tasks that consolidates the data in a table once in a while. On Thursday, June 11, 2015 at 6:55:18 PM UTC+2, Leonel Câmara wrote: Minor implementation details aside, has anyone came up with a better way to do this? http://www.web2pyslices.com/slice/show/1618/basic-usage-statistics-log-what-your-users-do Particularly, in terms of not hitting the database so much. I'm thinking of making my own system but I may as well ask before reinventing the wheel. -- 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] Re: Basic usage statistics
Not sure how you can know which user access what without using my usage statistics stuff... With Piwik or Google Analytic you will rely on IP address? I use Google Analytic a little long time ago... Richard On Thu, Jun 11, 2015 at 3:10 PM, Niphlod niph...@gmail.com wrote: you could use a redis queue to push events into, and then a scheduler tasks that consolidates the data in a table once in a while. On Thursday, June 11, 2015 at 6:55:18 PM UTC+2, Leonel Câmara wrote: Minor implementation details aside, has anyone came up with a better way to do this? http://www.web2pyslices.com/slice/show/1618/basic-usage-statistics-log-what-your-users-do Particularly, in terms of not hitting the database so much. I'm thinking of making my own system but I may as well ask before reinventing the wheel. -- 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. -- 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: nginx, uwsgi, profiler
runsnakerun is the best tool for the job. for running with profiler and another webserver, you need to tweak wsgihandler.py pass a directory to profiler_dir On Thursday, June 11, 2015 at 8:39:45 PM UTC+2, mweissen wrote: I have tried the option -F with a simple web2py start: python web2py.py -F profilerdir... Works fine, no problem. But now I want to do the same with nginx and emperor: where is the place to add the -F parameter? And, by the way, is there a web2py app to read and display the *.prof files? I have only found cprofilev (https://github.com/ymichael/cprofilev ). Regards, Martin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/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: change soap wsdl targetnamespace
isn't a simple def what_you_serve(): ..foo bar response.namespace = 'http://tempuri.org/' return dict(a=1) working ? On Thursday, June 11, 2015 at 6:36:31 PM UTC+2, Pengfei Yu wrote: Hi, I want to change the target namespace to http://tempuri.org/; in the SOAP WSDL xml file. From the pysimplesoap's server.py, I see that I can specify it in SoapDispatcher class with namespace parameter. But I wonder how can I specify it in web2py controller's @service.soap decorator. From the code of /gluon/tools.py, it seems that the namespace could be given by setting response.namespace def serve_soap(self, version=1.1): try: from gluon.contrib.pysimplesoap.server import SoapDispatcher except: return pysimplesoap not installed in contrib request = current.request response = current.response procedures = self.soap_procedures location = %s://%s%s % ( request.env.wsgi_url_scheme, request.env.http_host, URL(r=request, f=call/soap, vars={})) *namespace = 'namespace' in response and response.namespace or location* documentation = response.description or '' dispatcher = SoapDispatcher( name=response.title, location=location, action=location, # SOAPAction namespace=namespace, prefix='pys', documentation=documentation, ns=True) I wonder how I can set response.namespace directly from web2py controller. A working example will be very nice. 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: change soap wsdl targetnamespace
Yeah, you are right. Stupid question. I am not familiar with how response works. def call(): response.namespace = 'http://tempuri.org/' return service() This is enough in call() function. Thanks! On Thursday, June 11, 2015 at 3:18:13 PM UTC-4, Niphlod wrote: isn't a simple def what_you_serve(): ..foo bar response.namespace = 'http://tempuri.org/' return dict(a=1) working ? On Thursday, June 11, 2015 at 6:36:31 PM UTC+2, Pengfei Yu wrote: Hi, I want to change the target namespace to http://tempuri.org/; in the SOAP WSDL xml file. From the pysimplesoap's server.py, I see that I can specify it in SoapDispatcher class with namespace parameter. But I wonder how can I specify it in web2py controller's @service.soap decorator. From the code of /gluon/tools.py, it seems that the namespace could be given by setting response.namespace def serve_soap(self, version=1.1): try: from gluon.contrib.pysimplesoap.server import SoapDispatcher except: return pysimplesoap not installed in contrib request = current.request response = current.response procedures = self.soap_procedures location = %s://%s%s % ( request.env.wsgi_url_scheme, request.env.http_host, URL(r=request, f=call/soap, vars={})) *namespace = 'namespace' in response and response.namespace or location* documentation = response.description or '' dispatcher = SoapDispatcher( name=response.title, location=location, action=location, # SOAPAction namespace=namespace, prefix='pys', documentation=documentation, ns=True) I wonder how I can set response.namespace directly from web2py controller. A working example will be very nice. 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: change soap wsdl targetnamespace
even in the called function should be enough. On Thursday, June 11, 2015 at 9:39:32 PM UTC+2, Pengfei Yu wrote: Yeah, you are right. Stupid question. I am not familiar with how response works. def call(): response.namespace = 'http://tempuri.org/' return service() This is enough in call() function. Thanks! On Thursday, June 11, 2015 at 3:18:13 PM UTC-4, Niphlod wrote: isn't a simple def what_you_serve(): ..foo bar response.namespace = 'http://tempuri.org/' return dict(a=1) working ? On Thursday, June 11, 2015 at 6:36:31 PM UTC+2, Pengfei Yu wrote: Hi, I want to change the target namespace to http://tempuri.org/; in the SOAP WSDL xml file. From the pysimplesoap's server.py, I see that I can specify it in SoapDispatcher class with namespace parameter. But I wonder how can I specify it in web2py controller's @service.soap decorator. From the code of /gluon/tools.py, it seems that the namespace could be given by setting response.namespace def serve_soap(self, version=1.1): try: from gluon.contrib.pysimplesoap.server import SoapDispatcher except: return pysimplesoap not installed in contrib request = current.request response = current.response procedures = self.soap_procedures location = %s://%s%s % ( request.env.wsgi_url_scheme, request.env.http_host, URL(r=request, f=call/soap, vars={})) *namespace = 'namespace' in response and response.namespace or location* documentation = response.description or '' dispatcher = SoapDispatcher( name=response.title, location=location, action=location, # SOAPAction namespace=namespace, prefix='pys', documentation=documentation, ns=True) I wonder how I can set response.namespace directly from web2py controller. A working example will be very nice. 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.
Re: [web2py] Re: Sublime Text web2py plugin
Hi Everyone, I just tweaked the plug-in a little bit. Please uninstall the plug-in completely and install it again to get it work Steps are the following: 1. Package Control - Remove Package - W2P 2. Restart Sublime 3. Package Control - Install Package - W2P 4. Restart Sublime Sorry for the inconvenience Regards Greg 2015. június 10., szerda 16:10:41 UTC+2 időpontban Ramos a következőt írta: thank u 2015-06-10 14:18 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com javascript:: It should create a new entry in Tools - SublimeREPL - Web2py {app_name} I will check it again in the source code 2015. június 10., szerda 14:12:31 UTC+2 időpontban Ramos a következőt írta: I still have the same problem. Should i see something like web2py in Tools - Python -? thank u 2015-06-10 6:30 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com: Hi Ramos, I fixed an issue in the Add REPL support command I pushed the changes so w2p plugin should be updated automagicly via PackageControl. If you still have issues please let me know Regards Greg 2015. június 9., kedd 17:38:25 UTC+2 időpontban Ramos a következőt írta: I cant install web2py sublimeRepl via W2p:Add sublimeREPL support Just see on status bar Loading Repositories and nothing more then i search for it and i get this only [image: Imagem inline 1] Any help ? i´m on windows 7 2015-05-21 17:21 GMT+01:00 António Ramos ramst...@gmail.com: XDebug looks nice but is for php only ? 2015-05-20 20:05 GMT+01:00 Ron Chatterjee achatte...@gmail.com: Few good links for sublime I thought I can share within the community if anyone is interested. The django sublime interface walks you through the entire sublime setup. I am sure, web2py will be same. That said, I couldn't have the ipython and terminal working like anaconda. Or may be this is the best sublime can do. plugins available for debugging; for example: http://www.sitepoint.com/debugging-xdebug-sublime-text-3/ Plugins for Python development: https://packagecontrol.io/packages/IPython%20Notebook https://nipunbatra.wordpress.com/2014/01/30/plugins-for-python-development-in-sublime-text/ Navigating projects: http://www.joshuawinn.com/understanding-projects-in-sublime-text-saving-switching-etc/ Package management: https://packagecontrol.io/installation Django interface: http://www.marinamele.com/2014/03/install-and-configure-sublime-text-3.html On Wednesday, May 20, 2015 at 3:16:42 AM UTC-4, Gergely Orosz wrote: Hi Ron, To be honest I am still learning the advanced features of Sublime, Python and Web2py :) I am not familiar with ipython package unfortunately. I am using SublimeREPL package to open interactive shell in Sublime. You can open as many interactive shell as many you want. Sublime open a new tab for the shell and you can evaluate commands there. What do you mean by integrating project with ipython. Web2py has an option to start ipython shell I think if installed that is the default shell. Hope I could help. If you have any question drop me a mail Regards Greg Ron Chatterjee achatte...@gmail.com ezt írta (időpont: 2015. máj. 20., Sze, 1:43): This is great. I just started looking at sublime text. This is not a web2py question but since you are so familiar with sublime Gergely, let me ask the question anyway...in sublime, all I see a python terminal. I don't see a command prompt or ipython terminal. I have installed the ipython from install packages. How do I add more terminal into sublime? Also, integrating Ipython with the project so all the variable shows up in the workspace. Any thoughts? On Tuesday, May 19, 2015 at 5:00:58 AM UTC-4, Gergely Orosz wrote: Hi Ramos, It some bug in SublimeREPL it is not related the W2P plugin. I was away on holiday and the development slowed down a bit but I am going to make a tutorial video how to use the plugin Also started implementing the open controller from view command 2015. május 7., csütörtök 15:15:09 UTC+2 időpontban Ramos a következőt írta: if i open console i see this before installing SublimeREPL warning: mnemonic r not found in menu caption SublimeREPL warning: mnemonic r not found in menu caption Ruby warning: mnemonic p not found in menu caption Python warning: mnemonic d not found in menu caption Python - PDB current file warning: mnemonic d not found in menu caption Python - RUN current file warning: mnemonic p not found in menu caption Python - IPython warning: mnemonic f not found in menu caption F# warning: mnemonic d not found in menu caption GDB warning: mnemonic g not found in menu caption Groovy warning: mnemonic h not found in menu caption Haskell warning: mnemonic i not found in menu caption Io warning: mnemonic l not found in menu caption Lua warning: mnemonic m not found in menu caption Matlab warning: mnemonic m not found in menu caption MozRepl warning:
[web2py] Re: caching model data
Niphlod, I have a small app the DB is getting big quickly and was asked to do a cache layer..I just started started to learn about it and i'm already lost. Could you point the direction to a newbie how to do it? Is it just some code change in web2py? I saw there is this Redis but didn't read yet how it works together with web2py and if it is this the way to do this cache layer. Em quarta-feira, 24 de dezembro de 2014 16:10:15 UTC-2, Niphlod escreveu: so, what's the issue you're facing ? On Wednesday, December 24, 2014 12:29:24 PM UTC+1, harsha tanguturi wrote: I would like to cache the model data i.e., caching the selects and update the cache whenever the data is updated. Putting simply a caching layer has to present before the database layer and any changes to the database should be reflected in cache too. -- 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] Re: Sublime Text web2py plugin
SO COOL!! the w2py shell what is the admin password that it sets when starts the server ? 2015-06-11 14:01 GMT+01:00 Gergely Orosz oroszgergely840...@gmail.com: Hi Everyone, I just tweaked the plug-in a little bit. Please uninstall the plug-in completely and install it again to get it work Steps are the following: 1. Package Control - Remove Package - W2P 2. Restart Sublime 3. Package Control - Install Package - W2P 4. Restart Sublime Sorry for the inconvenience Regards Greg 2015. június 10., szerda 16:10:41 UTC+2 időpontban Ramos a következőt írta: thank u 2015-06-10 14:18 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com: It should create a new entry in Tools - SublimeREPL - Web2py {app_name} I will check it again in the source code 2015. június 10., szerda 14:12:31 UTC+2 időpontban Ramos a következőt írta: I still have the same problem. Should i see something like web2py in Tools - Python -? thank u 2015-06-10 6:30 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com: Hi Ramos, I fixed an issue in the Add REPL support command I pushed the changes so w2p plugin should be updated automagicly via PackageControl. If you still have issues please let me know Regards Greg 2015. június 9., kedd 17:38:25 UTC+2 időpontban Ramos a következőt írta: I cant install web2py sublimeRepl via W2p:Add sublimeREPL support Just see on status bar Loading Repositories and nothing more then i search for it and i get this only [image: Imagem inline 1] Any help ? i´m on windows 7 2015-05-21 17:21 GMT+01:00 António Ramos ramst...@gmail.com: XDebug looks nice but is for php only ? 2015-05-20 20:05 GMT+01:00 Ron Chatterjee achatte...@gmail.com: Few good links for sublime I thought I can share within the community if anyone is interested. The django sublime interface walks you through the entire sublime setup. I am sure, web2py will be same. That said, I couldn't have the ipython and terminal working like anaconda. Or may be this is the best sublime can do. plugins available for debugging; for example: http://www.sitepoint.com/debugging-xdebug-sublime-text-3/ Plugins for Python development: https://packagecontrol.io/packages/IPython%20Notebook https://nipunbatra.wordpress.com/2014/01/30/plugins-for-python-development-in-sublime-text/ Navigating projects: http://www.joshuawinn.com/understanding-projects-in-sublime-text-saving-switching-etc/ Package management: https://packagecontrol.io/installation Django interface: http://www.marinamele.com/2014/03/install-and-configure-sublime-text-3.html On Wednesday, May 20, 2015 at 3:16:42 AM UTC-4, Gergely Orosz wrote: Hi Ron, To be honest I am still learning the advanced features of Sublime, Python and Web2py :) I am not familiar with ipython package unfortunately. I am using SublimeREPL package to open interactive shell in Sublime. You can open as many interactive shell as many you want. Sublime open a new tab for the shell and you can evaluate commands there. What do you mean by integrating project with ipython. Web2py has an option to start ipython shell I think if installed that is the default shell. Hope I could help. If you have any question drop me a mail Regards Greg Ron Chatterjee achatte...@gmail.com ezt írta (időpont: 2015. máj. 20., Sze, 1:43): This is great. I just started looking at sublime text. This is not a web2py question but since you are so familiar with sublime Gergely, let me ask the question anyway...in sublime, all I see a python terminal. I don't see a command prompt or ipython terminal. I have installed the ipython from install packages. How do I add more terminal into sublime? Also, integrating Ipython with the project so all the variable shows up in the workspace. Any thoughts? On Tuesday, May 19, 2015 at 5:00:58 AM UTC-4, Gergely Orosz wrote: Hi Ramos, It some bug in SublimeREPL it is not related the W2P plugin. I was away on holiday and the development slowed down a bit but I am going to make a tutorial video how to use the plugin Also started implementing the open controller from view command 2015. május 7., csütörtök 15:15:09 UTC+2 időpontban Ramos a következőt írta: if i open console i see this before installing SublimeREPL warning: mnemonic r not found in menu caption SublimeREPL warning: mnemonic r not found in menu caption Ruby warning: mnemonic p not found in menu caption Python warning: mnemonic d not found in menu caption Python - PDB current file warning: mnemonic d not found in menu caption Python - RUN current file warning: mnemonic p not found in menu caption Python - IPython warning: mnemonic f not found in menu caption F# warning: mnemonic d not found in menu caption GDB warning: mnemonic g not found in menu caption Groovy warning: mnemonic h not found in menu caption Haskell warning: mnemonic i not found in menu caption Io warning: mnemonic l not found in
Re: [web2py] Re: Sublime Text web2py plugin
just saw it in sublime-settings 2015-06-11 14:07 GMT+01:00 António Ramos ramstei...@gmail.com: SO COOL!! the w2py shell what is the admin password that it sets when starts the server ? 2015-06-11 14:01 GMT+01:00 Gergely Orosz oroszgergely840...@gmail.com: Hi Everyone, I just tweaked the plug-in a little bit. Please uninstall the plug-in completely and install it again to get it work Steps are the following: 1. Package Control - Remove Package - W2P 2. Restart Sublime 3. Package Control - Install Package - W2P 4. Restart Sublime Sorry for the inconvenience Regards Greg 2015. június 10., szerda 16:10:41 UTC+2 időpontban Ramos a következőt írta: thank u 2015-06-10 14:18 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com: It should create a new entry in Tools - SublimeREPL - Web2py {app_name} I will check it again in the source code 2015. június 10., szerda 14:12:31 UTC+2 időpontban Ramos a következőt írta: I still have the same problem. Should i see something like web2py in Tools - Python -? thank u 2015-06-10 6:30 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com: Hi Ramos, I fixed an issue in the Add REPL support command I pushed the changes so w2p plugin should be updated automagicly via PackageControl. If you still have issues please let me know Regards Greg 2015. június 9., kedd 17:38:25 UTC+2 időpontban Ramos a következőt írta: I cant install web2py sublimeRepl via W2p:Add sublimeREPL support Just see on status bar Loading Repositories and nothing more then i search for it and i get this only [image: Imagem inline 1] Any help ? i´m on windows 7 2015-05-21 17:21 GMT+01:00 António Ramos ramst...@gmail.com: XDebug looks nice but is for php only ? 2015-05-20 20:05 GMT+01:00 Ron Chatterjee achatte...@gmail.com: Few good links for sublime I thought I can share within the community if anyone is interested. The django sublime interface walks you through the entire sublime setup. I am sure, web2py will be same. That said, I couldn't have the ipython and terminal working like anaconda. Or may be this is the best sublime can do. plugins available for debugging; for example: http://www.sitepoint.com/debugging-xdebug-sublime-text-3/ Plugins for Python development: https://packagecontrol.io/packages/IPython%20Notebook https://nipunbatra.wordpress.com/2014/01/30/plugins-for-python-development-in-sublime-text/ Navigating projects: http://www.joshuawinn.com/understanding-projects-in-sublime-text-saving-switching-etc/ Package management: https://packagecontrol.io/installation Django interface: http://www.marinamele.com/2014/03/install-and-configure-sublime-text-3.html On Wednesday, May 20, 2015 at 3:16:42 AM UTC-4, Gergely Orosz wrote: Hi Ron, To be honest I am still learning the advanced features of Sublime, Python and Web2py :) I am not familiar with ipython package unfortunately. I am using SublimeREPL package to open interactive shell in Sublime. You can open as many interactive shell as many you want. Sublime open a new tab for the shell and you can evaluate commands there. What do you mean by integrating project with ipython. Web2py has an option to start ipython shell I think if installed that is the default shell. Hope I could help. If you have any question drop me a mail Regards Greg Ron Chatterjee achatte...@gmail.com ezt írta (időpont: 2015. máj. 20., Sze, 1:43): This is great. I just started looking at sublime text. This is not a web2py question but since you are so familiar with sublime Gergely, let me ask the question anyway...in sublime, all I see a python terminal. I don't see a command prompt or ipython terminal. I have installed the ipython from install packages. How do I add more terminal into sublime? Also, integrating Ipython with the project so all the variable shows up in the workspace. Any thoughts? On Tuesday, May 19, 2015 at 5:00:58 AM UTC-4, Gergely Orosz wrote: Hi Ramos, It some bug in SublimeREPL it is not related the W2P plugin. I was away on holiday and the development slowed down a bit but I am going to make a tutorial video how to use the plugin Also started implementing the open controller from view command 2015. május 7., csütörtök 15:15:09 UTC+2 időpontban Ramos a következőt írta: if i open console i see this before installing SublimeREPL warning: mnemonic r not found in menu caption SublimeREPL warning: mnemonic r not found in menu caption Ruby warning: mnemonic p not found in menu caption Python warning: mnemonic d not found in menu caption Python - PDB current file warning: mnemonic d not found in menu caption Python - RUN current file warning: mnemonic p not found in menu caption Python - IPython warning: mnemonic f not found in menu caption F# warning: mnemonic d not found in menu caption GDB warning: mnemonic g not found in menu caption Groovy warning: mnemonic h not found in menu
Re: [web2py] Re: Sublime Text web2py plugin
I got a database locked error opening web2py shell in sublime I think this is a sqlite problem right ? 2015-06-11 14:15 GMT+01:00 António Ramos ramstei...@gmail.com: just saw it in sublime-settings 2015-06-11 14:07 GMT+01:00 António Ramos ramstei...@gmail.com: SO COOL!! the w2py shell what is the admin password that it sets when starts the server ? 2015-06-11 14:01 GMT+01:00 Gergely Orosz oroszgergely840...@gmail.com: Hi Everyone, I just tweaked the plug-in a little bit. Please uninstall the plug-in completely and install it again to get it work Steps are the following: 1. Package Control - Remove Package - W2P 2. Restart Sublime 3. Package Control - Install Package - W2P 4. Restart Sublime Sorry for the inconvenience Regards Greg 2015. június 10., szerda 16:10:41 UTC+2 időpontban Ramos a következőt írta: thank u 2015-06-10 14:18 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com: It should create a new entry in Tools - SublimeREPL - Web2py {app_name} I will check it again in the source code 2015. június 10., szerda 14:12:31 UTC+2 időpontban Ramos a következőt írta: I still have the same problem. Should i see something like web2py in Tools - Python -? thank u 2015-06-10 6:30 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com: Hi Ramos, I fixed an issue in the Add REPL support command I pushed the changes so w2p plugin should be updated automagicly via PackageControl. If you still have issues please let me know Regards Greg 2015. június 9., kedd 17:38:25 UTC+2 időpontban Ramos a következőt írta: I cant install web2py sublimeRepl via W2p:Add sublimeREPL support Just see on status bar Loading Repositories and nothing more then i search for it and i get this only [image: Imagem inline 1] Any help ? i´m on windows 7 2015-05-21 17:21 GMT+01:00 António Ramos ramst...@gmail.com: XDebug looks nice but is for php only ? 2015-05-20 20:05 GMT+01:00 Ron Chatterjee achatte...@gmail.com: Few good links for sublime I thought I can share within the community if anyone is interested. The django sublime interface walks you through the entire sublime setup. I am sure, web2py will be same. That said, I couldn't have the ipython and terminal working like anaconda. Or may be this is the best sublime can do. plugins available for debugging; for example: http://www.sitepoint.com/debugging-xdebug-sublime-text-3/ Plugins for Python development: https://packagecontrol.io/packages/IPython%20Notebook https://nipunbatra.wordpress.com/2014/01/30/plugins-for-python-development-in-sublime-text/ Navigating projects: http://www.joshuawinn.com/understanding-projects-in-sublime-text-saving-switching-etc/ Package management: https://packagecontrol.io/installation Django interface: http://www.marinamele.com/2014/03/install-and-configure-sublime-text-3.html On Wednesday, May 20, 2015 at 3:16:42 AM UTC-4, Gergely Orosz wrote: Hi Ron, To be honest I am still learning the advanced features of Sublime, Python and Web2py :) I am not familiar with ipython package unfortunately. I am using SublimeREPL package to open interactive shell in Sublime. You can open as many interactive shell as many you want. Sublime open a new tab for the shell and you can evaluate commands there. What do you mean by integrating project with ipython. Web2py has an option to start ipython shell I think if installed that is the default shell. Hope I could help. If you have any question drop me a mail Regards Greg Ron Chatterjee achatte...@gmail.com ezt írta (időpont: 2015. máj. 20., Sze, 1:43): This is great. I just started looking at sublime text. This is not a web2py question but since you are so familiar with sublime Gergely, let me ask the question anyway...in sublime, all I see a python terminal. I don't see a command prompt or ipython terminal. I have installed the ipython from install packages. How do I add more terminal into sublime? Also, integrating Ipython with the project so all the variable shows up in the workspace. Any thoughts? On Tuesday, May 19, 2015 at 5:00:58 AM UTC-4, Gergely Orosz wrote: Hi Ramos, It some bug in SublimeREPL it is not related the W2P plugin. I was away on holiday and the development slowed down a bit but I am going to make a tutorial video how to use the plugin Also started implementing the open controller from view command 2015. május 7., csütörtök 15:15:09 UTC+2 időpontban Ramos a következőt írta: if i open console i see this before installing SublimeREPL warning: mnemonic r not found in menu caption SublimeREPL warning: mnemonic r not found in menu caption Ruby warning: mnemonic p not found in menu caption Python warning: mnemonic d not found in menu caption Python - PDB current file warning: mnemonic d not found in menu caption Python - RUN current file warning: mnemonic p not found in menu caption Python - IPython warning: mnemonic
Re: [web2py] Re: Basic usage statistics
Yes, Simone proposition is really good... Richard On Thu, Jun 11, 2015 at 4:20 PM, Leonel Câmara leonelcam...@gmail.com wrote: Exactly Richard, I would like to know which users are accessing what, because the users like to see it. The redis solution may be the best one if I want to give the database a break. -- 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. -- 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] Re: Sublime Text web2py plugin
In my opinion we should leave the IDE to an external tool like Sublime that has a lot more power over the web2py web IDE and get the people behind the web IDE to concentrate just on web2py that need a litle REVAMPING. For me the webIDE its very usefull but not compared to sublime or other like it 2015-06-11 19:29 GMT+01:00 Ron Chatterjee achatterjee...@gmail.com: Don't want to go Off Topic, but if we can just have auto complete in the web2py web based IDE, then what does the sublime provides extra over what we already have? I like sublime. That's not the point. I believe the current IDE is good for what it does just need the auto complete and few minor add ons. On Thursday, June 11, 2015 at 9:21:41 AM UTC-4, Ramos wrote: I got a database locked error opening web2py shell in sublime I think this is a sqlite problem right ? 2015-06-11 14:15 GMT+01:00 António Ramos ramst...@gmail.com: just saw it in sublime-settings 2015-06-11 14:07 GMT+01:00 António Ramos ramst...@gmail.com: SO COOL!! the w2py shell what is the admin password that it sets when starts the server ? 2015-06-11 14:01 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com: Hi Everyone, I just tweaked the plug-in a little bit. Please uninstall the plug-in completely and install it again to get it work Steps are the following: 1. Package Control - Remove Package - W2P 2. Restart Sublime 3. Package Control - Install Package - W2P 4. Restart Sublime Sorry for the inconvenience Regards Greg 2015. június 10., szerda 16:10:41 UTC+2 időpontban Ramos a következőt írta: thank u 2015-06-10 14:18 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com: It should create a new entry in Tools - SublimeREPL - Web2py {app_name} I will check it again in the source code 2015. június 10., szerda 14:12:31 UTC+2 időpontban Ramos a következőt írta: I still have the same problem. Should i see something like web2py in Tools - Python -? thank u 2015-06-10 6:30 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com: Hi Ramos, I fixed an issue in the Add REPL support command I pushed the changes so w2p plugin should be updated automagicly via PackageControl. If you still have issues please let me know Regards Greg 2015. június 9., kedd 17:38:25 UTC+2 időpontban Ramos a következőt írta: I cant install web2py sublimeRepl via W2p:Add sublimeREPL support Just see on status bar Loading Repositories and nothing more then i search for it and i get this only [image: Imagem inline 1] Any help ? i´m on windows 7 2015-05-21 17:21 GMT+01:00 António Ramos ramst...@gmail.com: XDebug looks nice but is for php only ? 2015-05-20 20:05 GMT+01:00 Ron Chatterjee achatte...@gmail.com : Few good links for sublime I thought I can share within the community if anyone is interested. The django sublime interface walks you through the entire sublime setup. I am sure, web2py will be same. That said, I couldn't have the ipython and terminal working like anaconda. Or may be this is the best sublime can do. plugins available for debugging; for example: http://www.sitepoint.com/debugging-xdebug-sublime-text-3/ Plugins for Python development: https://packagecontrol.io/packages/IPython%20Notebook https://nipunbatra.wordpress.com/2014/01/30/plugins-for-python-development-in-sublime-text/ Navigating projects: http://www.joshuawinn.com/understanding-projects-in-sublime-text-saving-switching-etc/ Package management: https://packagecontrol.io/installation Django interface: http://www.marinamele.com/2014/03/install-and-configure-sublime-text-3.html On Wednesday, May 20, 2015 at 3:16:42 AM UTC-4, Gergely Orosz wrote: Hi Ron, To be honest I am still learning the advanced features of Sublime, Python and Web2py :) I am not familiar with ipython package unfortunately. I am using SublimeREPL package to open interactive shell in Sublime. You can open as many interactive shell as many you want. Sublime open a new tab for the shell and you can evaluate commands there. What do you mean by integrating project with ipython. Web2py has an option to start ipython shell I think if installed that is the default shell. Hope I could help. If you have any question drop me a mail Regards Greg Ron Chatterjee achatte...@gmail.com ezt írta (időpont: 2015. máj. 20., Sze, 1:43): This is great. I just started looking at sublime text. This is not a web2py question but since you are so familiar with sublime Gergely, let me ask the question anyway...in sublime, all I see a python terminal. I don't see a command prompt or ipython terminal. I have installed the ipython from install packages. How do I add more terminal into sublime? Also, integrating Ipython with the project so all the variable shows up in the workspace. Any thoughts? On Tuesday, May 19, 2015 at 5:00:58 AM UTC-4, Gergely Orosz wrote: Hi Ramos, It some bug in SublimeREPL it is not related the
Re: [web2py] Re: How to register custom events in auth_event?
Great! Thanks a lot! Fabiano. 2015-06-11 15:56 GMT-03:00 黄祥 steve.van.chris...@gmail.com: please take a look at this discussion : https://groups.google.com/forum/#!topic/web2py/sp4fpYz36HI best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/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. -- 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: Basic usage statistics
Exactly Richard, I would like to know which users are accessing what, because the users like to see it. The redis solution may be the best one if I want to give the database a break. -- 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: change soap wsdl targetnamespace
yeah, but I have several different functions in the SOAP service. if I set it in call() function, i just need to set it once. Otherwise I need to set this for each called function. On Thursday, June 11, 2015 at 3:43:17 PM UTC-4, Niphlod wrote: even in the called function should be enough. On Thursday, June 11, 2015 at 9:39:32 PM UTC+2, Pengfei Yu wrote: Yeah, you are right. Stupid question. I am not familiar with how response works. def call(): response.namespace = 'http://tempuri.org/' return service() This is enough in call() function. Thanks! On Thursday, June 11, 2015 at 3:18:13 PM UTC-4, Niphlod wrote: isn't a simple def what_you_serve(): ..foo bar response.namespace = 'http://tempuri.org/' return dict(a=1) working ? On Thursday, June 11, 2015 at 6:36:31 PM UTC+2, Pengfei Yu wrote: Hi, I want to change the target namespace to http://tempuri.org/; in the SOAP WSDL xml file. From the pysimplesoap's server.py, I see that I can specify it in SoapDispatcher class with namespace parameter. But I wonder how can I specify it in web2py controller's @service.soap decorator. From the code of /gluon/tools.py, it seems that the namespace could be given by setting response.namespace def serve_soap(self, version=1.1): try: from gluon.contrib.pysimplesoap.server import SoapDispatcher except: return pysimplesoap not installed in contrib request = current.request response = current.response procedures = self.soap_procedures location = %s://%s%s % ( request.env.wsgi_url_scheme, request.env.http_host, URL(r=request, f=call/soap, vars={})) *namespace = 'namespace' in response and response.namespace or location* documentation = response.description or '' dispatcher = SoapDispatcher( name=response.title, location=location, action=location, # SOAPAction namespace=namespace, prefix='pys', documentation=documentation, ns=True) I wonder how I can set response.namespace directly from web2py controller. A working example will be very nice. 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: object 'DAL' has no attribute 'Field' - After update 2.11.2
It works, Thanks. El martes, 9 de junio de 2015, 18:22:48 (UTC+2), Niphlod escribió: if you'r ecoming from an older version, the structure of packages changed a bit and so the usual unzip over it doesn't work . Try to start with a unzip in a fresh folder and then copy over your applications only. it should work fine. On Tuesday, June 9, 2015 at 10:47:54 AM UTC+2, Tomeu Roig wrote: I update web2py to last version from: (wget http://www.web2py.com/examples/static/nightly/web2py_src.zip) After start all apps included admin give errors. I make a cat in console, and get this info in error. type 'exceptions.AttributeError' type object 'DAL' has no attribute 'Field' VERSION: Version 2.11.2-stable+timestamp.2015.05.30.16.33.24 SYSTEM: Ubuntu Server 12.04 DATABASE: PostgreSQL 9.3 It's a bug? Anyone has the same problem? I'm doing something wrong? (It's not the first time that i make updates) 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] sqlform.grid maxtextlengths shoots blanks
I get the same truncated display for the log message text no matter what I set maxtextlengths...This app is rock+1 on the IQ simplicity scale and yet it does not work...BTW: I removed all layouts stuff so its not some css problem. The truncated fields are what the grid wants to display. Its like the grid is on autopilot, any suggestions??? MODEL: db2 = DAL('sqlite://autoflowLog.sqlite') db2.define_table('log_messages', Field('time_stamp', length=30), Field('log_message_text', length = 256)) db2.log_messages.id.readable = False VIEW: pAutoFlow Log/p h2Log Messages:/h2 {{=form}} CONTROLLER: def display_log(): grid = SQLFORM.grid(db2.log_messages, editable = False, searchable = False,formstyle = 'divs',maxtextlengths={'log_messages.log_message_text' : 80}) return dict(form=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 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] form.add_button() looks different than the Submit button displayed with SQLFORM
I am using SQLFORM to generate and display form from the database table. I am adding a Reset button next to default Submit button using form.add_button('Reset',URL('visitorInfoForm')) The issue is Submit button has a different style (background-color: blue and color: white) than the Reset button(background-color: grey and color: black). How do I change their styles such that they both look same ? Any help would be great. 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.
Re: [web2py] Re: OFF Topic -RiotJS
Not sure. It was just an impression. I noticed ractive.js depends on jQuery. vue.js does not. the template language is the same in both (mustache). ractive.js requires a script type=ractive/ while vue.js acts in place (which is clever). Ractive has more example which makes me think it may have more functionality but I may be mistaken. One thing I do not see in vue.js are promises. On Thursday, 11 June 2015 03:31:25 UTC-5, Ramos wrote: Massimo why do you call Vuejs a stripped version? what does it lack compared to Ractive? Thank you António 2015-06-10 4:05 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com: vue.js look like a stripped version of ractive.js. The syntax is identical for what it provides. On Tuesday, 9 June 2015 16:36:49 UTC-5, Ramos wrote: No, of course not. On the contrary, i know hate angularjs after reading about vuejs. I wish i knew it before 2015-06-09 19:58 GMT+01:00 Dave S snidely@gmail.com: On Tuesday, June 9, 2015 at 3:21:55 AM UTC-7, Ramos wrote: another one bites the dust. bites the dust is used for something that (or someone who) has been shot down; a final face-plant. Are you saying the link below is a dead tool? http://vuejs.org/guide/index.html the docs are very extensive /dps 2015-06-08 17:38 GMT+01:00 Derek sp1...@gmail.com: I just hate non-compliant html. I've always been drawn to html compliant templates, like TAL (Template Attribute Language). In any case, I see that it generates html, and it is a lot smaller than the alternatives. I'd be willing to give this a shot. On Monday, June 8, 2015 at 3:02:30 AM UTC-7, Ramos wrote: just to share some noise on the UI for those looking at angular reactjs polymer ractive and so on https://muut.com/riotjs/ any experience or comments ? 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+un...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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. -- 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. -- 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: nginx, uwsgi, profiler
Thank you very much for your fast response. 2015-06-11 21:15 GMT+02:00 Niphlod niph...@gmail.com: runsnakerun is the best tool for the job. for running with profiler and another webserver, you need to tweak wsgihandler.py pass a directory to profiler_dir On Thursday, June 11, 2015 at 8:39:45 PM UTC+2, mweissen wrote: I have tried the option -F with a simple web2py start: python web2py.py -F profilerdir... Works fine, no problem. But now I want to do the same with nginx and emperor: where is the place to add the -F parameter? And, by the way, is there a web2py app to read and display the *.prof files? I have only found cprofilev (https://github.com/ymichael/cprofilev ). Regards, Martin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/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: nginx, uwsgi, profiler
A second question: I have found that a read-command consumes a lot of time. All other statements are not conspicuous. ncalls tottime percall cumtime percall filename:lineno(function) 12.9392.9392.9392.939 {built-in method read} 15.0805.0805.0805.080 {built-in method read} 15.6695.6695.6695.669 {built-in method read} 12.0832.0832.0832.083 {built-in method read} 42.7520.6882.7520.688 {built-in method read} 42.4730.6182.4730.618 {built-in method read} But the profiler does not tell me which read statement makes trouble. Any hints how to find the malefactor? 2015-06-12 6:57 GMT+02:00 Martin Weissenboeck mweis...@gmail.com: Thank you very much for your fast response. 2015-06-11 21:15 GMT+02:00 Niphlod niph...@gmail.com: runsnakerun is the best tool for the job. for running with profiler and another webserver, you need to tweak wsgihandler.py pass a directory to profiler_dir On Thursday, June 11, 2015 at 8:39:45 PM UTC+2, mweissen wrote: I have tried the option -F with a simple web2py start: python web2py.py -F profilerdir... Works fine, no problem. But now I want to do the same with nginx and emperor: where is the place to add the -F parameter? And, by the way, is there a web2py app to read and display the *.prof files? I have only found cprofilev ( https://github.com/ymichael/cprofilev). Regards, Martin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/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] using database record or database query in terms of performance
hi, just wondering which is the best approach between using database record or database query in terms of performance? case 1: models customer sale_order controllers report_customer when i click report customer, i want to have, customer order info something like (total_sale_order, last_sale_order_date, last_payment_type, last_total_paid, total_paid, max_total_paid, min_total_paid, avg_total_paid, last_total_quantity, total_quantity), which is better using database record (add those as new field on table customer) or database query (calculate when access the controller) in term of performance? case 2: models purchase_order sale_order controllers report_income_statement when i click report income statement, i want to have total sale order and total purchase order in this month, , which is better using database record (create new table called income_statement) or database query (calculate when access the controller) in term of performance? any suggestion, opinion or recommendation is welcome thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/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] Re: Recaptcha on pythonanywhere.com https error
Hi, I am trying recaptcha2 on pythonanywhere, it is working, but no image , only verify check. using options = dict(theme='dark'), will switch to the dark theme. using options = dict(type='image'), is not showing any images, only the verify check. Can i know how to get an image displayed in the recaptcha2? Ashraf On Friday, June 5, 2015 at 11:19:00 PM UTC+3, Niphlod wrote: book is for near-stable things. new can be only find in docstring. Fortunately we host API docs on readthedocs with full-text search go to http://web2py.rtfd.org/, insert recaptcha2 inside the box, see the magic happening! (this http://web2py.readthedocs.org/en/latest/tools.html?highlight=recaptcha2#gluon.tools.Recaptcha2is what it looks like) @mdipierro: maybe, but just maybe, we can make a better CHANGELOG for web2py: it has been discussed before that it's getting rather unintuitive in the quest of being newbies-like that almost every new thing gets cut out. -- 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] Re: OFF Topic -RiotJS
Massimo why do you call Vuejs a stripped version? what does it lack compared to Ractive? Thank you António 2015-06-10 4:05 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com: vue.js look like a stripped version of ractive.js. The syntax is identical for what it provides. On Tuesday, 9 June 2015 16:36:49 UTC-5, Ramos wrote: No, of course not. On the contrary, i know hate angularjs after reading about vuejs. I wish i knew it before 2015-06-09 19:58 GMT+01:00 Dave S snidely@gmail.com: On Tuesday, June 9, 2015 at 3:21:55 AM UTC-7, Ramos wrote: another one bites the dust. bites the dust is used for something that (or someone who) has been shot down; a final face-plant. Are you saying the link below is a dead tool? http://vuejs.org/guide/index.html the docs are very extensive /dps 2015-06-08 17:38 GMT+01:00 Derek sp1...@gmail.com: I just hate non-compliant html. I've always been drawn to html compliant templates, like TAL (Template Attribute Language). In any case, I see that it generates html, and it is a lot smaller than the alternatives. I'd be willing to give this a shot. On Monday, June 8, 2015 at 3:02:30 AM UTC-7, Ramos wrote: just to share some noise on the UI for those looking at angular reactjs polymer ractive and so on https://muut.com/riotjs/ any experience or comments ? 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+un...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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. -- 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. -- 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: caching model data
there is not much really http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Caching-selects to see how to cache (it's not that different from the usual cache in web2py). instead of db(db.table.id0).select() you use db(db.table.id0).select(cache=(cache.ram, 60)) if you can leave with the same data for 60 seconds without hitting the database. Moreover, if you use db(db.table.id0).select(cache=(cache.ram, 60), cacheable=True) it'll be faster but your code can't use row.update_record() and row.delete_record(). If you want to use redis ... install it on the server,. than http://web2py.com/books/default/chapter/29/13/deployment-recipes#Caching-with-Redis . Instead of using cache.ram you use cache.redis. same API interface, handled transparently. Bonus point if you want to auto-fix the thundering herd problem (many users requesting a the same time something that isn't in cache): use with_lock=True and it'll be fetched one time only, while other wait in line the result calculated by the first client requesting the data. On Thursday, June 11, 2015 at 2:58:47 PM UTC+2, Fabiano Faver wrote: Niphlod, I have a small app the DB is getting big quickly and was asked to do a cache layer..I just started started to learn about it and i'm already lost. Could you point the direction to a newbie how to do it? Is it just some code change in web2py? I saw there is this Redis but didn't read yet how it works together with web2py and if it is this the way to do this cache layer. Em quarta-feira, 24 de dezembro de 2014 16:10:15 UTC-2, Niphlod escreveu: so, what's the issue you're facing ? On Wednesday, December 24, 2014 12:29:24 PM UTC+1, harsha tanguturi wrote: I would like to cache the model data i.e., caching the selects and update the cache whenever the data is updated. Putting simply a caching layer has to present before the database layer and any changes to the database should be reflected in cache too. -- 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.