Re: [web2py] We have released Censusgical,Census data visualization prototype for Myanmar.
Thank you guys , updated with smoother visualizations. On Tue, Jun 23, 2015 at 6:56 PM, Johann Spies johann.sp...@gmail.com wrote: Impressive! On 23 June 2015 at 13:49, Michele Comitini michele.comit...@gmail.com wrote: +1 2015-06-23 13:48 GMT+02:00 Phyo Arkar phyo.arkarl...@gmail.com: We have plan to release it opensource soon. On Tue, Jun 23, 2015 at 5:56 PM, Kiran Subbaraman subbaraman.ki...@gmail.com wrote: Very nice stuff. Thanks for sharing. Do you have the code available on github, or any other open-source respository? Kiran Subbaramanhttp://subbaraman.wordpress.com/about/ On Tue, 23-06-2015 3:44 PM, Phyo Arkar wrote: Myanmar have released Census data in 30 years ,and we built a visualization for it . Powered by web2py, qooxdoo , d3js and uwsgi! http://www.censusgical.com:8800/Censusgical -- 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. -- 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. -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3) -- 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] We have released Censusgical,Census data visualization prototype for Myanmar.
We have plan to release it opensource soon. On Tue, Jun 23, 2015 at 5:56 PM, Kiran Subbaraman subbaraman.ki...@gmail.com wrote: Very nice stuff. Thanks for sharing. Do you have the code available on github, or any other open-source respository? Kiran Subbaramanhttp://subbaraman.wordpress.com/about/ On Tue, 23-06-2015 3:44 PM, Phyo Arkar wrote: Myanmar have released Census data in 30 years ,and we built a visualization for it . Powered by web2py, qooxdoo , d3js and uwsgi! http://www.censusgical.com:8800/Censusgical -- 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] We have released Censusgical,Census data visualization prototype for Myanmar.
Myanmar have released Census data in 30 years ,and we built a visualization for it . Powered by web2py, qooxdoo , d3js and uwsgi! http://www.censusgical.com:8800/Censusgical -- 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] Developer network
Github? On Mon, Apr 6, 2015 at 11:10 AM, 'sasogeek' via web2py-users web2py@googlegroups.com wrote: Hello, I'm wondering if there's a social media platform for app developers? I want to build one as an open source project using web2py... any thoughts, ideas, something to look on to start with? -- 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: Django models into web2py
Web2py DAL is actually a lot more powerful. i use web2py DAL anywhere even if it is not for web or non web2py project. On Sun, Mar 29, 2015 at 1:47 AM, Ron Chatterjee achatterjee...@gmail.com wrote: That will be great. Then we can also do django development using web2py interface. you rock massimo! On Saturday, March 28, 2015 at 12:23:55 PM UTC-4, Massimo Di Pierro wrote: This is a backward compatibility problem in the latest web2py. Should be fixed in the nightly build (for testers) On Friday, 27 March 2015 15:56:05 UTC-5, Ron Chatterjee wrote: This is an old web2py blog. http://www.web2py.com/AlterEgo/default/show/189 Did anyone went through the steps and was able to generate the tables? I tried but it failed. It didn't work. Is it only valid for polls example only or any django models can be used in web2py this way? Not sure. I know its not a recommended and I will never deploy an application using this method. But wanted to try few django projects and code them up in web2py to learn more but I am and kind of feeling lazy to write the table from scratch. thought copy and paste will be nice if I can get this method to work. Any web2pier wants to try and see what I am doing wrong? *I get an error saying:* models/db.py http://127.0.0.1:8000/admin/default/edit/try_django_polls/models/db.py, line 62, in module class Poll(Model): File applications\try_django_polls\modules\django.py, line 145, in __new__ fields=[db.Field(key,**value.serial(name,db)) for key,value in attrs.items() if hasattr(value,'serial') and not isinstance(value,ManyToManyField)] File ...\Desktop\web2py_src\web2py\gluon\dal\base.py, line 893, in __getattr__ return ogetattr(self, key) AttributeError: 'DAL' object has no attribute 'Field' -- 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: Django models into web2py
Thanks a lot massimo , i will try with latest nightly then. On Sat, Mar 28, 2015 at 10:53 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: This is a backward compatibility problem in the latest web2py. Should be fixed in the nightly build (for testers) On Friday, 27 March 2015 15:56:05 UTC-5, Ron Chatterjee wrote: This is an old web2py blog. http://www.web2py.com/AlterEgo/default/show/189 Did anyone went through the steps and was able to generate the tables? I tried but it failed. It didn't work. Is it only valid for polls example only or any django models can be used in web2py this way? Not sure. I know its not a recommended and I will never deploy an application using this method. But wanted to try few django projects and code them up in web2py to learn more but I am and kind of feeling lazy to write the table from scratch. thought copy and paste will be nice if I can get this method to work. Any web2pier wants to try and see what I am doing wrong? *I get an error saying:* models/db.py http://127.0.0.1:8000/admin/default/edit/try_django_polls/models/db.py, line 62, in module class Poll(Model): File applications\try_django_polls\modules\django.py, line 145, in __new__ fields=[db.Field(key,**value.serial(name,db)) for key,value in attrs.items() if hasattr(value,'serial') and not isinstance(value,ManyToManyField)] File ...\Desktop\web2py_src\web2py\gluon\dal\base.py, line 893, in __getattr__ return ogetattr(self, key) AttributeError: 'DAL' object has no attribute 'Field' -- 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: pyquery, pyjs and web2py
You will interest in PythonJS , implementation of python in JS which is alot faster than python . https://github.com/PythonJS/PythonJS It support a lot of python features and compile spython to JS. On Thu, Mar 26, 2015 at 6:08 AM, Ron Chatterjee achatterjee...@gmail.com wrote: I wasn't looking for a way to create python to replace javascript. Sorry if it came across that way. I was more into looking a way to call existing javascript.jquery using normal python syntax from web2py. But its probably not possible. For example., button type=button onclick=document.getElementById('demo').innerHTML = Date() Click me to display Date and Time./button p id=demo/p Instead of that. {{python_button_program}} - and it will execute the javascript routing like an executable. I am not very familiar with javascript. Thats why I asked. I guess, I will just need to learn and get used to it. On Wednesday, March 25, 2015 at 7:13:09 PM UTC-4, Carlos Zenteno wrote: So what is the the direction web development is taking though? Everything in Javascript? -- 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: pyquery, pyjs and web2py
you can just put them as string in variable and in view call it back. On Sat, Mar 28, 2015 at 2:49 AM, Phyo Arkar phyo.arkarl...@gmail.com wrote: You will interest in PythonJS , implementation of python in JS which is alot faster than python . https://github.com/PythonJS/PythonJS It support a lot of python features and compile spython to JS. On Thu, Mar 26, 2015 at 6:08 AM, Ron Chatterjee achatterjee...@gmail.com wrote: I wasn't looking for a way to create python to replace javascript. Sorry if it came across that way. I was more into looking a way to call existing javascript.jquery using normal python syntax from web2py. But its probably not possible. For example., button type=button onclick=document.getElementById('demo').innerHTML = Date() Click me to display Date and Time./button p id=demo/p Instead of that. {{python_button_program}} - and it will execute the javascript routing like an executable. I am not very familiar with javascript. Thats why I asked. I guess, I will just need to learn and get used to it. On Wednesday, March 25, 2015 at 7:13:09 PM UTC-4, Carlos Zenteno wrote: So what is the the direction web development is taking though? Everything in Javascript? -- 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] Django models into web2py
attached is the fixed django.py . On Sat, Mar 28, 2015 at 8:08 AM, Phyo Arkar phyo.arkarl...@gmail.com wrote: The example is very old and too many changes neede. Even after the deprecated fixes , DjangoModelFactory not working anymore it have this error: Traceback (most recent call last): File /home/v3ss/workspace/web2py/gluon/restricted.py, line 224, in restricted exec ccode in environment File applications/otwopy/models/db.py, line 91, in module class Poll(Model): File applications/otwopy/modules/django.py, line 229, in __new__ table = db.define_table(name, migrate=migrate, *fields) File /home/v3ss/workspace/web2py/gluon/dal/base.py, line 787, in define_table table = self.lazy_define_table(tablename,*fields,**args) File /home/v3ss/workspace/web2py/gluon/dal/base.py, line 804, in lazy_define_table table = table_class(self, tablename, *fields, **args) File /home/v3ss/workspace/web2py/gluon/dal/objects.py, line 327, in __init__ 'define_table argument is not a Field or Table: %s' % field) SyntaxError: define_table argument is not a Field or Table: no table.name . On Sat, Mar 28, 2015 at 3:26 AM, Ron Chatterjee achatterjee...@gmail.com http://mailto:achatterjee...@gmail.com wrote: This is an old web2py blog. http://www.web2py.com/AlterEgo/default/show/189 Did anyone went through the steps and was able to generate the tables? I tried but it failed. It didn’t work. Is it only valid for polls example only or any django models can be used in web2py this way? Not sure. I know its not a recommended and I will never deploy an application using this method. But wanted to try few django projects and code them up in web2py to learn more but I am and kind of feeling lazy to write the table from scratch. thought copy and paste will be nice if I can get this method to work. Any web2pier wants to try and see what I am doing wrong? I get an error saying: models/db.py”, line 62, in class Poll(Model): File “applications\try *djangopolls\modules\django.py”, line 145, innew fields=[db.Field(key,**value.serial(name,db)) for key,value inattrs.items() if hasattr(value,’serial’) and notisinstance(value,ManyToManyField)] File “…\Desktop\web2py_src\web2py\gluon\dal\base.py”, line 893, in__getattr* return ogetattr(self, key) AttributeError: ‘DAL’ object has no attribute ‘Field’ — 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] Django models into web2py
The example is very old and too many changes neede. Even after the deprecated fixes , DjangoModelFactory not working anymore it have this error: Traceback (most recent call last): File /home/v3ss/workspace/web2py/gluon/restricted.py, line 224, in restricted exec ccode in environment File applications/otwopy/models/db.py, line 91, in module class Poll(Model): File applications/otwopy/modules/django.py, line 229, in __new__ table = db.define_table(name, migrate=migrate, *fields) File /home/v3ss/workspace/web2py/gluon/dal/base.py, line 787, in define_table table = self.lazy_define_table(tablename,*fields,**args) File /home/v3ss/workspace/web2py/gluon/dal/base.py, line 804, in lazy_define_table table = table_class(self, tablename, *fields, **args) File /home/v3ss/workspace/web2py/gluon/dal/objects.py, line 327, in __init__ 'define_table argument is not a Field or Table: %s' % field) SyntaxError: define_table argument is not a Field or Table: no table.name . On Sat, Mar 28, 2015 at 3:26 AM, Ron Chatterjee achatterjee...@gmail.com http://mailto:achatterjee...@gmail.com wrote: This is an old web2py blog. http://www.web2py.com/AlterEgo/default/show/189 Did anyone went through the steps and was able to generate the tables? I tried but it failed. It didn’t work. Is it only valid for polls example only or any django models can be used in web2py this way? Not sure. I know its not a recommended and I will never deploy an application using this method. But wanted to try few django projects and code them up in web2py to learn more but I am and kind of feeling lazy to write the table from scratch. thought copy and paste will be nice if I can get this method to work. Any web2pier wants to try and see what I am doing wrong? I get an error saying: models/db.py”, line 62, in class Poll(Model): File “applications\try *djangopolls\modules\django.py”, line 145, innew fields=[db.Field(key,**value.serial(name,db)) for key,value inattrs.items() if hasattr(value,’serial’) and notisinstance(value,ManyToManyField)] File “…\Desktop\web2py_src\web2py\gluon\dal\base.py”, line 893, in__getattr* return ogetattr(self, key) AttributeError: ‘DAL’ object has no attribute ‘Field’ — 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. from gluon.sql import DAL from dal import Field from gluon.validators import * isAlphaNumeric = IS_ALPHANUMERIC() isAlphaNumericURL = IS_URL() isSlug = IS_MATCH(r'^[-\w]+$') isLowerCase = IS_LOWER() isUpperCase = IS_UPPER() isValidIPAddress4 = IS_MATCH(r'^\d{1,3}(\.\d{1,3}){3}$') isNotEmpty = IS_NOT_EMPTY() isOnlyDigits = IS_MATCH(r'^\d*$') isNotOnlyDigits = IS_MATCH(r'^[^\d]*$') isInteger = IS_INT_IN_RANGE(-10 ** 10, 10 ** 10) isOnlyLetters = IS_MATCH(r'^[a-zA-Z]*$') isValidANSIDate = IS_DATE() isValidANSITime = IS_TIME() isValidEmail = IS_EMAIL() isValidPhone = IS_MATCH(r'^\+?\d{0,2}\-?\d{3}\-?\d{3}\-?\d{4}$') isValidURL = IS_URL() # Undefined validators # isValidImage # isValidImageURL # isValidQuicktimeVideoURL # isValidHTML # isWellFormedXml # isWellFormedXmlFragment # isExistingURL # isValidUSState # hasNoProfanities class DjangoField: def __init__(self, *a, **b): self.a = a self.b = b self.validators = [] self.attributes = {} if a: self.attributes['label'] = str(a[0]) if b.get('null', False) == False: self.attributes['notnull'] = True if b.get('blank', False) == False: self.attributes['required'] = True self.validators.append(IS_NOT_EMPTY()) if b.get('default', None): self.attributes['default'] = b['default'] if b.get('unique', False): self.attributes['unique'] = True if b.get('max_length', None): length = self.attributes['length'] = b['max_length'] self.validators.append(IS_LENGTH(length)) if b.get('verbose_name', None): self.attributes['label'] = b['verbose_name'] for v in b.get('validator_list', []):
Re: [web2py] Re: last minute web2py hackaton
AH i just noticed now , i haven't contribute to web2py for so long . On Tue, Mar 24, 2015 at 1:01 AM, Richard Vézina ml.richard.vez...@gmail.com wrote: I don't mind... Fixing PEP8 is not a big deal!! :) Richard On Mon, Mar 23, 2015 at 1:40 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: This did not get as many responses as I expected but the four people doing significative work during the week-end were: Paolo (ilvalle) Giovanni(gi0baro) Simone (niphlod) BuhtigithuB So I will a $50 gift certificate to each of them as soon as 2.10.1 is released. Congratulations! Massimo On Friday, 20 March 2015 10:41:16 UTC-5, Massimo Di Pierro wrote: We want to release 2.10.1 next week. We will try closing as many issue as possible in the next three days. You can close an issue by submitting a pull-request. The person who submits the largest number of accepted pull requests by Monday 5am UTC wins $100 paid for by experts4solutions. (The requests have to be submitted by the deadline but they will count even if accepted after. In case of ties the prize is split.) Massimo -- 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.
Re: [web2py] Re: IMPORTANT - DROPPING SUPPORT FOR PYTHON 2.5?
Me and my team is fine since we are always on the edge :) . But i would like to see input from old wizards that uses Old RedHat for servers and Debian 4.x . On Sun, Mar 8, 2015 at 10:04 AM, Ron Chatterjee achatterjee...@gmail.com wrote: I use 2.7.6 from canopy. I will b okay.I think... -- 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] Not in touch with web2py community for a while. anything new interesting?
Being busy and i lost touch with w2p community for a while. What are the new features of web2py? What are the most actively maintainted web2py community projects ? (Plug-ins?, CMS ? , Blogs?) We are planning to build a community platform , with some blog features and comment system. So , is there any plugin for that now? or we need to develop from scratch? Past 2 years I've been building SIngle page , Desktop APPs using web2py + qooxdoo. So my team is missing a bit on normal Web things. 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: Rocket use
You welcome. Just use uWSGI as web server and you will believe in magic :) . Nginx will not necessary for your setup , yet. On Sat, Oct 25, 2014 at 3:41 AM, Bilal El bilal...@gmail.com wrote: Thanks Phyo! I didn't knew that web2py was built on Rocket for the developpement environnement. Thanks for the advice about uWSGI. Le Fri Oct 24 2014 at 23:07:44, Phyo Arkar phyo.arkarl...@gmail.com a écrit : Web2py is by default run on rocket. But even small set of users , i recommend uWSGI , it greatly improve perfornace and when doing big upload/download , it Shines! , ajax responses much faster . Plus very easy to install and setup uWSGI. On Sat, Oct 25, 2014 at 3:33 AM, Bilal El bilal...@gmail.com wrote: Hi Rod, I am interrested in the same kind of setup. When you say Rocket, are you talking about : https://launchpad.net/rocket ? Thanks! Le vendredi 24 octobre 2014 22:03:12 UTC+2, Rod Watkins a écrit : Good. I like its simplicity. Thanks! On Friday, 24 October 2014 12:42:43 UTC-7, Niphlod wrote: rocket is perfectly fine. On Friday, October 24, 2014 7:29:47 PM UTC+2, Rod Watkins wrote: Hello all, I am about ready to start deploying my site. It is a private site for about 8-10 users. I was wondering if, given the small size, whether it would be safe to use the rocket web server, rather than apache or nginx? Thanks Rod -- 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 a topic in the Google Groups web2py-users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/dJiPC1LCxrw/unsubscribe. To unsubscribe from this group and all its topics, 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.
Re: [web2py] Kendo UI
I really dislike angular's syntax. Its unnecessarily weird. On Monday, October 27, 2014, Vasile Ermicioi elff...@gmail.com wrote: I would build the interface with angular+kendoui and use web2py for REST API On Sun, Oct 26, 2014 at 1:26 AM, Phyo Arkar phyo.arkarl...@gmail.com javascript:_e(%7B%7D,'cvml','phyo.arkarl...@gmail.com'); wrote: Forgot the actual site : http://qooxdoo.org http://demo.qooxdoo.org/current/widgetbrowser/ http://demo.qooxdoo.org/devel/demobrowser/# On Sun, Oct 26, 2014 at 4:52 AM, Phyo Arkar phyo.arkarl...@gmail.com javascript:_e(%7B%7D,'cvml','phyo.arkarl...@gmail.com'); wrote: Also check out Qooxdoo. If you are going to build Desktop Style UI , Qooxdoo is perfect (And code is much cleaner because there is no need for Jquery or Selectors). Web2py Demo : http://herspos.appspot.com/HersPOS https://code.google.com/p/herspos/ On Sat, Oct 25, 2014 at 10:07 PM, Anthony abasta...@gmail.com javascript:_e(%7B%7D,'cvml','abasta...@gmail.com'); wrote: 2. How should the 2nd level of integration be done ? You can create a custom formstyle function and pass it as the formstyle argument. For an example of such a function, see the Bootstrap function: https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L783 Anthony -- 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. -- 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. -- 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. -- 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] Kendo UI
I just discovered Reactive.js. I like the syntax , its a lot like web2py's template. cool! It actually let you write lesser line of code. What i don't like about Angular especially is Directives.Followed by defining controllers and scope clientside as Massimo saids. I also find defining templates inside Javascript very weird and hard to write. Javascript , unlike python , you have to Concat Strings to make it easy to read. It do not have syntax. In our team we try to be as HTML-Less as possible when coding single page apps , Directives add more HTML. you will do the same thing with qooxdoo, We don't do that in Qooxdoo desktop. When we need to add new widget from scratch we subclass: qx.ui.core.Widget . Add a data Model and then we can bind with Delegates. and add things as needed , at 90% no new HTML is needed. On Tue, Oct 28, 2014 at 12:37 AM, Vasile Ermicioi elff...@gmail.com wrote: if you are building single page applications you will do the same thing with qooxdoo, so I don't get it.. controller + view + databinding + directives = great combos for building components(widgets) here a simple example to get an idea https://github.com/angular-ui/bootstrap/blob/master/src/rating/rating.js and you can load dynamically views and controllers as they are needed how would you build components like that with ractivejs? as I understand ractivejs is just object+template with databinding, I have the feeling that you are missing something guys ;) On Mon, Oct 27, 2014 at 3:34 PM, JorgeH jorgeh...@gmail.com wrote: I agree with Phyo and Massimo Ractive.js is much better in that sense. On Monday, October 27, 2014 8:30:38 AM UTC-5, Massimo Di Pierro wrote: I agree with Phyo. It is not the template syntax that is weird, it is the logic of defining controllers and scope clientside. I like ractive.js instead. On Monday, 27 October 2014 01:14:51 UTC-5, Phyo Arkar wrote: I really dislike angular's syntax. Its unnecessarily weird. On Monday, October 27, 2014, Vasile Ermicioi elf...@gmail.com wrote: I would build the interface with angular+kendoui and use web2py for REST API On Sun, Oct 26, 2014 at 1:26 AM, Phyo Arkar phyo.arkarl...@gmail.com wrote: Forgot the actual site : http://qooxdoo.org http://demo.qooxdoo.org/current/widgetbrowser/ http://demo.qooxdoo.org/devel/demobrowser/# On Sun, Oct 26, 2014 at 4:52 AM, Phyo Arkar phyo.arkarl...@gmail.com wrote: Also check out Qooxdoo. If you are going to build Desktop Style UI , Qooxdoo is perfect (And code is much cleaner because there is no need for Jquery or Selectors). Web2py Demo : http://herspos.appspot.com/HersPOS https://code.google.com/p/herspos/ On Sat, Oct 25, 2014 at 10:07 PM, Anthony abasta...@gmail.com wrote: 2. How should the 2nd level of integration be done ? You can create a custom formstyle function and pass it as the formstyle argument. For an example of such a function, see the Bootstrap function: https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L783 Anthony -- 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. -- 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: Kendo UI
Also check out Qooxdoo. If you are going to build Desktop Style UI , Qooxdoo is perfect (And code is much cleaner because there is no need for Jquery or Selectors). Web2py Demo : http://herspos.appspot.com/HersPOS https://code.google.com/p/herspos/ On Sat, Oct 25, 2014 at 10:07 PM, Anthony abasta...@gmail.com wrote: 2. How should the 2nd level of integration be done ? You can create a custom formstyle function and pass it as the formstyle argument. For an example of such a function, see the Bootstrap function: https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L783 Anthony -- 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: Kendo UI
Forgot the actual site : http://qooxdoo.org http://demo.qooxdoo.org/current/widgetbrowser/ http://demo.qooxdoo.org/devel/demobrowser/# On Sun, Oct 26, 2014 at 4:52 AM, Phyo Arkar phyo.arkarl...@gmail.com wrote: Also check out Qooxdoo. If you are going to build Desktop Style UI , Qooxdoo is perfect (And code is much cleaner because there is no need for Jquery or Selectors). Web2py Demo : http://herspos.appspot.com/HersPOS https://code.google.com/p/herspos/ On Sat, Oct 25, 2014 at 10:07 PM, Anthony abasta...@gmail.com wrote: 2. How should the 2nd level of integration be done ? You can create a custom formstyle function and pass it as the formstyle argument. For an example of such a function, see the Bootstrap function: https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L783 Anthony -- 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: Planning to use Web2py CAS as Authnication service for Tornado
Thanks alot massimo, i haven't seen that. class PostHandler(tornado.web.RequestHandler): only authorized parties can post messages def post(self): if hmac_key and not 'signature' in self.request.arguments: return None if 'message' in self.request.arguments: message = self.request.arguments['message'][0] group = self.request. arguments.get('group', ['default'])[0] print '%s:MESSAGE to %s:%s' % (time. time(), group, message) if hmac_key: signature = self.request.arguments[ 'signature'][0] if not hmac.new(hmac_key, message).hexdigest() == signature: return None for client in listeners.get(group, []): client.write_message( message) return None Very useful! On Thu, Aug 14, 2014 at 11:41 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Did you see this: https://github.com/web2py/web2py/blob/master/gluon/contrib/websocket_messaging.py On Thursday, 14 August 2014 09:18:41 UTC-5, Phyo Arkar wrote: In our new application , it will be interactive Chat + Social Media/News/Forum discussion. For most interactive part it will be done in Tornado , but for Non Interactive parts (Registration , Auth) I am going to use Web2py. Database will be Mongodb. We've used web2py extensively for past 5 years. But for interactive part Tornado is needed due to Long Polling and Websocket requirements. Here are my Thoughts: Home, Registration , Login = Web2py Interactive discussion = Tornado It will run on openshift with 3 instances. 1st Gear: uwsgi + web2py 2nd Gear: pypy + tornado 3rd Gear: Mongodb Both will use Mongodb for database access. What i wanted to know is: I read about We2pyCAS with PHP , had anyone tried using Web2pyCAS for Tornado's Apps? Can CAS Work well with Mongodb? ( I think it won't as theres no join for Mongodb). -- 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] Planning to use Web2py CAS as Authnication service for Tornado
In our new application , it will be interactive Chat + Social Media/News/Forum discussion. For most interactive part it will be done in Tornado , but for Non Interactive parts (Registration , Auth) I am going to use Web2py. Database will be Mongodb. We've used web2py extensively for past 5 years. But for interactive part Tornado is needed due to Long Polling and Websocket requirements. Here are my Thoughts: Home, Registration , Login = Web2py Interactive discussion = Tornado It will run on openshift with 3 instances. 1st Gear: uwsgi + web2py 2nd Gear: pypy + tornado 3rd Gear: Mongodb Both will use Mongodb for database access. What i wanted to know is: I read about We2pyCAS with PHP , had anyone tried using Web2pyCAS for Tornado's Apps? Can CAS Work well with Mongodb? ( I think it won't as theres no join for Mongodb). -- 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] Brainstorming
For UI i recommend Qooxdoo. Qooxdoo make us no need to write HTML and CSS , for 3 years already . We even forget what HTML and CSS looks like its javascript is so clean and truly object oriented . UI Widgets are professionally designed , we don't even need a graphic designer in our team. Integration with web2py is very easy too , but we write whole view logic in qooxdoo and server side data by doing ajax request, to JsonRPC. It is complete, we only need specialized JSLibs like D3 and JQPlot , all other needs are provided by qooxdoo (From UI to AJAX LongPoll , JsonRPC, Databinding). On Sun, Jun 15, 2014 at 3:04 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Often Angular comes up on this list. I tried it and I was un-impressed. Instead today my favorite client-side stack is based on these: - jquery.js - sugar.js - ractive.js - semantic-ui (css js) Have you tried sugar, ractive, and semantic-ui? What is your opinion? Massimo -- 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] Brainstorming
On Sat, Jun 21, 2014 at 3:31 AM, Michele Comitini michele.comit...@gmail.com wrote: My POV is that web2py should have a rather agnostic attitude toward a wide range of frameworks, by having some kind of layer that would allow to keep server side code mostly untouched when changing js framework, easily add support for a new js framework. In practice web2py should use a well defined protocol between client and server, to pass actions, messages and events back and forth. My POV is that web2py should have a rather agnostic attitude toward a wide range of frameworks, by having some kind of layer that would allow to keep server side code mostly untouched when changing js framework, easily add support for a new js framework. In practice web2py should use a well defined protocol between client and server, to pass actions, messages and events back and forth. + 100! Exactly my toughts 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: web2py 2.4.2 is OUT
D3.js is far better than pydot , pygraphviz . On Wed, Mar 6, 2013 at 5:05 PM, António Ramos ramstei...@gmail.com wrote: Why dont you use a javascript library for the graph? This way you dont have problems with with windows/linux 2013/3/6 Alec Taylor alec.tayl...@gmail.com For Windows PyDot is the native Python solution; which unlike PyGraphViz; doesn't require C extensions built. Will have a go at abstracting the implementation so either can be used first chance I get (probably not starting for another 7 days) On Wed, Mar 6, 2013 at 6:16 AM, Derek sp1d...@gmail.com wrote: Eh, I'd rather have it not shown unless it actually does something. It's poor software design if you have a button which just gives you an error message. On Tuesday, March 5, 2013 10:48:27 AM UTC-7, LightDot wrote: I know of some users that made it work on windows, so it wouldn't be enough to just check the OS. Also, if the button is hidden in case the lib import fails, then new users would never see it and be reminded that they can install the library and use it. In both cases, the button serves a cause, IMHO. Regards, Ales On Tuesday, March 5, 2013 6:27:09 PM UTC+1, Derek wrote: Tried to 'graph models' on a windows machine, old apps get the error: invalid function (appadmin/graph_model) Created a new app from the wizard, clicked 'graph models' pygraphviz library not found Tried to install pygraphviz on Windows (after installing Graphviz), get this message: Your Graphviz installation could not be found. And the reason why: 3) You are using Windows There are no PyGraphviz binary packages for Windows but you might be able to build it from this source. See http://networkx.lanl.gov/pygraphviz/reference/faq.html So, can we have it disable the 'graph models' if you are running on Windows? Thanks! On Sunday, March 3, 2013 8:38:19 PM UTC-7, Massimo Di Pierro wrote: The book will be out shortly describing this version. I am sure there are some corners to iron but I could not wait any longer. Changelog: - 2D GEO API: geoPoint, getLine, geoPolygon - support for 'json' field type in DAL - schema export with db.as_json/as_xml, thanks Alan - graph representation of models - admin based on bootstrap, thanks Paolo - support for semantic versioning - new bootstrap based admin, thanks Paolo - improved scheduler (and change in scheduler field names), thanks Niphlod - graphiz support added to adm, thanks Jose - on_failure in grid - db.table.field.abs() - better wiki - geoPoint, getLine, geoPolygon - better reporting of 500 ajax errors - better grid - improved/fixed mongodb support - improved parse_as_rest(patterns=...), thanks Denes - improved IMAP DAL support, thanks Alan - improved security when cookies in sessions - Row.as_xml, as_json, as_dict, as_yaml thanks Alan - smarted custom_import - setup-ubuntu-12-04-redmine-unicorn-web2py-uwsgi-nginx.sh - added support for motor and pulsar servers, thanks Niphlod - added json-rpc2 support - added pypyodbc.py driver - allow auth.settings.ondelete='CASCADE' - new syntax IS_EXPR(lambda value: ... - using google for QR codes (although Graph API will be deprecated in 2015) - upgraded fpdf to 1.7.1 - bug fixes (including issues with calendar.js and archive tables) -- --- 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/groups/opt_out. -- --- 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/groups/opt_out. -- --- 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/groups/opt_out. -- --- 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/groups/opt_out.
Re: [web2py] web2py 2.4.2 is OUT
Never update to new version , ever , before you are about to show something to your client, or Boss. I had learnt several lessons , in hard ways.. Make sure everything is safe before you do. On Monday, March 4, 2013 10:43:00 AM UTC+6:30, Alfonso de la Guarda Reyes wrote: Hi! Great job! Looks faster, tomorrow I have to show a project based on web2py and take the opportunity to do so with this new version... i will give some datails later... Saludos, Alfonso de la Guarda Twitter: @alfonsodg Redes sociales: alfonsodg Telef. 991935157 1024D/B23B24A4 5469 ED92 75A3 BBDB FD6B 58A5 54A1 851D B23B 24A4 On Sun, Mar 3, 2013 at 10:38 PM, Massimo Di Pierro massimo@gmail.com javascript: wrote: The book will be out shortly describing this version. I am sure there are some corners to iron but I could not wait any longer. Changelog: - 2D GEO API: geoPoint, getLine, geoPolygon - support for 'json' field type in DAL - schema export with db.as_json/as_xml, thanks Alan - graph representation of models - admin based on bootstrap, thanks Paolo - support for semantic versioning - new bootstrap based admin, thanks Paolo - improved scheduler (and change in scheduler field names), thanks Niphlod - graphiz support added to adm, thanks Jose - on_failure in grid - db.table.field.abs() - better wiki - geoPoint, getLine, geoPolygon - better reporting of 500 ajax errors - better grid - improved/fixed mongodb support - improved parse_as_rest(patterns=...), thanks Denes - improved IMAP DAL support, thanks Alan - improved security when cookies in sessions - Row.as_xml, as_json, as_dict, as_yaml thanks Alan - smarted custom_import - setup-ubuntu-12-04-redmine-unicorn-web2py-uwsgi-nginx.sh - added support for motor and pulsar servers, thanks Niphlod - added json-rpc2 support - added pypyodbc.py driver - allow auth.settings.ondelete='CASCADE' - new syntax IS_EXPR(lambda value: ... - using google for QR codes (although Graph API will be deprecated in 2015) - upgraded fpdf to 1.7.1 - bug fixes (including issues with calendar.js and archive tables) -- --- 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 javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- --- 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/groups/opt_out.
[web2py] Re: Problem with uploading large file web2py version 2.3.2
How much Ram it takes. Wont take alot more than 400mb i believe. On Monday, March 4, 2013 2:40:12 PM UTC+6:30, Mạnh Trần Đức wrote: Dear everyone, I uploaded file about 100mb successfully but it got Exceptions.MemoryError when I uploaded a file ~400mb. I tried upload to ftp with pyfilesystem but got that error too I saw in Windows Task Manager, the Python progress takes too much ram and makes system be frozen. This is my system that I running web2py: Windows 7 pro 64bit 4gb ram python 2.7.3 64bit Web2py: 2.3.2 -- --- 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/groups/opt_out.
Re: [web2py] Re: Web2py 2.3.2 broke JSONRPC
Things changes quite fast lol :D On Sat, Mar 2, 2013 at 3:48 AM, Michele Comitini michele.comit...@gmail.com wrote: http://www.jsonrpc.org/specification not draft anymore... mic 2013/3/1 Phyo Arkar phyo.arkarl...@gmail.com: I c , JSONRPC2 is still in draft right? we are not using JSONRPC2 yet so that gave us problem. On Sat, Mar 2, 2013 at 2:12 AM, Niphlod niph...@gmail.com wrote: yep, to support keyword arguments. It was an oversight of jsonrpc 1 vs 2 specs. trunk has it fixed, along with specific 1 vs 2 support (i.e. jsonrpc and jsonrpc2 decorators) On Friday, March 1, 2013 8:00:30 PM UTC+1, Phyo Arkar wrote: Any reason there for ** ? On Sat, Mar 2, 2013 at 12:40 AM, Phyo Arkar phyo.ar...@gmail.com wrote: The bug is at: gluon/tools.py s = methods[method](**params) it should be s = methods[method](*params) On Sat, Mar 2, 2013 at 12:16 AM, Phyo Arkar phyo.ar...@gmail.com wrote: We got a problem when we upgrade to 2.3.2 in JSONRPC called via qooxdoo. TypeError: testlogin() argument after ** must be a mapping, not list, JSONRPCError Which worked fine in 2.2.1 Below is code for controller : @service.jsonrpc def testlogin(username, password): status = 0 authed = auth.login_bare(str(username), str(password)) if authed: status = 1 return dict(status=status) JSONRPC request code is : jsonrpc_login.callAsync(handler_login, testlogin, textbox_username.getValue(), textbox_password.getValue()); Full JS Code (qooxdoo) : qx.Class.define(logintest.login, { extend: qx.ui.container.Composite, construct : function() { this.base(arguments); this.setLayout(new qx.ui.layout.VBox()); var center_hbox = new qx.ui.container.Composite(new qx.ui.layout.HBox()); var loginform = new qx.ui.form.Form(); var textbox_username = new qx.ui.form.TextField(); var textbox_password = new qx.ui.form.PasswordField(); var button_login = new qx.ui.form.Button(Login, logintest/test.png); loginform.add(textbox_username, User Name); loginform.add(textbox_password, Password); loginform.addButton(button_login); var jsonrpc_login = new qx.io.remote.Rpc(/auth_test/default/call/jsonrpc); center_hbox.add(new qx.ui.core.Spacer(), {flex: 1}); center_hbox.add(new qx.ui.form.renderer.Single(loginform)); center_hbox.add(new qx.ui.core.Spacer(), {flex: 1}); this.add(new qx.ui.core.Spacer(), {flex: 1}); this.add(center_hbox); this.add(new qx.ui.core.Spacer(), {flex: 1}); var handler_login = function(result, ex, id) { if (ex == null) { alert(result.status); } else { console.log(=Err=); console.log(ex); } }; button_login.addListener(execute, function(e) { jsonrpc_login.callAsync(handler_login, testlogin, textbox_username.getValue(), textbox_password.getValue()); }); }, members : { } }); -- --- 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/groups/opt_out. -- --- 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/groups/opt_out. -- --- 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/groups/opt_out. -- --- 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/groups/opt_out.
[web2py] RESTful vs JSONRPC
From what it seems, RESTFUL seems a bit more complex vs JSONRPC. What are the advantages for using REST, when using full AJAX Framework like qooxdoo? -- --- 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/groups/opt_out.
Re: [web2py] Re: RESTful vs JSONRPC
Thank you very much for very detailed explanation niphlod. Amazing. For me , JSONRPC is more useful in current projects (which do not need CURD , just Update and Read is mostly done ). For my case it is mostly Machine learning , parsing files , indexing , producing Network diagrams , etc. so that fit this cases : You don't need a service but some means of communication by a server written by you and a client that only you use ? I will stick with JSONRPC. On Sat, Mar 2, 2013 at 8:02 PM, Niphlod niph...@gmail.com wrote: it's merely a question about angles suppose you want to give access only to one table, e.g., products. only search by name and return just the quantity in stock in addition to the name. with jsonrpc you need to code a function that searches through your products and returns a list of tuples (or a dictionary) holding name, stock values. Now, suppose you want to add the possibility to order a product, or multiple ones. again, with jsonrpc you need to code a function that searches through your products and returns a list of tuples holding name, ordered_qty values. Now, suppose you want to give the ability to search through product tags, and order products you need to come up with a representation of your model, code a function that searches through tags, links them through products, and then again return the result. In all of this, you need to figure out a result that carries all the info needed for an API to be used (such as, e.g., returning tags in the 1st function anyway if they are handy, etc etc etc). When you add more and more functionality, or features, you need to be consistent in what you return, else your API becomes more and more bloated and patched and disconnetted from piece to piece. JSONRPC doesn't define the state of your products, unless you come up with that. You have to tell your users that order_product method returns name, ordered_qty , come up with an error when they can't order something, tell them that a product can be searched also by tags with the search_by_tag method, etc etc etc. At any given point in time, clients need to know what feature you expose and what to expect back. On the other side, REST uses urls, response codes http verbs (HEAD, GET, POST, PUT, DELETE) and headers to describe both your returned format and your model. They know when an operation change something, if they can cache the result, etc etc. In richer and standards conformant APIs you get back with the results also links to access connected resources (i.e. the details about the tag of the product). Clients can ask xml or json just changing headers, and generally must be informed of your model only they know already (if your API is totally REST certified) that they should use x to achieve y. tl;dr: In general, a REST API feels more open but yes, more complicated because it involves several base concepts on how the web works. JSONRPC on the other end feels more explicit. JSONRPC in an APIs exposes more how to work with while REST what to work with. So, suppose you want to expose an api to access your online store I'd go for REST hands down. You need instead to expose a service that returns the avatar picture location given an email ? JSONRPC. You need to expose a service that crops pictures sent by users ? . neither (binary formats don't play well with both JSONRPC or REST) You don't need a service but some means of communication by a server written by you and a client that only you use ? JSONRPC will be more productive in a short term and if you have all the detailed implementation planned, but on the long run REST may be more appropriate. -- --- 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/groups/opt_out. -- --- 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/groups/opt_out.
Re: [web2py] Re: login by ajax
If you worry about your credentials visibility over the wire , SSL. If you worry about your credentials visibility on the screen , None actually. On Sat, Mar 2, 2013 at 5:54 AM, Alan Etkin spame...@gmail.com wrote: +1 for auth,ajax_login() I'm also interested in a bare ajax login feature, but, what about the security risks of passing credentials with javascript in the background? What are the issues to take in account for that feature? I there any standard way of securing the passwords and other sensible data that can be used? -- --- 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/groups/opt_out. -- --- 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/groups/opt_out.
Re: [web2py] Re: web2py is moving
EC2 is really expensive.. On Fri, Mar 1, 2013 at 6:49 PM, samuel bonilla pythonn...@gmail.com wrote: pythonanywhere.com is great, but I put my trust in amazon ec2 El jueves, 28 de febrero de 2013 18:40:22 UTC-5, Massimo Di Pierro escribió: web2py.com is moving to pythonanywhere.com. There may be disruptions but we hope not. -- --- 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/groups/opt_out. -- --- 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/groups/opt_out.
Re: [web2py] Re: web2py is moving
I agree , thats why i run web2py on our own data center :) On Fri, Mar 1, 2013 at 9:23 PM, Niphlod niph...@gmail.com wrote: guys, let's try to avoid YAPHD (Yet Another Python Hosting Debate) there are tons of deployment solution out there and every one has pros and cons -- --- 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/groups/opt_out. -- --- 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/groups/opt_out.
[web2py] Web2py 2.3.2 broke JSONRPC
We got a problem when we upgrade to 2.3.2 in JSONRPC called via qooxdoo. TypeError: testlogin() argument after ** must be a mapping, not list, JSONRPCError Which worked fine in 2.2.1 Below is code for controller : @service.jsonrpc def testlogin(username, password): status = 0 authed = auth.login_bare(str(username), str(password)) if authed: status = 1 return dict(status=status) JSONRPC request code is : jsonrpc_login.callAsync(handler_login, testlogin, textbox_username.getValue(), textbox_password.getValue()); Full JS Code (qooxdoo) : qx.Class.define(logintest.login, { extend: qx.ui.container.Composite, construct : function() { this.base(arguments); this.setLayout(new qx.ui.layout.VBox()); var center_hbox = new qx.ui.container.Composite(new qx.ui.layout.HBox()); var loginform = new qx.ui.form.Form(); var textbox_username = new qx.ui.form.TextField(); var textbox_password = new qx.ui.form.PasswordField(); var button_login = new qx.ui.form.Button(Login, logintest/test.png); loginform.add(textbox_username, User Name); loginform.add(textbox_password, Password); loginform.addButton(button_login); var jsonrpc_login = new qx.io.remote.Rpc(/auth_test/default/call/jsonrpc); center_hbox.add(new qx.ui.core.Spacer(), {flex: 1}); center_hbox.add(new qx.ui.form.renderer.Single(loginform)); center_hbox.add(new qx.ui.core.Spacer(), {flex: 1}); this.add(new qx.ui.core.Spacer(), {flex: 1}); this.add(center_hbox); this.add(new qx.ui.core.Spacer(), {flex: 1}); var handler_login = function(result, ex, id) { if (ex == null) { alert(result.status); } else { console.log(=Err=); console.log(ex); } }; button_login.addListener(execute, function(e) { jsonrpc_login.callAsync(handler_login, testlogin, textbox_username.getValue(), textbox_password.getValue()); }); }, members : { } }); -- --- 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/groups/opt_out.
[web2py] Re: Web2py 2.3.2 broke JSONRPC
The bug is at: gluon/tools.py s = methods[method](**params) it should be s = methods[method](*params) On Sat, Mar 2, 2013 at 12:16 AM, Phyo Arkar phyo.arkarl...@gmail.comwrote: We got a problem when we upgrade to 2.3.2 in JSONRPC called via qooxdoo. TypeError: testlogin() argument after ** must be a mapping, not list, JSONRPCError Which worked fine in 2.2.1 Below is code for controller : @service.jsonrpc def testlogin(username, password): status = 0 authed = auth.login_bare(str(username), str(password)) if authed: status = 1 return dict(status=status) JSONRPC request code is : jsonrpc_login.callAsync(handler_login, testlogin, textbox_username.getValue(), textbox_password.getValue()); Full JS Code (qooxdoo) : qx.Class.define(logintest.login, { extend: qx.ui.container.Composite, construct : function() { this.base(arguments); this.setLayout(new qx.ui.layout.VBox()); var center_hbox = new qx.ui.container.Composite(new qx.ui.layout.HBox()); var loginform = new qx.ui.form.Form(); var textbox_username = new qx.ui.form.TextField(); var textbox_password = new qx.ui.form.PasswordField(); var button_login = new qx.ui.form.Button(Login, logintest/test.png); loginform.add(textbox_username, User Name); loginform.add(textbox_password, Password); loginform.addButton(button_login); var jsonrpc_login = new qx.io.remote.Rpc(/auth_test/default/call/jsonrpc); center_hbox.add(new qx.ui.core.Spacer(), {flex: 1}); center_hbox.add(new qx.ui.form.renderer.Single(loginform)); center_hbox.add(new qx.ui.core.Spacer(), {flex: 1}); this.add(new qx.ui.core.Spacer(), {flex: 1}); this.add(center_hbox); this.add(new qx.ui.core.Spacer(), {flex: 1}); var handler_login = function(result, ex, id) { if (ex == null) { alert(result.status); } else { console.log(=Err=); console.log(ex); } }; button_login.addListener(execute, function(e) { jsonrpc_login.callAsync(handler_login, testlogin, textbox_username.getValue(), textbox_password.getValue()); }); }, members : { } }); -- --- 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/groups/opt_out.
[web2py] Re: Web2py 2.3.2 broke JSONRPC
One char fix so i wont be adding a patch. :) On Sat, Mar 2, 2013 at 12:40 AM, Phyo Arkar phyo.arkarl...@gmail.comwrote: The bug is at: gluon/tools.py s = methods[method](**params) it should be s = methods[method](*params) On Sat, Mar 2, 2013 at 12:16 AM, Phyo Arkar phyo.arkarl...@gmail.comwrote: We got a problem when we upgrade to 2.3.2 in JSONRPC called via qooxdoo. TypeError: testlogin() argument after ** must be a mapping, not list, JSONRPCError Which worked fine in 2.2.1 Below is code for controller : @service.jsonrpc def testlogin(username, password): status = 0 authed = auth.login_bare(str(username), str(password)) if authed: status = 1 return dict(status=status) JSONRPC request code is : jsonrpc_login.callAsync(handler_login, testlogin, textbox_username.getValue(), textbox_password.getValue()); Full JS Code (qooxdoo) : qx.Class.define(logintest.login, { extend: qx.ui.container.Composite, construct : function() { this.base(arguments); this.setLayout(new qx.ui.layout.VBox()); var center_hbox = new qx.ui.container.Composite(new qx.ui.layout.HBox()); var loginform = new qx.ui.form.Form(); var textbox_username = new qx.ui.form.TextField(); var textbox_password = new qx.ui.form.PasswordField(); var button_login = new qx.ui.form.Button(Login, logintest/test.png); loginform.add(textbox_username, User Name); loginform.add(textbox_password, Password); loginform.addButton(button_login); var jsonrpc_login = new qx.io.remote.Rpc(/auth_test/default/call/jsonrpc); center_hbox.add(new qx.ui.core.Spacer(), {flex: 1}); center_hbox.add(new qx.ui.form.renderer.Single(loginform)); center_hbox.add(new qx.ui.core.Spacer(), {flex: 1}); this.add(new qx.ui.core.Spacer(), {flex: 1}); this.add(center_hbox); this.add(new qx.ui.core.Spacer(), {flex: 1}); var handler_login = function(result, ex, id) { if (ex == null) { alert(result.status); } else { console.log(=Err=); console.log(ex); } }; button_login.addListener(execute, function(e) { jsonrpc_login.callAsync(handler_login, testlogin, textbox_username.getValue(), textbox_password.getValue()); }); }, members : { } }); -- --- 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/groups/opt_out.
[web2py] Re: Web2py 2.3.2 broke JSONRPC
Any reason there for ** ? On Sat, Mar 2, 2013 at 12:40 AM, Phyo Arkar phyo.arkarl...@gmail.comwrote: The bug is at: gluon/tools.py s = methods[method](**params) it should be s = methods[method](*params) On Sat, Mar 2, 2013 at 12:16 AM, Phyo Arkar phyo.arkarl...@gmail.comwrote: We got a problem when we upgrade to 2.3.2 in JSONRPC called via qooxdoo. TypeError: testlogin() argument after ** must be a mapping, not list, JSONRPCError Which worked fine in 2.2.1 Below is code for controller : @service.jsonrpc def testlogin(username, password): status = 0 authed = auth.login_bare(str(username), str(password)) if authed: status = 1 return dict(status=status) JSONRPC request code is : jsonrpc_login.callAsync(handler_login, testlogin, textbox_username.getValue(), textbox_password.getValue()); Full JS Code (qooxdoo) : qx.Class.define(logintest.login, { extend: qx.ui.container.Composite, construct : function() { this.base(arguments); this.setLayout(new qx.ui.layout.VBox()); var center_hbox = new qx.ui.container.Composite(new qx.ui.layout.HBox()); var loginform = new qx.ui.form.Form(); var textbox_username = new qx.ui.form.TextField(); var textbox_password = new qx.ui.form.PasswordField(); var button_login = new qx.ui.form.Button(Login, logintest/test.png); loginform.add(textbox_username, User Name); loginform.add(textbox_password, Password); loginform.addButton(button_login); var jsonrpc_login = new qx.io.remote.Rpc(/auth_test/default/call/jsonrpc); center_hbox.add(new qx.ui.core.Spacer(), {flex: 1}); center_hbox.add(new qx.ui.form.renderer.Single(loginform)); center_hbox.add(new qx.ui.core.Spacer(), {flex: 1}); this.add(new qx.ui.core.Spacer(), {flex: 1}); this.add(center_hbox); this.add(new qx.ui.core.Spacer(), {flex: 1}); var handler_login = function(result, ex, id) { if (ex == null) { alert(result.status); } else { console.log(=Err=); console.log(ex); } }; button_login.addListener(execute, function(e) { jsonrpc_login.callAsync(handler_login, testlogin, textbox_username.getValue(), textbox_password.getValue()); }); }, members : { } }); -- --- 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/groups/opt_out.
Re: [web2py] Re: Web2py 2.3.2 broke JSONRPC
I c , JSONRPC2 is still in draft right? we are not using JSONRPC2 yet so that gave us problem. On Sat, Mar 2, 2013 at 2:12 AM, Niphlod niph...@gmail.com wrote: yep, to support keyword arguments. It was an oversight of jsonrpc 1 vs 2 specs. trunk has it fixed, along with specific 1 vs 2 support (i.e. jsonrpc and jsonrpc2 decorators) On Friday, March 1, 2013 8:00:30 PM UTC+1, Phyo Arkar wrote: Any reason there for ** ? On Sat, Mar 2, 2013 at 12:40 AM, Phyo Arkar phyo.ar...@gmail.com wrote: The bug is at: gluon/tools.py s = methods[method](**params) it should be s = methods[method](*params) On Sat, Mar 2, 2013 at 12:16 AM, Phyo Arkar phyo.ar...@gmail.comwrote: We got a problem when we upgrade to 2.3.2 in JSONRPC called via qooxdoo. TypeError: testlogin() argument after ** must be a mapping, not list, JSONRPCError Which worked fine in 2.2.1 Below is code for controller : @service.jsonrpc def testlogin(username, password): status = 0 authed = auth.login_bare(str(username), str(password)) if authed: status = 1 return dict(status=status) JSONRPC request code is : jsonrpc_login.callAsync(**handler_login, testlogin, textbox_username.getValue(), textbox_password.getValue()); Full JS Code (qooxdoo) : qx.Class.define(logintest.**login, { extend: qx.ui.container.Composite, construct : function() { this.base(arguments); this.setLayout(new qx.ui.layout.VBox()); var center_hbox = new qx.ui.container.Composite(new qx.ui.layout.HBox()); var loginform = new qx.ui.form.Form(); var textbox_username = new qx.ui.form.TextField(); var textbox_password = new qx.ui.form.PasswordField(); var button_login = new qx.ui.form.Button(Login, logintest/test.png); loginform.add(textbox_**username, User Name); loginform.add(textbox_**password, Password); loginform.addButton(button_**login); var jsonrpc_login = new qx.io.remote.Rpc(/auth_test/**default/call/jsonrpc); center_hbox.add(new qx.ui.core.Spacer(), {flex: 1}); center_hbox.add(new qx.ui.form.renderer.Single(**loginform)); center_hbox.add(new qx.ui.core.Spacer(), {flex: 1}); this.add(new qx.ui.core.Spacer(), {flex: 1}); this.add(center_hbox); this.add(new qx.ui.core.Spacer(), {flex: 1}); var handler_login = function(result, ex, id) { if (ex == null) { alert(result.status); } else { console.log(=Err=); console.log(ex); } }; button_login.addListener(**execute, function(e) { jsonrpc_login.callAsync(**handler_login, testlogin, textbox_username.getValue(), textbox_password.getValue()); }); }, members : { } }); -- --- 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/groups/opt_out. -- --- 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/groups/opt_out.
Re: [web2py] Re: How is MongoDB for web2py DAL?
Thanks alot. I will be already experimentintg... if my laptops aren't stolen during valentine ... On Feb 5, 2013 8:42 PM, samuel bonilla pythonn...@gmail.com wrote: look: mongodb on web2py http://www.web2pyslices.com/slice/show/1580/save-the-earth-from-a-total-data-mess-with-mongodbadapter El lunes, 4 de febrero de 2013 09:39:00 UTC-5, Phyo Arkar escribió: Hello Web2py. I haven't update Web2py for long but we are now trying something with Mongodb using DAL. What should i expect. 1- How many percent of current web2py queries needed to be re-written. 2- What are supported by Web2py DAL for MongoDB , what are Not (compare to SQL RDBMS) 3- Any pitfalls? What i want is i want to know how many changes should be needed , if i switch from Mysql to Mongodb , with help of DAL. In our APP we use as little Joins as Possible , mostly simple select and Inserts. I guess if Mongdob Adapater . We want to use JSON , Nested List of Dictionaries structures , when we switch to MongoDB , while leaving most of Select and Insert codes unchanged and drop joins if necessary. -- --- 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/groups/opt_out. -- --- 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/groups/opt_out.
[web2py] How is MongoDB for web2py DAL?
Hello Web2py. I haven't update Web2py for long but we are now trying something with Mongodb using DAL. What should i expect. 1- How many percent of current web2py queries needed to be re-written. 2- What are supported by Web2py DAL for MongoDB , what are Not (compare to SQL RDBMS) 3- Any pitfalls? What i want is i want to know how many changes should be needed , if i switch from Mysql to Mongodb , with help of DAL. In our APP we use as little Joins as Possible , mostly simple select and Inserts. I guess if Mongdob Adapater . We want to use JSON , Nested List of Dictionaries structures , when we switch to MongoDB , while leaving most of Select and Insert codes unchanged and drop joins if necessary. -- --- 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/groups/opt_out.
[web2py] Re: How is MongoDB for web2py DAL?
not bad , i will try it out in a week. Thanks a lot Massimo! On Monday, February 4, 2013, Massimo Di Pierro wrote: Make sure you use trunk and not stable with MongoDB. I think apart for transactions and joins most of the queries should work although I have not tried it myself. On Monday, 4 February 2013 08:39:00 UTC-6, Phyo Arkar wrote: Hello Web2py. I haven't update Web2py for long but we are now trying something with Mongodb using DAL. What should i expect. 1- How many percent of current web2py queries needed to be re-written. 2- What are supported by Web2py DAL for MongoDB , what are Not (compare to SQL RDBMS) 3- Any pitfalls? What i want is i want to know how many changes should be needed , if i switch from Mysql to Mongodb , with help of DAL. In our APP we use as little Joins as Possible , mostly simple select and Inserts. I guess if Mongdob Adapater . We want to use JSON , Nested List of Dictionaries structures , when we switch to MongoDB , while leaving most of Select and Insert codes unchanged and drop joins if necessary. -- --- 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({}, 'cvml', 'web2py%2bunsubscr...@googlegroups.com');. For more options, visit https://groups.google.com/groups/opt_out. -- --- 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/groups/opt_out.
[web2py] Re: [uWSGI] uwsgi + web2py + Custom Python Build
Yes thats exactly what i did , a correct -H (or virtualenv) option On Fri, Nov 9, 2012 at 2:23 AM, Łukasz Czuja luk...@czuja.pl wrote: Hmm... shouldn't you be using --virtualenv option? pointing to projects virtualenv top directory site.py is responsible for setting up python paths. this is basically what activate/deactivate scripts depend on check also sys.prefix/sys.real_prefix and what they point to W dniu 08.11.2012 14:59, Phyo Arkar pisze: This is more uwsgi problem so here: I am doing a self contained , relocatable , standalone python build with uwsgi, web2py , scipy (Numpy,matplotlib) Everything works fine in relocatable enviorment but Uwsgi is having this error : uwsgi socket 0 bound to UNIX address /home/uwsgi/uwsgi/uwsgi.sock fd 3 Python version: 2.7.2+ (default, Dec 1 2011, 02:17:49) [GCC 4.6.2] Set PythonHome to ./web2py ImportError: No module named site Here is my uwsgi config : #!/bin/bash ./runtime/bin/uwsgi --http :8000 --chdir ./web2py/ --python-path ./web2py/ --module uwsgihandler \ -p 6 --post-buffering 65535 \ --close-on-exec --socket-timeout 6000 \ Directly running web2py works perfectly fine. Any ideas? ALso its seems running python using system python , anyway to force it to use Custom built python? ___ uWSGI mailing listuWSGI@lists.unbit.ithttp://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi -- Pozdrawiam, Łukasz Czuja Programista / Analityk / Architekt IT --
Re: [web2py] Re: how i can write a web2py code nto javascript
something i want to do in Web2py is to support web2py template codes inside JS files :) ! Coz my whole View logic now is javascript Thanks to qooxdoo! But OP doesn't seem to have that problem. On Sat, Nov 10, 2012 at 2:03 AM, Derek sp1d...@gmail.com wrote: No, he's trying to use a web2py function within the javascript, or have web2py write javascript instead of html. I'm not sure it can do that. On Friday, November 9, 2012 3:37:10 AM UTC-7, lyn2py wrote: Do you mean that you want the code to appear on the webpage? Save your code into a file in the static folder, and include in your views file using response.files: {{response.files.append(URL('**static','js_folder/your_file.**js'))}} On Wednesday, November 7, 2012 5:39:36 PM UTC+8, Ali Alroomi wrote: hello plz i need help i need t write web2py code into javascript ike the following my code plz any help with the this: $.fn.fancybox = function(options) { $(this).data('fancybox', $.extend({}, options)); $(this).unbind('click.fb').**bind('click.fb', function(e) { e.preventDefault(); if (busy) return; busy = true; $(this).blur(); selectedArray= []; selectedIndex= 0; {{for i in db().select(db.Project.ALL):}} var rel = $(this).attr('rel') || ''; var message = {{=i.CategoryID}}; var url = ?pro= + escape(message); if (!rel || rel == '' || rel === 'nofollow') { selectedArray.push(this); } else { selectedArray= $(a[rel= + rel + ], area[rel= + rel + ]); selectedIndex= selectedArray.index( this ); /*window.open(url, _self);*/ history.replaceState({}, Title, url); } fancybox_start(); return false; }); return this; }; -- --
Re: [web2py] Re: how i can write a web2py code nto javascript
Or does it? OP are you really trying to call web2py code inside Javascript file (not /view/default/something.html , instead /static/something.js) ? On Tue, Nov 13, 2012 at 12:34 AM, Phyo Arkar phyo.arkarl...@gmail.comwrote: something i want to do in Web2py is to support web2py template codes inside JS files :) ! Coz my whole View logic now is javascript Thanks to qooxdoo! But OP doesn't seem to have that problem. On Sat, Nov 10, 2012 at 2:03 AM, Derek sp1d...@gmail.com wrote: No, he's trying to use a web2py function within the javascript, or have web2py write javascript instead of html. I'm not sure it can do that. On Friday, November 9, 2012 3:37:10 AM UTC-7, lyn2py wrote: Do you mean that you want the code to appear on the webpage? Save your code into a file in the static folder, and include in your views file using response.files: {{response.files.append(URL('**static','js_folder/your_file.**js'))}} On Wednesday, November 7, 2012 5:39:36 PM UTC+8, Ali Alroomi wrote: hello plz i need help i need t write web2py code into javascript ike the following my code plz any help with the this: $.fn.fancybox = function(options) { $(this).data('fancybox', $.extend({}, options)); $(this).unbind('click.fb').**bind('click.fb', function(e) { e.preventDefault(); if (busy) return; busy = true; $(this).blur(); selectedArray= []; selectedIndex= 0; {{for i in db().select(db.Project.ALL):}} var rel = $(this).attr('rel') || ''; var message = {{=i.CategoryID}}; var url = ?pro= + escape(message); if (!rel || rel == '' || rel === 'nofollow') { selectedArray.push(this); } else { selectedArray= $(a[rel= + rel + ], area[rel= + rel + ]); selectedIndex= selectedArray.index( this ); /*window.open(url, _self);*/ history.replaceState({}, Title, url); } fancybox_start(); return false; }); return this; }; -- --
[web2py] uwsgi + web2py + Custom Python Build
This is more uwsgi problem so here: I am doing a self contained , relocatable , standalone python build with uwsgi, web2py , scipy (Numpy,matplotlib) Everything works fine in relocatable enviorment but Uwsgi is having this error : uwsgi socket 0 bound to UNIX address /home/uwsgi/uwsgi/uwsgi.sock fd 3 Python version: 2.7.2+ (default, Dec 1 2011, 02:17:49) [GCC 4.6.2] Set PythonHome to ./web2py ImportError: No module named site Here is my uwsgi config : #!/bin/bash ./runtime/bin/uwsgi --http :8000 --chdir ./web2py/ --python-path ./web2py/ --module uwsgihandler \ -p 6 --post-buffering 65535 \ --close-on-exec --socket-timeout 6000 \ Directly running web2py works perfectly fine. Any ideas? ALso its seems running python using system python , anyway to force it to use Custom built python? --
[web2py] Re: uwsgi + web2py + Custom Python Build
I tried to set pythonhome to exact python home of my built python , but still it don't work.. here is my wrapper script : #!/bin/bash SOURCE=${BASH_SOURCE[0]} DIR=$( dirname $SOURCE ) while [ -h $SOURCE ] do SOURCE=$(readlink $SOURCE) [[ $SOURCE != /* ]] SOURCE=$DIR/$SOURCE DIR=$( cd -P $( dirname $SOURCE ) pwd ) done LD_LIBRARY_PATH=$DIR/runtime/lib #echo $LD_LIBRARY_PATH export LD_LIBRARY_PATH #PYTHONHOME=$DIR/runtime/lib/python2.7 #echo $PYTHONHOME #export PYTHONHOME $DIR/runtime/bin/uwsgi -H $DIR/runtime/lib/python2.7 --http :8000 --chdir ./web2py/ --python-path ./web2py/ --module uwsgihandler \ -p 6 --post-buffering 65535 \ --close-on-exec --socket-timeout 6000 \ --route ^/EDCentric basicauth:ED-Centric Login,admin:test On Thursday, November 8, 2012, Phyo Arkar wrote: This is more uwsgi problem so here: I am doing a self contained , relocatable , standalone python build with uwsgi, web2py , scipy (Numpy,matplotlib) Everything works fine in relocatable enviorment but Uwsgi is having this error : uwsgi socket 0 bound to UNIX address /home/uwsgi/uwsgi/uwsgi.sock fd 3 Python version: 2.7.2+ (default, Dec 1 2011, 02:17:49) [GCC 4.6.2] Set PythonHome to ./web2py ImportError: No module named site Here is my uwsgi config : #!/bin/bash ./runtime/bin/uwsgi --http :8000 --chdir ./web2py/ --python-path ./web2py/ --module uwsgihandler \ -p 6 --post-buffering 65535 \ --close-on-exec --socket-timeout 6000 \ Directly running web2py works perfectly fine. Any ideas? ALso its seems running python using system python , anyway to force it to use Custom built python? --
[web2py] Re: uwsgi + web2py + Custom Python Build
After that error i got is : uwsgi socket 0 bound to TCP address 127.0.0.1:47235 (port auto-assigned) fd 3 Python version: 2.7.3 (default, Oct 25 2012, 04:38:33) [GCC 4.6.3] Set PythonHome to ./runtime/lib/python2.7 ImportError: No module named site is -H option for setting pythonhome for uwsgi right? On Friday, November 9, 2012, Phyo Arkar wrote: I tried to set pythonhome to exact python home of my built python , but still it don't work.. here is my wrapper script : #!/bin/bash SOURCE=${BASH_SOURCE[0]} DIR=$( dirname $SOURCE ) while [ -h $SOURCE ] do SOURCE=$(readlink $SOURCE) [[ $SOURCE != /* ]] SOURCE=$DIR/$SOURCE DIR=$( cd -P $( dirname $SOURCE ) pwd ) done LD_LIBRARY_PATH=$DIR/runtime/lib #echo $LD_LIBRARY_PATH export LD_LIBRARY_PATH #PYTHONHOME=$DIR/runtime/lib/python2.7 #echo $PYTHONHOME #export PYTHONHOME $DIR/runtime/bin/uwsgi -H $DIR/runtime/lib/python2.7 --http :8000 --chdir ./web2py/ --python-path ./web2py/ --module uwsgihandler \ -p 6 --post-buffering 65535 \ --close-on-exec --socket-timeout 6000 \ --route ^/EDCentric basicauth:ED-Centric Login,admin:test On Thursday, November 8, 2012, Phyo Arkar wrote: This is more uwsgi problem so here: I am doing a self contained , relocatable , standalone python build with uwsgi, web2py , scipy (Numpy,matplotlib) Everything works fine in relocatable enviorment but Uwsgi is having this error : uwsgi socket 0 bound to UNIX address /home/uwsgi/uwsgi/uwsgi.sock fd 3 Python version: 2.7.2+ (default, Dec 1 2011, 02:17:49) [GCC 4.6.2] Set PythonHome to ./web2py ImportError: No module named site Here is my uwsgi config : #!/bin/bash ./runtime/bin/uwsgi --http :8000 --chdir ./web2py/ --python-path ./web2py/ --module uwsgihandler \ -p 6 --post-buffering 65535 \ --close-on-exec --socket-timeout 6000 \ Directly running web2py works perfectly fine. Any ideas? ALso its seems running python using system python , anyway to force it to use Custom built python? --
[web2py] allowing admin on UWSGI deployment , HTTP Mode
Hello web2py i need to allow admin on web2py development machine , which we testing with uwsgi enabled. It is needed to test over the internet coz our client is from different country. We tried enabling by disabling following code inside if request.env.http_x_forwarded_for or request.is_https: session.secure() elif not request.is_local and not DEMO_MODE: raise HTTP(200, T('Admin is disabled because insecure channel')) but it ends up to the login page .. WITHOUT Password box , Damn.. What to do? --
Re: [web2py] allowing admin on UWSGI deployment , HTTP Mode
I want to do it in HTTP because we do not need HTTPS there. On Fri, Oct 5, 2012 at 8:53 PM, Roberto De Ioris robe...@unbit.it wrote: Il giorno 05/ott/2012, alle ore 16:19, Phyo Arkar phyo.arkarl...@gmail.com ha scritto: Hello web2py i need to allow admin on web2py development machine , which we testing with uwsgi enabled. It is needed to test over the internet coz our client is from different country. We tried enabling by disabling following code inside if request.env.http_x_forwarded_for or request.is_https: session.secure() elif not request.is_local and not DEMO_MODE: raise HTTP(200, T('Admin is disabled because insecure channel')) but it ends up to the login page .. WITHOUT Password box , Damn.. What to do? From 1.3 (latest stable) you can use https in uWSGI too: http://projects.unbit.it/uwsgi/wiki/HTTPserver#HTTPSsupportfrom1.3-dev -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it -- --
Re: [web2py] allowing admin on UWSGI deployment , HTTP Mode
HTTPS is already used (port 443) for VPN Tunneling. On Fri, Oct 5, 2012 at 10:39 PM, Phyo Arkar phyo.arkarl...@gmail.comwrote: I want to do it in HTTP because we do not need HTTPS there. On Fri, Oct 5, 2012 at 8:53 PM, Roberto De Ioris robe...@unbit.it wrote: Il giorno 05/ott/2012, alle ore 16:19, Phyo Arkar phyo.arkarl...@gmail.com ha scritto: Hello web2py i need to allow admin on web2py development machine , which we testing with uwsgi enabled. It is needed to test over the internet coz our client is from different country. We tried enabling by disabling following code inside if request.env.http_x_forwarded_for or request.is_https: session.secure() elif not request.is_local and not DEMO_MODE: raise HTTP(200, T('Admin is disabled because insecure channel')) but it ends up to the login page .. WITHOUT Password box , Damn.. What to do? From 1.3 (latest stable) you can use https in uWSGI too: http://projects.unbit.it/uwsgi/wiki/HTTPserver#HTTPSsupportfrom1.3-dev -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it -- --
Re: [web2py] web2py 2.0 almost done
i haven't test that , i will test and report. I have been using uwsgi + web2py , and large uploads / downloads all goes fine. I haven't use Rocket for so long. On Thu, Aug 9, 2012 at 7:54 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: The corruption, as we could determine has to do with two issues: - SOCKET_TIMEOUT = 1 was too slow, we increased it to 10. - self.conn.sendall was timing out but socket.timeout was not being caught. Now it is. Since this fix we had no more reports of data corruption. Are there other problems that need fixing with rocket? Massimo On Thursday, 9 August 2012 08:17:57 UTC-5, Marin Pranjić wrote: What about issues with rocket, is that fixed? (if I remember correctly it was about corruption of big-sized downloads) On Tue, Aug 7, 2012 at 6:33 AM, Massimo Di Pierro massimo@gmail.comwrote: Web2py 2.0 is almost done. Please try the nightly build. Let us know if it breaks anything. massimo -- -- --
Re: [web2py] Re: How do larger teams develop with Web2py?
Thank you for your words! This is what i believe and my team rolls too. (A bit of agile and that combined). We have 3 programmers and 1 UI designer and Architect (me) . On Thu, Aug 9, 2012 at 8:18 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Listen everybody. This thread is hilarious but not very professional. I think most of the people on this thread are hardcore programmers and most of us came to some conclusions: 1) it is not the idea that has value, it is the execution 2) the success of a project is strongly correlated with the skills of the programmers who work on it, the time and love they put in it. 3) it does not really matter how much money is put into a project, if the programmers are not good, and if they do not care about the project, it will not succeed. Is there any value in management and or of software development methods? I think there is. I am not saying which method is best because there is not one size fits all but good programmers in my experience are self disciplined. They follow a methodology to keep track of bugs and systematically fix them. Their methodology may not exactly match named ones (agile or waterfall or other) but it is a methodology. Massimo -- --
Re: [web2py] Re: Problem running Web2py DAL (Trunk) as Standalone
I c, Let me check again. Thanks! On Thu, Jul 19, 2012 at 9:17 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Can you check if trunk now works? On Wednesday, 18 July 2012 10:55:51 UTC-5, Phyo Arkar wrote: Hello Massimo and all; I had to update to trunk version of web2py because we having issue of web2py DAL not closing down connection , casuing connections to queue up and then mysql no longer accept connection (Limit reached). But when we run it we get this error: It is just a simple script to test close() function.. Please help. Traceback (most recent call last): File mysql_data_test.py, line 40, in module from gluon.sql import DAL,Field File /home/lmk/Temp/web2py-web2py-**ac95b39/gluon/__init__.py, line 15, in module from globals import current File /home/lmk/Temp/web2py-web2py-**ac95b39/gluon/globals.py, line 18, in module from streamer import streamer, stream_file_or_304_or_206, DEFAULT_CHUNK_SIZE File /home/lmk/Temp/web2py-web2py-**ac95b39/gluon/streamer.py, line 15, in module import rewrite File /home/lmk/Temp/web2py-web2py-**ac95b39/gluon/rewrite.py, line 27, in module from fileutils import abspath, read_file File /home/lmk/Temp/web2py-web2py-**ac95b39/gluon/fileutils.py, line 388, in module from settings import global_settings # we need to import settings here because File /home/lmk/Temp/web2py-web2py-**ac95b39/gluon/settings.py, line 36, in module version_info = open(os.path.join(global_**settings.gluon_parent, 'VERSION'), 'r') IOError: [Errno 2] No such file or directory: '/home/lmk/Temp/web2py-web2py-**ac95b39/applications/** EDCentric/modules/VERSION' -- --
[web2py] Re: Standalone DAL leaves mysql connections opened
I am also having same problem , web2py DAL do not close connection and fails after too many connection on mysql opened. I do not have any problem before versions 1.99.1 or 1.99.2 . is that new bug introduced after 1.99.4 ? coz we are happening at 1.99.4 and up. On Friday, June 22, 2012 10:53:47 PM UTC+6:30, demetrio wrote: Hi everyone, I have connected WebDAV and SVN auth with a wsgi script. I needed to use a standalone DAL. When you do a dav petition with the navigator it makes a lot of petitions. Well, the thing is that always there is a connection opened (i can see them with PhpMyAdmin) if self.db: self.db._adapter.close() seeing this issue: http://code.google.com/p/web2py/issues/detail?id=731http://code.google.com/p/web2py/issues/detail?id=731#c4 I have tried a lot of the lines that i found there something like: if self.db: from gluon.dal import BaseAdapter BaseAdapter.close_all_instances(None) BaseAdapter.close_all_instances('commit') BaseAdapter.close_all_instances('rollback') something like: if self.db: from gluon.dal import thread as dal_thread dal_thread.instances.remove(self.db._adapter) self.db._adapter.close() and even something desesperated like: if self.db: from gluon.dal import thread as dal_thread dal_thread.instances.remove(self.db._adapter) self.db._adapter.close() self.db._adapter.close_all_instances(None) self.db._adapter.close_all_instances('commit') self.db._adapter.close_all_instances('rollback') from gluon.dal import ConnectionPool ConnectionPool.close_all_instances(None) ConnectionPool.close_all_instances('commit') ConnectionPool.close_all_instances('rollback') from gluon.dal import BaseAdapter BaseAdapter.close_all_instances(None) BaseAdapter.close_all_instances('commit') BaseAdapter.close_all_instances('rollback') But always, in the best, it leaves at least one connection opened, and i don't know how to deal with it. I have using web2py 1.99.7 in both development and production environments. Any ideas? in this moment we are building a python mysql script, but we want to use DAL to make it runnable on any of the web2py/DAL supported db Thanks in advance --
Re: [web2py] Standalone DAL leaves mysql connections opened
any resolutions on this? On Wednesday, July 18, 2012, Phyo Arkar wrote: I am also having same problem , web2py DAL do not close connection and fails after too many connection on mysql opened. I do not have any problem before versions 1.99.1 or 1.99.2 . is that new bug introduced after 1.99.4 ? coz we are happening at 1.99.4 and up. On Friday, June 22, 2012 10:53:47 PM UTC+6:30, demetrio wrote: Hi everyone, I have connected WebDAV and SVN auth with a wsgi script. I needed to use a standalone DAL. When you do a dav petition with the navigator it makes a lot of petitions. Well, the thing is that always there is a connection opened (i can see them with PhpMyAdmin) if self.db: self.db._adapter.close() seeing this issue: http://code.google.com/**p/web2py/issues/detail?id=731http://code.google.com/p/web2py/issues/detail?id=731#c4 I have tried a lot of the lines that i found there something like: if self.db: from gluon.dal import BaseAdapter BaseAdapter.close_all_**instances(None) BaseAdapter.close_all_**instances('commit') BaseAdapter.close_all_**instances('rollback') something like: if self.db: from gluon.dal import thread as dal_thread dal_thread.instances.remove(**self.db._adapter) self.db._adapter.close() and even something desesperated like: if self.db: from gluon.dal import thread as dal_thread dal_thread.instances.remove(**self.db._adapter) self.db._adapter.close() self.db._adapter.close_all_**instances(None) self.db._adapter.close_all_**instances('commit') self.db._adapter.close_all_**instances('rollback') from gluon.dal import ConnectionPool ConnectionPool.close_all_**instances(None) ConnectionPool.close_all_**instances('commit') ConnectionPool.close_all_**instances('rollback') from gluon.dal import BaseAdapter BaseAdapter.close_all_**instances(None) BaseAdapter.close_all_**instances('commit') BaseAdapter.close_all_**instances('rollback') But always, in the best, it leaves at least one connection opened, and i don't know how to deal with it. I have using web2py 1.99.7 in both development and production environments. Any ideas? in this moment we are building a python mysql script, but we want to use DAL to make it runnable on any of the web2py/DAL supported db Thanks in advance -- --
Re: [web2py] Standalone DAL leaves mysql connections opened
Is nightly build same with mercurial/git? i tried and db.close() do not exist there. On Wednesday, July 18, 2012, Phyo Arkar wrote: any resolutions on this? On Wednesday, July 18, 2012, Phyo Arkar wrote: I am also having same problem , web2py DAL do not close connection and fails after too many connection on mysql opened. I do not have any problem before versions 1.99.1 or 1.99.2 . is that new bug introduced after 1.99.4 ? coz we are happening at 1.99.4 and up. On Friday, June 22, 2012 10:53:47 PM UTC+6:30, demetrio wrote: Hi everyone, I have connected WebDAV and SVN auth with a wsgi script. I needed to use a standalone DAL. When you do a dav petition with the navigator it makes a lot of petitions. Well, the thing is that always there is a connection opened (i can see them with PhpMyAdmin) if self.db: self.db._adapter.close() seeing this issue: http://code.google.com/**p/web2py/issues/detail?id=731http://code.google.com/p/web2py/issues/detail?id=731#c4 I have tried a lot of the lines that i found there something like: if self.db: from gluon.dal import BaseAdapter BaseAdapter.close_all_**instances(None) BaseAdapter.close_all_**instances('commit') BaseAdapter.close_all_**instances('rollback') something like: if self.db: from gluon.dal import thread as dal_thread dal_thread.instances.remove(**self.db._adapter) self.db._adapter.close() and even something desesperated like: if self.db: from gluon.dal import thread as dal_thread dal_thread.instances.remove(**self.db._adapter) self.db._adapter.close() self.db._adapter.close_all_**instances(None) self.db._adapter.close_all_**instances('commit') self.db._adapter.close_all_**instances('rollback') from gluon.dal import ConnectionPool ConnectionPool.close_all_**instances(None) ConnectionPool.close_all_**instances('commit') ConnectionPool.close_all_**instances('rollback') from gluon.dal import BaseAdapter BaseAdapter.close_all_**instances(None) BaseAdapter.close_all_**instances('commit') BaseAdapter.close_all_**instances('rollback') But always, in the best, it leaves at least one connection opened, and i don't know how to deal w --
[web2py] Problem running Web2py DAL (Trunk) as Standalone
Hello Massimo and all; I had to update to trunk version of web2py because we having issue of web2py DAL not closing down connection , casuing connections to queue up and then mysql no longer accept connection (Limit reached). But when we run it we get this error: It is just a simple script to test close() function.. Please help. Traceback (most recent call last): File mysql_data_test.py, line 40, in module from gluon.sql import DAL,Field File /home/lmk/Temp/web2py-web2py-ac95b39/gluon/__init__.py, line 15, in module from globals import current File /home/lmk/Temp/web2py-web2py-ac95b39/gluon/globals.py, line 18, in module from streamer import streamer, stream_file_or_304_or_206, DEFAULT_CHUNK_SIZE File /home/lmk/Temp/web2py-web2py-ac95b39/gluon/streamer.py, line 15, in module import rewrite File /home/lmk/Temp/web2py-web2py-ac95b39/gluon/rewrite.py, line 27, in module from fileutils import abspath, read_file File /home/lmk/Temp/web2py-web2py-ac95b39/gluon/fileutils.py, line 388, in module from settings import global_settings # we need to import settings here because File /home/lmk/Temp/web2py-web2py-ac95b39/gluon/settings.py, line 36, in module version_info = open(os.path.join(global_settings.gluon_parent, 'VERSION'), 'r') IOError: [Errno 2] No such file or directory: '/home/lmk/Temp/web2py-web2py-ac95b39/applications/EDCentric/modules/VERSION' --
[web2py] Re: Problem running Web2py DAL (Trunk) as Standalone
I canot comprehand why it is searching for a VERSION File inside module folder.. Might be a bug.. On Wednesday, July 18, 2012, Phyo Arkar wrote: Hello Massimo and all; I had to update to trunk version of web2py because we having issue of web2py DAL not closing down connection , casuing connections to queue up and then mysql no longer accept connection (Limit reached). But when we run it we get this error: It is just a simple script to test close() function.. Please help. Traceback (most recent call last): File mysql_data_test.py, line 40, in module from gluon.sql import DAL,Field File /home/lmk/Temp/web2py-web2py-ac95b39/gluon/__init__.py, line 15, in module from globals import current File /home/lmk/Temp/web2py-web2py-ac95b39/gluon/globals.py, line 18, in module from streamer import streamer, stream_file_or_304_or_206, DEFAULT_CHUNK_SIZE File /home/lmk/Temp/web2py-web2py-ac95b39/gluon/streamer.py, line 15, in module import rewrite File /home/lmk/Temp/web2py-web2py-ac95b39/gluon/rewrite.py, line 27, in module from fileutils import abspath, read_file File /home/lmk/Temp/web2py-web2py-ac95b39/gluon/fileutils.py, line 388, in module from settings import global_settings # we need to import settings here because File /home/lmk/Temp/web2py-web2py-ac95b39/gluon/settings.py, line 36, in module version_info = open(os.path.join(global_settings.gluon_parent, 'VERSION'), 'r') IOError: [Errno 2] No such file or directory: '/home/lmk/Temp/web2py-web2py-ac95b39/applications/EDCentric/modules/VERSION' --
[web2py] Re: Problem running Web2py DAL (Trunk) as Standalone
Commenting out : those lines version_info = open(os.path.join(global_settings.gluon_parent, 'VERSION'), 'r') raw_version_string = version_info.read().strip() version_info.close() from fileutils import parse_version # we need fileutils import here, because # fileutils also imports settings global_settings.web2py_version = parse_version(raw_version_string) Works with standalone DAL. Are those necessary? On Wednesday, July 18, 2012, Phyo Arkar wrote: I canot comprehand why it is searching for a VERSION File inside module folder.. Might be a bug.. On Wednesday, July 18, 2012, Phyo Arkar wrote: Hello Massimo and all; I had to update to trunk version of web2py because we having issue of web2py DAL not closing down connection , casuing connections to queue up and then mysql no longer accept connection (Limit reached). But when we run it we get this error: It is just a simple script to test close() function.. Please help. Traceback (most recent call last): File mysql_data_test.py, line 40, in module from gluon.sql import DAL,Field File /home/lmk/Temp/web2py-web2py-ac95b39/gluon/__init__.py, line 15, in module from globals import current File /home/lmk/Temp/web2py-web2py-ac95b39/gluon/globals.py, line 18, in module from streamer import streamer, stream_file_or_304_or_206, DEFAULT_CHUNK_SIZE File /home/lmk/Temp/web2py-web2py-ac95b39/gluon/streamer.py, line 15, in module import rewrite File /home/lmk/Temp/web2py-web2py-ac95b39/gluon/rewrite.py, line 27, in module from fileutils import abspath, read_file File /home/lmk/Temp/web2py-web2py-ac95b39/gluon/fileutils.py, line 388, in module from settings import global_settings # we need to import settings here because File /home/lmk/Temp/web2py-web2py-ac95b39/gluon/settings.py, line 36, in module version_info = open(os.path.join(global_settings.gluon_parent, 'VERSION'), 'r') IOError: [Errno 2] No such file or directory: '/home/lmk/Temp/web2py-web2py-ac95b39/applications/EDCentric/modules/VERSION' --
Re: [web2py] Re: new web2py cheatsheet
OH thx a lot!! On Tue, Apr 10, 2012 at 10:07 AM, Sanjeet Roy sanjeet.ro...@gmail.comwrote: Thanks Massimo On Tuesday, April 10, 2012 8:57:32 AM UTC+5:30, Massimo Di Pierro wrote: Let's debug it first. On Monday, 9 April 2012 21:34:57 UTC-5, JorgeH wrote: This should be pinned :) On Monday, April 9, 2012 3:44:22 PM UTC-5, Massimo Di Pierro wrote: http://dl.dropbox.com/u/**18065445/Tmp/web2py_**cheatsheet.pdfhttp://dl.dropbox.com/u/18065445/Tmp/web2py_cheatsheet.pdf
Re: [web2py] 2.6, 2.7, 3.2, PyPy ... wich one to use?
BTW , anyone knows if pypy works with web2py? I cant get it working. On Thu, Mar 29, 2012 at 7:12 PM, Xiaofeng Tang fengcli...@gmail.com wrote: 2012/3/29 20:39:38 Xiaofeng Tang fengcli...@gmail.com: Sergi Pons Freixes Wrote: 2012/3/29 Jonathan Lundell jlund...@pobox.com: Latest 2.7. I thought 2.5 was the recommended option for web2py. From the book: ...on Python versions 2.4, 2.5, 2.6, and 2.7, although officially it only supports 2.5 so that we can guarantee backward compatibility for applications. There're no much breaking changes between latest version (2.7) and 2.5.
Re: [web2py] Re: [ANNOUNCE] uWSGI 1.1
Very good . many new features! I am liking uwsgi so far! i am going to try it out. On Sun, Mar 18, 2012 at 12:22 PM, Roberto De Ioris robe...@unbit.it wrote: hi, great news, thanks is it possible now to use uwsgi with pypy? how stable is that? any steps to do that if it is possible? thank you It requires a couple of modifications in pypy (when compiled as a shared library), i will send them a real patch soon or later. Currently it is only a (slow) work in progress, as (at least for me) having full knowledge of pypy implementation is not easy as the cpython one -- Roberto De Ioris http://unbit.it
Re: [web2py] Web2py + uWSGI and timeouts!!
Only uWSGI is used and no HTTP. I have posted my setup details on other thread. On Fri, Mar 9, 2012 at 4:12 AM, Roberto De Ioris robe...@unbit.it wrote: When i check i got this error : 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. Traceback (most recent call last): File /home/v3ss/WorkSpace/FastTract/web2py/gluon/main.py, line 447, in wsgibase parse_get_post_vars(request, environ) File /home/v3ss/WorkSpace/FastTract/web2py/gluon/main.py, line 275, in parse_get_post_vars request.body = copystream_progress(request) ### stores request body File /home/v3ss/WorkSpace/FastTract/web2py/gluon/main.py, line 143, in copystream_progress copystream(source, dest, size, chunk_size) File /home/v3ss/WorkSpace/FastTract/web2py/gluon/fileutils.py, line 376, in copystream data = src.read(chunk_size) IOError: error waiting for wsgi.input data If you are on chrome + https on cherokee, it will not works. it is a cherokee bug, you can try with latest svn snapshot (iirc it has been fixed there) -- Roberto De Ioris http://unbit.it
Re: [web2py] Web2py + uWSGI and timeouts!!
*Only uWSGI HTTP server is used and no other HTTP Servers . On Fri, Mar 9, 2012 at 2:38 PM, Phyo Arkar phyo.arkarl...@gmail.com wrote: Only uWSGI is used and no HTTP.
[web2py] Re: unicode problem in DAL
Yeah , the problem is you cannot store unicode .. Its not web2py fault tho . thats how Python works. You have to Encode before storing. So here is how it works: When you read data from a source , decode. When you store data to source , encode After retrieving data from a source (File,Database) and you want to mainipulate that data , decode it. When you've done something with that data Encode it. So when you read data from text file , Decode that text file . --- Do what you want with that file. and then Encode (ever field's values) before inserting into database. Use appropriate encoding , and if you can;t get encoding use UTF-8. On Fri, Mar 9, 2012 at 1:15 PM, weheh richard_gor...@verizon.net wrote: Did you ever get your unicode issue resolved last year? I've been having trouble with unicode and was wondering if you had a general method for dealing with it? I'm uploading text into a db by 2 methods: first method is reading a text field, 2nd method is uploading a text file. I need a reliable way of making sure all text is in same utf8 format. Do you know how to do this? On Jun 1 2011, 5:01 pm, Phyo Arkar phyo.arkarl...@gmail.com wrote: So the value has to be Endcoded FromUnicodeinto UTF8 before inserting? i am sure keys are str. We cannot storeUnicodevalues ? On 5/31/11, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I am not sure there is a problem here. I cannot help without seeing an example of the data you insert. If you do: db.table.insert(**a) a must be a dictionary with str key and str (ut8 encoded) values. You cannot haveunicodefield names. Massimo On May 31, 2:40 am, Phyo Arkar phyo.arkarl...@gmail.com wrote: I have the exactly same problem here. Can anyone look into it? thanks alot. Stef have you found a solution? On Fri, Nov 5, 2010 at 5:47 PM, Stef Mientki stef.mien...@gmail.com wrote: I'm trying to insert a record with a filed value uëLocatie and I get an error in sql.Table._insert at the last line: return 'INSERT INTO %s(%s) VALUES (%s);' % (sql_t, sql_f, sql_v) here the traceback File D:\Data_Python_25\support\Web2Py_DAL_support.py, line 250, in DAL_Table Description = Value[3][:-1]) File P:\Web2PY\web2py_src\web2py\gluon\sql.py, line 2035, in insert query = self._insert(**fields) File P:\Web2PY\web2py_src\web2py\gluon\sql.py, line 2028, in _insert return 'INSERT INTO %s(%s) VALUES (%s);' % (sql_t, sql_f, sql_v) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 35: ordinal not in range(128) I don't understand the problem and know what I'm doing wrong Wwith print statements I tried to narrow the problem, and in : def sql_represent(obj, fieldtype, dbname, db_codec='UTF-8'): there's is this part if isinstance(obj,unicode): print '', type(obj),obj if len(obj)0 : print ord(obj[0]) obj = obj.encode(db_codec) print '', type(obj) if len(obj)0 : print ord(obj[0]) which seems to convert theunicodeto a string with byte values larger than 128. Am I doing something wrong, or is this a bug ? And of course far more interesting, how do I solve this problem ? thanks, Stef Mientki
Re: [web2py] Re: Help with Cherokee, uwsgi in application with many uploads
You set timeout to 120 secs : harakiri120/harakiri socket-timeout120/socket-timeout is that what you expected ? On 3/8/12, Jose jjac...@gmail.com wrote: Also tried it with Nginx and uwsgi, with the same result Jose
[web2py] Web2py + uWSGI and timeouts!!
Hello I am testing web2py with uWSGI and some request have random timeout (after IO Heavy operation is started , but it is spawned using subprocess.Popen()) And then progress is selected from DB Every 5 Seconds (Progress Percent Insert,Commit to db is only done at each 5% intervals) At the IO Heavy times , the progress status is Timedout! even tho I set timeouts to really huge 6000 secs , it still timeout. Also it seems that all uWSGI worker processes are running at the same core as extraction process is running . how can i make it run in different cores (to make use of multple cores?) Here is my uWSGI config: ./uwsgi/uwsgi --http :8000 --chdir ./web2py/ --python-path ./web2py/ --module uwsgihandler \ --socket /tmp/web2py.sock -p 12 --harakiri-verbose --socket-timeout 6000 --harakiri-verbose 6000 Here is the controller looks like : @service.jsonrpc def import_new(case_id,source_path,extracted_path, custodian,batch_id,dedupe_scope,dedupe_fields): try: #print 'CID: %s, SP: %s, EP: %s, Cu: %s, BID: %s'% (case_id, # source_path, # extracted_path, # custodian, # batch_id) extracted_path = os.path.join(extracted_path,batch_id,completed) query = db(db.casedb.id == case_id).select(db.casedb.name).last() db_name = query.name casesdb = caseutils.setupTBL(db_name, request.folder + 'databases') #print dedupe_mode import_id=casesdb.import_data.insert(custodian=custodian, case_id=case_id, batch_hash=batch_id, extracted_path = extracted_path, dedupe_scope=dedupe_scope, dedupe_mode=dedupe_fields) #print 'IMPORT_ID',import_id session.import_id=import_id _start_processing(case_id,extracted_path,request.folder + databases,import_id,custodian, dedupe_scope, dedupe_fields) #THIS ONE is IO HEAVY but it is started as subprocess.Popen without waiting for it to be done. except: print 'Err#',traceback.format_exc() raise return dict(case_id=case_id,extracted_path=extracted_path, import_id=import_id) def _start_processing(case_id,extracted_path,db_path,import_id,custodian,dedupe_scope,dedupe_fields): import shlex cmd = python ../processes/extractor_process.py %s '%s' '%s' %s '%s' '%s' '%s' % (case_id,extracted_path,db_path,import_id,custodian,dedupe_scope,dedupe_fields) #print 'CMD:',cmd #tmp1 = shlex.split(cmd) tmp1 = [ x.replace(\0, ) for x in shlex.split(cmd) ] #print 'TMP1', tmp1 subprocess.Popen(tmp1) #Start of the IO Heavy process, i know it is not safe to do that way but we will add security optimizations later. return True @service.jsonrpc def get_extraction_progress(import_id, db_name): #EXTRACTION PROGRESS! Timeout Occours here When uWSGI is used ! Never occours before using web2py Rocket casesdb = caseutils.setupTBL(db_name, request.folder + 'databases') rows = casesdb(casesdb.progress_data.import_id == import_id).select().last() if rows: return dict(extract_count = rows.extract_count, extract_file = rows.extract_file, extract_start = str(rows.extract_start), extract_end = str(rows.extract_end)) else: return dict(extract_count = 0, extract_file = , extract_start = None, extract_end = None) @service.jsonrpc def get_parsing_progress(import_id, db_name): #PARSER PROGRESS! Timeout Occours here When uWSGI is used ! Never occours before using web2py Rocket casesdb = caseutils.setupTBL(db_name, request.folder + 'databases') rows = casesdb(casesdb.progress_data.import_id == import_id).select().last() if rows: return dict(progress_percent = rows.progress_percent, processed_files = rows.processed_files, total_files = rows.total_files, process_start = str(rows.process_start), process_end = str(rows.process_end)) else: return dict(progress_percent = 0, processed_files = None, total_files = 0, process_start = None, process_end = None)
Re: [web2py] Re: The Winners! Web2py Application Exhibition Version 3.0
Thank you very much Mr NetAdmin! Can you donate 20$ from my Prize money to web2py project please! Thanks ! On Thu, Mar 8, 2012 at 2:19 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Congratulations. Excellent work! And Thanks to Mr. Admin for organizing the competition.
Re: [web2py] Web2py + uWSGI and timeouts!!
Oh thanks a lot! I will add --close-on-exec then. i also trying --cpu-affinity On Thu, Mar 8, 2012 at 9:31 PM, Roberto De Ioris robe...@unbit.it wrote: Hello I am testing web2py with uWSGI and some request have random timeout (after IO Heavy operation is started , but it is spawned using subprocess.Popen()) And then progress is selected from DB Every 5 Seconds (Progress Percent Insert,Commit to db is only done at each 5% intervals) At the IO Heavy times , the progress status is Timedout! even tho I set timeouts to really huge 6000 secs , it still timeout. If you generate a process during a request it will inherit the opened file descriptors. Add --close-on-exec to uWSGI to let it automatically close opened sockets before execing a new process. Also it seems that all uWSGI worker processes are running at the same core as extraction process is running . how can i make it run in different cores (to make use of multple cores?) I think you are referring to 'uwsgi cores' in the logs. They are referred to threads and async modes. They do not reflect the cpu core in which it is running. -- Roberto De Ioris http://unbit.it
Re: [web2py] Web2py + uWSGI and timeouts!!
Another problem with uWSGI i am wirting a custom uploader (multipart form/data) But after it finished writing data to file , i can no longer upload another , uwsgi gives no response. What can be the cause? On Thu, Mar 8, 2012 at 10:05 PM, Phyo Arkar phyo.arkarl...@gmail.comwrote: Oh thanks a lot! I will add --close-on-exec then. i also trying --cpu-affinity On Thu, Mar 8, 2012 at 9:31 PM, Roberto De Ioris robe...@unbit.it wrote: Hello I am testing web2py with uWSGI and some request have random timeout (after IO Heavy operation is started , but it is spawned using subprocess.Popen()) And then progress is selected from DB Every 5 Seconds (Progress Percent Insert,Commit to db is only done at each 5% intervals) At the IO Heavy times , the progress status is Timedout! even tho I set timeouts to really huge 6000 secs , it still timeout. If you generate a process during a request it will inherit the opened file descriptors. Add --close-on-exec to uWSGI to let it automatically close opened sockets before execing a new process. Also it seems that all uWSGI worker processes are running at the same core as extraction process is running . how can i make it run in different cores (to make use of multple cores?) I think you are referring to 'uwsgi cores' in the logs. They are referred to threads and async modes. They do not reflect the cpu core in which it is running. -- Roberto De Ioris http://unbit.it
Re: [web2py] Web2py + uWSGI and timeouts!!
When i check i got this error : 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. Traceback (most recent call last): File /home/v3ss/WorkSpace/FastTract/web2py/gluon/main.py, line 447, in wsgibase parse_get_post_vars(request, environ) File /home/v3ss/WorkSpace/FastTract/web2py/gluon/main.py, line 275, in parse_get_post_vars request.body = copystream_progress(request) ### stores request body File /home/v3ss/WorkSpace/FastTract/web2py/gluon/main.py, line 143, in copystream_progress copystream(source, dest, size, chunk_size) File /home/v3ss/WorkSpace/FastTract/web2py/gluon/fileutils.py, line 376, in copystream data = src.read(chunk_size) IOError: error waiting for wsgi.input data On Fri, Mar 9, 2012 at 2:57 AM, Phyo Arkar phyo.arkarl...@gmail.com wrote: Another problem with uWSGI i am wirting a custom uploader (multipart form/data) But after it finished writing data to file , i can no longer upload another , uwsgi gives no response. What can be the cause? On Thu, Mar 8, 2012 at 10:05 PM, Phyo Arkar phyo.arkarl...@gmail.comwrote: Oh thanks a lot! I will add --close-on-exec then. i also trying --cpu-affinity On Thu, Mar 8, 2012 at 9:31 PM, Roberto De Ioris robe...@unbit.itwrote: Hello I am testing web2py with uWSGI and some request have random timeout (after IO Heavy operation is started , but it is spawned using subprocess.Popen()) And then progress is selected from DB Every 5 Seconds (Progress Percent Insert,Commit to db is only done at each 5% intervals) At the IO Heavy times , the progress status is Timedout! even tho I set timeouts to really huge 6000 secs , it still timeout. If you generate a process during a request it will inherit the opened file descriptors. Add --close-on-exec to uWSGI to let it automatically close opened sockets before execing a new process. Also it seems that all uWSGI worker processes are running at the same core as extraction process is running . how can i make it run in different cores (to make use of multple cores?) I think you are referring to 'uwsgi cores' in the logs. They are referred to threads and async modes. They do not reflect the cpu core in which it is running. -- Roberto De Ioris http://unbit.it
[web2py] Error on File Upload
Here with uWSGI setup i am getting this error: File /home/v3ss/WorkSpace/FastTract/web2py/gluon/fileutils.py, line 376, in copystream data = src.read(chunk_size) IOError: error waiting for wsgi.input data It happens when file size 300 MB. I am running using uwsgi. #!/bin/bash ./uwsgi/uwsgi --http :8000 --chdir ./web2py/ --python-path ./web2py/ --module uwsgihandler \ --socket /tmp/web2py.sock -p 6 \ --close-on-exec # --socket-timeout 6000 --harakiri 6000 --http-timeout 6000 --harakiri-verbose --cpu-affinity 1 here is my controller : # -*- coding: utf-8 -*- import os import urllib import traceback def upload(): upfile = request.vars.file fname = urllib.unquote(request.vars.file.filename) # cont_length = request.headers.CONTENT_LENGTH source_path= urllib.unquote(request.vars.source_path) file_path = os.path.join(source_path,fname) _chunk_writer(upfile,file_path) # print results,type(upfile),upfile.file.read() return response.json(Done) def _chunk_reader(FieldOBJ, chunk_size=1024): while True: chunk = FieldOBJ.file.read(chunk_size) # print CHUNK,chunk if not chunk: FieldOBJ.file.close() break yield chunk def _chunk_writer(file_obj,file_path): CHUNK_SIZE = 1024 * 1024 try: with open(file_path, 'wb') as fp: for chunk in _chunk_reader(file_obj,CHUNK_SIZE): # print chunk if not chunk: break fp.write(chunk) return True except: print File Error Occoured,traceback.format_exc() return False # def _shutil_chunkwriter(file_obj,file_path): # import shutil # CHUNK = 1024 * 1024 # out_file=open(file_path, 'wb') # shutil.copyfileobj(file_obj,fp,CHUNK) # out_file.close() # file_obj.close
[web2py] Re: Error on File Upload
Here is uwsgi log. Its seriouly timing out ... what should i do. Only 1 upload of large file (300 MB) is saved , else is not written. [pid: 24243|app: 0|req: 1/1] 127.0.0.1 () {36 vars in 663 bytes} [Fri Mar 9 03:25:27 2012] GET /admin = generated 3773 bytes in 448 msecs (HTTP/1.1 200) 6 headers in 304 bytes (1 switches on core 0) [pid: 24243|app: 0|req: 2/2] 127.0.0.1 () {36 vars in 680 bytes} [Fri Mar 9 03:25:29 2012] GET /favicon.ico = generated 573 bytes in 0 msecs (HTTP/1.1 400) 3 headers in 117 bytes (1 switches on core 0) [pid: 24243|app: 0|req: 3/3] 127.0.0.1 () {46 vars in 936 bytes} [Fri Mar 9 03:25:34 2012] POST /admin/default/index = generated 63 bytes in 11649 msecs (HTTP/1.1 303) 3 headers in 183 bytes (1 switches on core 0) [pid: 24243|app: 0|req: 4/4] 127.0.0.1 () {40 vars in 828 bytes} [Fri Mar 9 03:25:45 2012] GET /admin/default/site = generated 10599 bytes in 424 msecs (HTTP/1.1 200) 6 headers in 304 bytes (1 switches on core 0) [pid: 24243|app: 0|req: 5/5] 127.0.0.1 () {36 vars in 680 bytes} [Fri Mar 9 03:25:47 2012] GET /favicon.ico = generated 573 bytes in 0 msecs (HTTP/1.1 400) 3 headers in 117 bytes (1 switches on core 0) [pid: 24244|app: 0|req: 1/6] 127.0.0.1 () {44 vars in 863 bytes} [Fri Mar 9 03:25:46 2012] POST /admin/default/check_version = generated 837 bytes in 4719 msecs (HTTP/1.1 500) 2 headers in 173 bytes (1 switches on core 0) [pid: 24240|app: 0|req: 1/7] 127.0.0.1 () {40 vars in 814 bytes} [Fri Mar 9 03:25:46 2012] GET /admin/default/twitter = generated 16140 bytes in 5347 msecs (HTTP/1.1 200) 5 headers in 218 bytes (1 switches on core 0) timeout !!! SIGPIPE: writing to a closed pipe/socket/fd (probably the client disconnected) on request /FastTract/filemanager/upload (ip 127.0.0.1) !!! Fri Mar 9 03:28:39 2012 - writev(): Broken pipe [proto/uwsgi.c line 120] during POST /FastTract/filemanager/upload (127.0.0.1) SIGPIPE: writing to a closed pipe/socket/fd (probably the client disconnected) on request /FastTract/filemanager/upload (ip 127.0.0.1) !!! Fri Mar 9 03:28:39 2012 - write(): Broken pipe [proto/uwsgi.c line 138] during POST /FastTract/filemanager/upload (127.0.0.1) [pid: 24201|app: 0|req: 1/8] 127.0.0.1 () {48 vars in 931 bytes} [Fri Mar 9 03:25:10 2012] POST /FastTract/filemanager/upload = generated 0 bytes in 208654 msecs (HTTP/1.1 200) 6 headers in 0 bytes (1 switches on core 0) timeout !!! SIGPIPE: writing to a closed pipe/socket/fd (probably the client disconnected) on request /FastTract/filemanager/upload (ip 127.0.0.1) !!! Fri Mar 9 03:32:56 2012 - writev(): Broken pipe [proto/uwsgi.c line 120] during POST /FastTract/filemanager/upload (127.0.0.1) SIGPIPE: writing to a closed pipe/socket/fd (probably the client disconnected) on request /FastTract/filemanager/upload (ip 127.0.0.1) !!! Fri Mar 9 03:32:56 2012 - write(): Broken pipe [proto/uwsgi.c line 138] during POST /FastTract/filemanager/upload (127.0.0.1) [pid: 24240|app: 0|req: 2/9] 127.0.0.1 () {48 vars in 996 bytes} [Fri Mar 9 03:28:40 2012] POST /FastTract/filemanager/upload = generated 0 bytes in 256338 msecs (HTTP/1.1 200) 6 headers in 0 bytes (1 switches on core 0) timeout !!! On Fri, Mar 9, 2012 at 3:15 AM, Phyo Arkar phyo.arkarl...@gmail.com wrote: Here with uWSGI setup i am getting this error: File /home/v3ss/WorkSpace/FastTract/web2py/gluon/fileutils.py, line 376, in copystream data = src.read(chunk_size) IOError: error waiting for wsgi.input data It happens when file size 300 MB. I am running using uwsgi. #!/bin/bash ./uwsgi/uwsgi --http :8000 --chdir ./web2py/ --python-path ./web2py/ --module uwsgihandler \ --socket /tmp/web2py.sock -p 6 \ --close-on-exec # --socket-timeout 6000 --harakiri 6000 --http-timeout 6000 --harakiri-verbose --cpu-affinity 1 here is my controller : # -*- coding: utf-8 -*- import os import urllib import traceback def upload(): upfile = request.vars.file fname = urllib.unquote(request.vars.file.filename) # cont_length = request.headers.CONTENT_LENGTH source_path= urllib.unquote(request.vars.source_path) file_path = os.path.join(source_path,fname) _chunk_writer(upfile,file_path) # print results,type(upfile),upfile.file.read() return response.json(Done) def _chunk_reader(FieldOBJ, chunk_size=1024): while True: chunk = FieldOBJ.file.read(chunk_size) # print CHUNK,chunk if not chunk: FieldOBJ.file.close() break yield chunk def _chunk_writer(file_obj,file_path): CHUNK_SIZE = 1024 * 1024 try: with open(file_path, 'wb') as fp: for chunk in _chunk_reader(file_obj,CHUNK_SIZE): # print chunk if not chunk: break fp.write(chunk) return True except: print File Error Occoured,traceback.format_exc() return False # def _shutil_chunkwriter(file_obj,file_path): # import
Re: [web2py] Winners! Web2py Application Exhibition Version 3.0
Thank you very much for this Mr NetAdmin! This encouraging a lot for me to continue working on HersPOS and contributing towards Opensource and Web2py! How much is the reward? I would like to donate some of it to Massimo and web2py! I am not sure my paypal still works (account froze last time) i gonna check and let you know! Thanks! On Wed, Mar 7, 2012 at 5:39 AM, NetAdmin mr.netad...@gmail.com wrote: The winners of the Web2py Application Exhibition Version 3.0 have been contacted, and I'll announce the winners very soon! Thanks to all who participated! Mr.NetAdmin
Re: [web2py] Using Spawn in Web2Py with Web2Py Python Implementation
what do you mean by web2py's python interpreter? web2py do not have its own intepreter. it runs on Python interpreter. You will like to look for web2py's built-in cron documentation. And do not use old/depreciated os.spawn if its possible to upgrade your python to 2.7 , use subprocess.Popen On Tue, Mar 6, 2012 at 6:17 AM, james c. james.cryp...@gmail.com wrote: At irregular intervals I need to cleanup files written by my application for users. In the documentation it was suggested that one of the possibilities is to launch a script to do this. I'm doing the following from my controller and it works fine: os.spawnl(os.P_NOWAIT, r'C:\Python25\python.exe', 'python', 'clean_up.py '+the_path); Is there a way I can do the same and use Web2Py's Python interpreter? thanks in advance for any advice, James
[web2py] uWSGI Question
I would like to know about uWSGI . i haven't tried it yet. 1 - Is that a gateway to interface between other web servers ? (Apache/Cherokee/nginx etc) 2 - It seems that can be use as a webserver alone but how it works. Is that reliable /Fast? 3 - It was mentioned that The download/upload corruption do not happen in uWSGI , how you use it? Stanalone or as an gateway/interface for other webserver/reverse proxy? Thanks
Re: [web2py] uWSGI Question
Thank you very much! i am going to give uWSGI standalone mode a try! On Tue, Mar 6, 2012 at 4:47 PM, Roberto De Ioris robe...@unbit.it wrote: I would like to know about uWSGI . i haven't tried it yet. 1 - Is that a gateway to interface between other web servers ? (Apache/Cherokee/nginx etc) it depends, if you need a specific webserver front-end you can use it and connect to uWSGI via one of the supported protocols (oviously the uwsgi protocol is the suggested one). Normally, putting an application directly connected to the public network is not a good idea. So you will very probably ends always putting uWSGI behind some sort of filter (read: webserver/webrouter/loadbalancer) 2 - It seems that can be use as a webserver alone but how it works. Is that reliable /Fast? again, it depends on your setup. If you put static assets on another host, you only need a filter before your app, and you can use the included http-router. It can manages thousand of HTTP requests (in non blocking way) and forward them to uWSGI nodes. This area is fastly evolving (like persistent connections support, sctp and automatic clustering management) and could be interesting from a research poin of view. Serving static files via uWSGI could be really fast if you have few concurrent connections, but it cannot reach nginx/cherokee performance on request storming (by default uWSGI concurrency is limited by the number of spawned threads/processes) 3 - It was mentioned that The download/upload corruption do not happen in uWSGI , how you use it? Stanalone or as an gateway/interface for other webserver/reverse proxy? If you want to follow the solid path, use some rock-solid webserver (like nginx, cherokee or apache) forwarding requests to one (or more) uWSGI nodes. If you plan to have dozens of nodes with ultra scalability with no effort, try to follow the http-router development (even if you could need something like nginx/haproxy for managing https connections). -- Roberto De Ioris http://unbit.it
Re: [web2py] uWSGI Question
got it . i better use --http :port On Tue, Mar 6, 2012 at 4:59 PM, Roberto De Ioris robe...@unbit.it wrote: Thank you very much! i am going to give uWSGI standalone mode a try! Forgot an important point: --http :port will spawn the http router/filter/proxy --http-socket :port will let uWSGI speaking the http protocol (instead of the uwsgi one). You need the first form if you plan to put uWSGI alone in the network. -- Roberto De Ioris http://unbit.it
[web2py] web2py TImeout
What is default timeout for JSONRPC requests in web2py? I set timeout to 60 seconds at qooxdoo's rpc.setTimeout() which is 10 mins but it always time out at 1.1 mins (while receiving Data) . JSON Data goes over slow line (256kbps) But it is over 10mb of rows . Thanks.
Re: [web2py] Re: web2py 1.99.5 is OUT
Regarding download corruption and timeout on slow lines , if i host on non-rocket http server does it fixed? (cherokee . etc). also how about handling uploads/download seprately using another web server? On Sat, Mar 3, 2012 at 12:31 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: better to have a false positive than an un-reported bug. :-) On Friday, 2 March 2012 23:51:25 UTC-6, Sanjeet Kumar wrote: Sorry Massimo its my mistake it was the layout problem On Sat, Mar 3, 2012 at 11:19 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: How does it break it? Can you post a traceback? On Friday, 2 March 2012 21:28:38 UTC-6, Sanjeet Kumar wrote: In the new version 1.99.6 database administration problem are fixed but it is also breaking the plugin_instant_admin backward compatibility actually i am using the plugin_instant_admin in my application and when i copied the application in new version and run it than plugin_instant_admin layout is not working. On Fri, Mar 2, 2012 at 9:35 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: what specifically breaks? On Friday, 2 March 2012 00:46:28 UTC-6, Sanjeet Kumar wrote: i am very excited to use the new version of web2py 1.99.5 . when i downloaded it and use than i face the to many problems i am not be able to go the database administration when i click on the database administration it is redirecting to the site view and i also copied the my application which i developed in the previous version it is breaking the backward compatibility with plugin_instant_admin .
Re: [web2py] Re: web2py 1.99.5 is OUT
Do you experience the problem? Yes it happens even on large JSON output (rows of table as json . about 20 MB) also , it courrpts in between (not server timeout but json at recving get corrupted) On Mon, Mar 5, 2012 at 6:48 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Do you experience the problem?
Re: [web2py] Re: web2py 1.99.5 is OUT
I think i am going to implement a file server (for upload and download) using Tornado while Rocket is unstable at that. My work requires huge amount of GBs of data to be uploaded / downloaded by users. What you guys recommend? a separate Tornado server , (coz i would like upload progressbar) or a separate web2py server just for uploading (and downloading) behind Cherokee . Or any other stable soultions? On Mon, Mar 5, 2012 at 7:05 PM, Phyo Arkar phyo.arkarl...@gmail.com wrote: Do you experience the problem? Yes it happens even on large JSON output (rows of table as json . about 20 MB) also , it courrpts in between (not server timeout but json at recving get corrupted) On Mon, Mar 5, 2012 at 6:48 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Do you experience the problem?
Re: [web2py] Re: web2py 1.99.5 is OUT
never yet , does that resolve most of the issues? On Mon, Mar 5, 2012 at 9:51 PM, Vasile Ermicioi elff...@gmail.com wrote: have you tried uwsgi?
Re: [web2py] Re: web2py 1.99.5 is OUT
corrupted download / upload problems. On Mon, Mar 5, 2012 at 9:55 PM, Phyo Arkar phyo.arkarl...@gmail.com wrote: never yet , does that resolve most of the issues? On Mon, Mar 5, 2012 at 9:51 PM, Vasile Ermicioi elff...@gmail.com wrote: have you tried uwsgi?
Re: [web2py] Re: web2py[:]
Very nice Bruno! only problem is topic icons are Humongous! On Sun, Mar 4, 2012 at 11:26 PM, lyn2py lyn...@gmail.com wrote: Super! Very nice work Bruno :D On Mar 4, 11:51 am, Bruno Rocha rochacbr...@gmail.com wrote: On Sun, Mar 4, 2012 at 12:37 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Thank you Bruno. I agree with Anthony. this is a amazing work. I will mention it during the pycon talk. Who did the logo? I really like it. I created the logo *web2py[:]*, So it will be understood only by people who knows some Python, and I have not to use images to represent it :) And I bought some vector images on stock-vector to compound the mascot ( A Italian Chef who brings hot yummy *web2py slices* to us when we are hungry for code! ) [image: Inline image 1] -- Bruno Rocha [http://rochacbruno.com.br]
Re: [web2py] Get the IP of the System
Which system? On 2/28/12, Sanjeet Kumar sanjeet@gmail.com wrote: How we can get the IP address of the system
Re: [web2py] Re: web2py 1.99.5 (please read)
Is the corruption of download and upload during slow connection fixed (Rocket problem) ? Thanks Phyo. On 2/29/12, Mariano Reingart reing...@gmail.com wrote: On Tue, Feb 28, 2012 at 8:08 PM, Richard Galka richard.ga...@gmail.com wrote: A couple minor points with the admin pages and the new debugging section: In the Admin - Debug - breakpoints - Add breakpoints section, if the current application has long directory file names then the table's hints run off the page. Something similar occurs when you catch an exception (debug interaction page, right pane). Maybe wrapping long filenames could be done with css. I've uploaded some screenshots at the issue: http://code.google.com/p/web2py/issues/detail?id=666 If anyone can send a css patch or a better form/layout, it would be appreciated. I think it may be pertinent to identify that in the above section, only breakpoints set through the web editor are identified. (IE: direct file edit adding breakpoints work, but are not identified in the 'breakpoints' section). That's correct, set_trace is not a real breakpoint, it just forces the debugger to stop at that line. Maybe the tip should be changed from programatically setting breakpoint using... to something better. Best regards, Mariano Reingart http://www.sistemasagiles.com.ar http://reingart.blogspot.com
Re: [web2py] Get the IP of the System
It wont work , when you have a NATted enviorment or office with a proxy setup. On 2/29/12, Niphlod niph...@gmail.com wrote: using google I found also this one nice to play with print urllib2.urlopen('http://ifconfig.me/ip').read(http://icanhazip.com/%27%29.read%28 ) print urllib2.urlopen('http://ifconfig.me/all').read(http://icanhazip.com/%27%29.read%28 ) print urllib2.urlopen('http://ifconfig.me/all.xml').read(http://icanhazip.com/%27%29.read%28 ) print urllib2.urlopen('http://ifconfig.me/all.json').read(http://icanhazip.com/%27%29.read%28 )
Re: [web2py] Re: Support for PyPy
From their list PyPy runs 50% slower than 1.7 release : https://bugs.pypy.org/issue1051 I am not sure this will effect web2py or not but its like a huge letdown. And another discussion (Rant) on pypy i see on their list is pypy is only trying to tune performance on their benchmark-kit , and it don't really improve performance for real world usage. Thoughts , Comments? On 2/29/12, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I have fixed all pypy bugs that have been reported but I did not run it myself. Please report any problems if any. On Feb 11, 3:51 am, Phyo Arkar phyo.arkarl...@gmail.com wrote: has anyone tested with Pypy 1.8 ? Seems good this time. Previous tests fails web2py , On Fri, Feb 10, 2012 at 10:05 PM, Sathvik Ponangi psath...@gmail.comwrote: Is there some way to run Web2Py on PyPy http://pypy.org?
Re: [web2py] Re: Method to interactively experiment with web2py
My version is 1.98.2 , i updated to 1.99.4 and works fine now! sorry for mis info. On 2/26/12, Luciano Pacheco lucm...@gmail.com wrote: Hi Phyo, I'm using web2py and ipython 0.12 normally. $ ./web2py.py -S instore web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2011 Version 1.99.4 (2011-12-14 14:46:14) stable Database drivers available: SQLite3, pymysql Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) Type copyright, credits or license for more information. IPython 0.12 -- An enhanced Interactive Python. ? - Introduction and overview of IPython's features. %quickref - Quick reference. help - Python's own help system. object? - Details about 'object', use 'object??' for extra details. In [1]: What's the error you're getting ? [], -- Luciano Pacheco blog.lucmult.com.br On Sun, Feb 26, 2012 at 7:56 PM, Phyo Arkar phyo.arkarl...@gmail.comwrote: web2py shell no longer works with latest ipython 0.11 + On 2/20/12, Massimo Di Pierro massimo.dipie...@gmail.com wrote: What you use python web2py.py -S app -M -N make sure to db.commit() your changes. On Feb 19, 5:45 pm, davidkw trixiesr4k...@hotmail.com wrote: I'm wondering if there's some kind of way to use a shell or other IDE to quickly run lines of web2py code and see the result. For example, just entering db(query).select().first() and being able to see the result. I'm learning right now, and it's a little difficult to pick up the syntax without being able to play around. Any advice? Thanks.
Re: [web2py] Re: Method to interactively experiment with web2py
web2py shell no longer works with latest ipython 0.11 + On 2/20/12, Massimo Di Pierro massimo.dipie...@gmail.com wrote: What you use python web2py.py -S app -M -N make sure to db.commit() your changes. On Feb 19, 5:45 pm, davidkw trixiesr4k...@hotmail.com wrote: I'm wondering if there's some kind of way to use a shell or other IDE to quickly run lines of web2py code and see the result. For example, just entering db(query).select().first() and being able to see the result. I'm learning right now, and it's a little difficult to pick up the syntax without being able to play around. Any advice? Thanks.
Re: [web2py] jqGrid to SmartGrid - Who's made the switch?
I still prefer JQGrid many places. It is the best grid solution in existance still. But now, with the switch to qooxdoo i have to dump it and replace with qooxdoo's table coz it wont fit inside qooxdoo , in design, oo style of programming and UI. I still miss jqgrid and its remote capabilities (filtering , search ,etc) i have to re-implement everything at qooxdoo. Smartgrid still need a lot to reach jqgrid's functionality (in Client side) but web2py helper for it is very powerful. On 2/18/12, Willoughby neil.erik...@gmail.com wrote: Thanks Jim - easier upgrades and lower overhead is definitely an attraction! I guess my next step is to do some quick prototypes and see. Thanks for sharing your experience...
[web2py] can we use JSONRPC to upload?
Out of curisority ,. can we use JSONRPC protocol to Upload / Download Files (Multipart/Form) ? If so , how it will work?
Re: [web2py] Re: Folder inside controller dosen't work.
Sorry for my bad english and rushed post coz i am in car back to home. What i want to say is i now have 20 JSONRPC methods and going to grow to 100 or more when project is done. ,I want to separate them into each controller file , less than 20 each. On Sat, Feb 11, 2012 at 12:02 AM, Jonathan Lundell jlund...@pobox.comwrote: On Feb 10, 2012, at 4:57 AM, Phyo Arkar wrote: On one application , i have 20 JSON RPC methods , separated by each controller. It going to be more than 100 JSORPC methods within 1 year for whole project. Out of curiosity: why only one method per controller?
Re: [web2py] Re: Folder inside controller dosen't work.
On Sat, Feb 11, 2012 at 2:07 AM, howesc how...@umich.edu wrote: one option working with the framework as is: - make a controller called jsonrpc with 1 method - use the first arg from the request.args to select the module to call - create a directory in modules and put all your calls in there. - import and invoke the modules as needed by the controller (passing in request and whatever else is needed) in that case you write 1 controller and forget about it, and then create the modules just as you were planning to make controllers. Look interesting but that would make the service URLs a bit ugly . i would prefer each UI having its own service URL not generic single method. What i want is like this : /controllers/services/case.py /controllers/services/dashboard.py /controllers/services/result_grid.py /controllers/services/front.py /controllers/services/import_wizard.py /controllers/services/export_wizard.py . more each service will have 5 - 10 JSORPC method. Which is totally clean and descriptive Currently it look like this : /controllers/default.py /controllers/runonce.py /controllers/extraction.py /controllers/parser.py /controllers/case_service.py /controllers/dashboard_service.py /controllers/result_grid_service.py /controllers/front_service.py /controllers/import_wizard_service.py /controllers/export_wizard_service.py . more Even now it is becoming hard to manage , when its going to grow much bigger , over 20 - 50 files for web and JSONRPC - it will be a night mare. Can we have folder organization inside controllers ? If that not possible, As JSONRPC service do not interprete /after_controller/as_args can we atleast have JSONRPC and any other services to have subfolders ? This will ease a lot of pain in code management and also.
Re: [web2py] Support for PyPy
has anyone tested with Pypy 1.8 ? Seems good this time. Previous tests fails web2py , On Fri, Feb 10, 2012 at 10:05 PM, Sathvik Ponangi psath...@gmail.comwrote: Is there some way to run Web2Py on PyPy http://pypy.org?
Re: [web2py] Image from Video
ffmpeg On Sat, Feb 11, 2012 at 5:42 PM, Web2Py Freak halna...@gardeniatelco.comwrote: Dear ALL, How Can i Make Plugin Wiki Player Have an Image From the video Before its played ? Best Regards ,
Re: [web2py] Re: Folder inside controller dosen't work.
Thanks, Yeah thats a lot better. I would change naming sheme that way , but still would be good to be able to use folders. On Sat, Feb 11, 2012 at 7:07 PM, LightDot light...@gmail.com wrote: Always when I deal with big projects, the first thing I do is organize a strict file structure. Not just web2py, I do similar things with photoshop layers, files on my computer, etc. It just makes life that much easier. For now, I would just reorganize your file names a bit... ie.: /controllers/result_grid_**service.py /controllers/front_service.py /controllers/import_wizard_**service.py /controllers/export_wizard_**service.py to /controllers/service_grid_result.py /controllers/service_front.py /controllers/service_wizard_import.py /controllers/service_wizard_export.py etc. So prepend service or services as it would be a directory. Use ...wizard_import.. and wizard_export instead of ...export_wizard.., do grid_result instead of result_grid, etc.. If you do it this way, everything stays alphabetical, wizard controllers will be listed together with other wizard controllers, grid with other grids, etc. If it's the visual presentation that is the main issue here, than this will give you a very similar result as subdirectories would. Except that you'll still see all the files at once, which I don't think is such a big deal. Plain, not rewritten URL-s will also be very similar as they would be if you had directories. Problem solved?
Re: [web2py] Re: Folder inside controller dosen't work.
I forgot route.py! thats interesting I will look into it! On Sat, Feb 11, 2012 at 7:40 PM, Anthony abasta...@gmail.com wrote: Look interesting but that would make the service URLs a bit ugly . i would prefer each UI having its own service URL not generic single method. What i want is like this : /controllers/services/case.py /controllers/services/**dashboard.py /controllers/services/result_**grid.py /controllers/services/front.py /controllers/services/import_**wizard.py /controllers/services/export_**wizard.py You should be able to do that using howesc's method if you use routes.py to remove the controller function from the URL. So, you could have a controller called services.py with a single action called jsonrpc(), and that action could read the first arg or two from the URL in order to invoke to appropriate module and function within the module. You can hide the jsonrpc function from the URL via routes.py. Alternatively, services could simply be a function in the default.py controller instead of being a separate controller, and it could do the routing to the modules. Anthony
Re: [web2py] Re: Folder inside controller dosen't work.
ofcoz i put all the reusable code inside modules and such. and most are object oriented. But that is not a choice WHEN you want to separate Controllers thats going to serve ONLY JSONRPC and controller for HTML only.Folder becomes only necessary choice. On one application , i have 20 JSON RPC methods , separated by each controller. It going to be more than 100 JSORPC methods within 1 year for whole project. I do not want to Trow away web2py due to such small problem , but this project which i doing alone now , with a team with different people , which going to grow soon to 15 members thats become big problem. Thats where code management hell kicks in. I cant tell them to just Separate all JSONRPC services inside a folder and Call from there , so it make it easy to debug! . On Thu, Feb 9, 2012 at 9:11 PM, Ross Peoples ross.peop...@gmail.com wrote: Not sure on the subfolder thing, but is it possible for you to put most of your code into modules and just use controllers as the gateway to your modules?
Re: [web2py] Re: Folder inside controller dosen't work.
but this project which i doing alone now , with a team with different people , which going to grow soon to 15 members thats become big problem. * correction * Which i was doing alone Before , now I am with a team of different programming background. On Fri, Feb 10, 2012 at 7:27 PM, Phyo Arkar phyo.arkarl...@gmail.comwrote: ofcoz i put all the reusable code inside modules and such. and most are object oriented. But that is not a choice WHEN you want to separate Controllers thats going to serve ONLY JSONRPC and controller for HTML only.Folder becomes only necessary choice. On one application , i have 20 JSON RPC methods , separated by each controller. It going to be more than 100 JSORPC methods within 1 year for whole project. I do not want to Trow away web2py due to such small problem , but this project which i doing alone now , with a team with different people , which going to grow soon to 15 members thats become big problem. Thats where code management hell kicks in. I cant tell them to just Separate all JSONRPC services inside a folder and Call from there , so it make it easy to debug! . On Thu, Feb 9, 2012 at 9:11 PM, Ross Peoples ross.peop...@gmail.comwrote: Not sure on the subfolder thing, but is it possible for you to put most of your code into modules and just use controllers as the gateway to your modules?
[web2py] Folder inside controller dosen't work.
Is that a bug or by design? I am using JSONRPC of web2py , i want to keep JSONRPC services int its own subfolder so not mixed with controllers for html. But web2py is not allowing me to do so. Here is my web2py's conttrolelr path: /home/v3ss/web2py/applications/FastTract/controllers/ i want to put caselist.py (which is to deal with case table part of the project) inside services folder. so it should look like this : /home/v3ss/web2py/applications/FastTract/controllers/services/case.py All jsonRPC related services will go inside that folder. But when i tried to call : http://localhost:8000/FastTract/services/case/call/jsonrpc?nocache=1328793441550 invalid controller (services/case) What can i do? I believe code folder organisation is very important feature for Large complex systems. My Project is growing big and should be able to organize code. 50 files of code spreading inside just one controller folder is a management nightmare. Thanks.