[web2py] Absolute URLs
How to force web2py to make all URL's absolute instead of having to write URL(..., scheme=True, host=True) in every link? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: OFF Topic -RiotJS
another one bites the dust. http://vuejs.org/guide/index.html the docs are very extensive 2015-06-08 17:38 GMT+01:00 Derek sp1d...@gmail.com: I just hate non-compliant html. I've always been drawn to html compliant templates, like TAL (Template Attribute Language). In any case, I see that it generates html, and it is a lot smaller than the alternatives. I'd be willing to give this a shot. On Monday, June 8, 2015 at 3:02:30 AM UTC-7, Ramos wrote: just to share some noise on the UI for those looking at angular reactjs polymer ractive and so on https://muut.com/riotjs/ any experience or comments ? Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+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] object 'DAL' has no attribute 'Field' - After update 2.11.2
I update web2py to last version from: (wget http://www.web2py.com/examples/static/nightly/web2py_src.zip) After start all apps included admin give errors. I make a cat in console, and get this info in error. type 'exceptions.AttributeError' type object 'DAL' has no attribute 'Field' VERSION: Version 2.11.2-stable+timestamp.2015.05.30.16.33.24 SYSTEM: Ubuntu Server 12.04 DATABASE: PostgreSQL 9.3 It's a bug? Anyone has the same problem? I'm doing something wrong? (It's not the first time that i make updates) Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] All messed up
Alright, a little further now. I figured I needed to reinstall/upgrade psycopg2, which I did. Now I'm getting the ticket: Traceback (most recent call last): File G:\web2py\gluon\restricted.py, line 227, in restricted exec ccode in environment File G:/web2py/applications/myapp/models/0_0_globals.py http://127.0.0.1:8000/admin/edit/YAKiToMe/models/0_0_globals.py, line 43, in module migrate=True, # True causes db changes to propagate immediately File G:\web2py\gluon\packages\dal\pydal\base.py, line 174, in __call__ obj = super(MetaDAL, cls).__call__(*args, **kwargs) File G:\web2py\gluon\packages\dal\pydal\base.py, line 459, in __init__ raise RuntimeError(Failure to connect, tried %d times:\n%s % (attempts, tb)) RuntimeError: Failure to connect, tried 10 times: Traceback (most recent call last): File G:\web2py\gluon\packages\dal\pydal\base.py, line 437, in __init__ self._adapter = ADAPTERS[self._dbname](**kwargs) File G:\web2py\gluon\packages\dal\pydal\adapters\base.py, line 57, in __call__ obj = super(AdapterMeta, cls).__call__(*args, **kwargs) File G:\web2py\gluon\packages\dal\pydal\adapters\postgres.py, line 151, in __init__ self.reconnect() File G:\web2py\gluon\packages\dal\pydal\connection.py, line 126, in reconnect self.connection = f() File G:\web2py\gluon\packages\dal\pydal\adapters\postgres.py, line 148, in connector return self.driver.connect(**driver_args) File C:\Program Files (x86)\Python27\lib\site-packages\psycopg2\__init__.py, line 164, in connect conn = _connect(dsn, connection_factory=connection_factory, async=async) OperationalError: could not connect to server: Connection refused (0x274D/10061) Is the server running on host localhost (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused (0x274D/10061) Is the server running on host localhost (127.0.0.1) and accepting TCP/IP connections on port 5432? I'm invoking my web2py app from localhost. I'm pretty sure I installed postgres to monitor port 5432 (the default). I'm checking it out now. -- 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] All messed up
Is your pg_hba.conf allowing your connections? On Tue, Jun 9, 2015 at 9:47 AM, weheh richard_gor...@verizon.net wrote: Alright, a little further now. I figured I needed to reinstall/upgrade psycopg2, which I did. Now I'm getting the ticket: Traceback (most recent call last): File G:\web2py\gluon\restricted.py, line 227, in restricted exec ccode in environment File G:/web2py/applications/myapp/models/0_0_globals.py http://127.0.0.1:8000/admin/edit/YAKiToMe/models/0_0_globals.py, line 43, in module migrate=True, # True causes db changes to propagate immediately File G:\web2py\gluon\packages\dal\pydal\base.py, line 174, in __call__ obj = super(MetaDAL, cls).__call__(*args, **kwargs) File G:\web2py\gluon\packages\dal\pydal\base.py, line 459, in __init__ raise RuntimeError(Failure to connect, tried %d times:\n%s % (attempts, tb)) RuntimeError: Failure to connect, tried 10 times: Traceback (most recent call last): File G:\web2py\gluon\packages\dal\pydal\base.py, line 437, in __init__ self._adapter = ADAPTERS[self._dbname](**kwargs) File G:\web2py\gluon\packages\dal\pydal\adapters\base.py, line 57, in __call__ obj = super(AdapterMeta, cls).__call__(*args, **kwargs) File G:\web2py\gluon\packages\dal\pydal\adapters\postgres.py, line 151, in __init__ self.reconnect() File G:\web2py\gluon\packages\dal\pydal\connection.py, line 126, in reconnect self.connection = f() File G:\web2py\gluon\packages\dal\pydal\adapters\postgres.py, line 148, in connector return self.driver.connect(**driver_args) File C:\Program Files (x86)\Python27\lib\site-packages\psycopg2\__init__.py, line 164, in connect conn = _connect(dsn, connection_factory=connection_factory, async=async) OperationalError: could not connect to server: Connection refused (0x274D/10061) Is the server running on host localhost (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused (0x274D/10061) Is the server running on host localhost (127.0.0.1) and accepting TCP/IP connections on port 5432? I'm invoking my web2py app from localhost. I'm pretty sure I installed postgres to monitor port 5432 (the default). I'm checking it out now. -- 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. -- Massimiliano -- 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] All messed up
actively refused it means that the socket you're pointing to is not open(able) . Review the listening ports and/or the firewall. -- 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: Virtual fields disapeared from select() results (v2.11.2)
Lovely! I was just about to post this problem. On Tuesday, 9 June 2015 07:56:35 UTC+1, Paolo Valleri wrote: I see the problem now, thanks for pointing it out. I'll post a fix later today. Paolo 2015-06-08 22:11 GMT+02:00 Donatas Burba d.b...@gmail.com javascript:: This is failing example: db=DAL('sqlite:memory') db.define_table('tt', Field('vv', 'integer'), Field.Virtual('x', lambda row: row.tt.vv * 10)) db.define_table('tt2', Field('ttref', 'reference tt'), Field('vv2', 'integer')) tt1 = db.tt.insert(vv='1') tt2 = db.tt.insert(vv='3') db.tt2.insert(ttref=tt1, vv2='3') db.tt2.insert(ttref=tt2, vv2='4') records = db(db.tt).select( db.tt.ALL, db.tt2.ALL, join=[db.tt2.on(db.tt2.ttref == db.tt.id)] ) for r in records: print r Result: Row {'tt2': {'ttref': 1L, 'id': 1L, 'vv2': 3L}, 'tt': {'id': 1L, 'vv': 1L}} Row {'tt2': {'ttref': 2L, 'id': 2L, 'vv2': 4L}, 'tt': {'id': 2L, 'vv': 3L}} As you can see virtual field 'x' (in table 'tt') is missing. As I understand this occurs when selecting records from more than one table. In my case (with PostgreSQL) every time I use db(...).select(db.table.ALL, TOTAL_ROWS, ...) where TOTAL_ROWS = 'COUNT(*) OVER()'. -- 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/l8V3nAzE4Hs/unsubscribe. To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com javascript:. 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: OFF Topic -RiotJS
Videos... https://laracasts.com/series/learning-vuejs/episodes/1 2015-06-09 11:21 GMT+01:00 António Ramos ramstei...@gmail.com: another one bites the dust. http://vuejs.org/guide/index.html the docs are very extensive 2015-06-08 17:38 GMT+01:00 Derek sp1d...@gmail.com: I just hate non-compliant html. I've always been drawn to html compliant templates, like TAL (Template Attribute Language). In any case, I see that it generates html, and it is a lot smaller than the alternatives. I'd be willing to give this a shot. On Monday, June 8, 2015 at 3:02:30 AM UTC-7, Ramos wrote: just to share some noise on the UI for those looking at angular reactjs polymer ractive and so on https://muut.com/riotjs/ any experience or comments ? Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+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] Absolute URLs
but that way I would have to rewrite all my apps code, can't I change the default variables in models? I would like to have host=True by default Francisco Tomé Costa +351 918412636 +351918412636 https://www.linkedin.com/in/franciscocosta On Tue, Jun 9, 2015 at 12:26 PM, Marin Pranjić marin.pran...@gmail.com wrote: You don't need to force it. Use functools.partial to make your own URL helper instead. Marin On Tue, Jun 9, 2015 at 12:21 PM, Francisco Costa m...@franciscocosta.com wrote: How to force web2py to make all URL's absolute instead of having to write URL(..., scheme=True, host=True) in every link? -- 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/OuIouXnxTOQ/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.
Re: [web2py] Absolute URLs
You don't need to force it. Use functools.partial to make your own URL helper instead. Marin On Tue, Jun 9, 2015 at 12:21 PM, Francisco Costa m...@franciscocosta.com wrote: How to force web2py to make all URL's absolute instead of having to write URL(..., scheme=True, host=True) in every link? -- 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: Virtual fields disapeared from select() results (v2.11.2)
I see the problem now, thanks for pointing it out. I'll post a fix later today. Paolo 2015-06-08 22:11 GMT+02:00 Donatas Burba d.bu...@gmail.com: This is failing example: db=DAL('sqlite:memory') db.define_table('tt', Field('vv', 'integer'), Field.Virtual('x', lambda row: row.tt.vv * 10)) db.define_table('tt2', Field('ttref', 'reference tt'), Field('vv2', 'integer')) tt1 = db.tt.insert(vv='1') tt2 = db.tt.insert(vv='3') db.tt2.insert(ttref=tt1, vv2='3') db.tt2.insert(ttref=tt2, vv2='4') records = db(db.tt).select( db.tt.ALL, db.tt2.ALL, join=[db.tt2.on(db.tt2.ttref == db.tt.id)] ) for r in records: print r Result: Row {'tt2': {'ttref': 1L, 'id': 1L, 'vv2': 3L}, 'tt': {'id': 1L, 'vv': 1L}} Row {'tt2': {'ttref': 2L, 'id': 2L, 'vv2': 4L}, 'tt': {'id': 2L, 'vv': 3L}} As you can see virtual field 'x' (in table 'tt') is missing. As I understand this occurs when selecting records from more than one table. In my case (with PostgreSQL) every time I use db(...).select(db.table.ALL, TOTAL_ROWS, ...) where TOTAL_ROWS = 'COUNT(*) OVER()'. -- 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/l8V3nAzE4Hs/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.
Re: [web2py] All messed up
@Niphlod: OK, I reinstalled Windows from source and this time web2py is back in working order. However, I'm still unable to connect to postgresql. I'm getting this ticket: Traceback (most recent call last): File G:\web2py\gluon\restricted.py, line 227, in restricted exec ccode in environment File G:/web2py/applications/myapp/models/0_0_globals.py http://127.0.0.1:8000/admin/edit/YAKiToMe/models/0_0_globals.py, line 43, in module migrate=True, # True causes db changes to propagate immediately File G:\web2py\gluon\packages\dal\pydal\base.py, line 174, in __call__ obj = super(MetaDAL, cls).__call__(*args, **kwargs) File G:\web2py\gluon\packages\dal\pydal\base.py, line 459, in __init__ raise RuntimeError(Failure to connect, tried %d times:\n%s % (attempts, tb)) RuntimeError: Failure to connect, tried 10 times: Traceback (most recent call last): File G:\web2py\gluon\packages\dal\pydal\base.py, line 437, in __init__ self._adapter = ADAPTERS[self._dbname](**kwargs) File G:\web2py\gluon\packages\dal\pydal\adapters\base.py, line 57, in __call__ obj = super(AdapterMeta, cls).__call__(*args, **kwargs) File G:\web2py\gluon\packages\dal\pydal\adapters\postgres.py, line 151, in __init__ self.reconnect() File G:\web2py\gluon\packages\dal\pydal\connection.py, line 126, in reconnect self.connection = f() File G:\web2py\gluon\packages\dal\pydal\adapters\postgres.py, line 148, in connector return self.driver.connect(**driver_args) File G:\web2py\gluon\contrib\pg8000\__init__.py, line 336, in connect user, host, unix_sock, port, database, password, ssl) File G:\web2py\gluon\contrib\pg8000\core.py, line 969, in __init__ raise InterfaceError(communication error, exc_info()[1]) InterfaceError: ('communication error', error(10061, 'No connection could be made because the target machine actively refused it')) Wonder if anyone has ever run into this with postgresql before? The only difference in my setup is I upgraded my postgres to the most recent version (9.4). I believe I got the user/password combos correct when I restored the db into the new postgresql install. Any thoughts, anyone? Thanks for reading. -- 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] Bug with Blocks
I think I found a bug with blocks. In my base_layout.html li{{block page_title}}{{end}}/li And this in my view file... {{block page_title}} Dashboard {{end}} This will print the replacement block in the correct location. BUT it will also print it where ever I put it in the html. Am I understanding the purpose of blocks wrong or is this a bug? So if I put the block with the Dashboard in it at the bottom of the page I will get it in the li tags there but also in the bottom of the page. BR, Jason Brower -- 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] password zip
There is no password for this zip file. Either: You have a malware trying to probe for your passwords. You have an extracting program that isn't behaving properly. You downloaded the wrong file. What tool are you using to extract the file? On Mon, Jun 8, 2015 at 3:46 AM milad ranaei siadat ranaei.mila...@gmail.com wrote: hi . i am milad . i downloaded web2py for mac . but when i want extract zip file it will need password . what should i do ? -- 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] Absolute URLs
Ok, sorry. I don't think there is a way to do it like that. Looking for something similar to auth.settings, right? Marin On Tue, Jun 9, 2015 at 3:32 PM, Francisco Tomé Costa m...@franciscocosta.com wrote: I was looking for a classy way to change the default, didn't want to rewrite the URL() function Francisco Tomé Costa +351 918412636 +351918412636 https://www.linkedin.com/in/franciscocosta On Tue, Jun 9, 2015 at 1:14 PM, Marin Pranjić marin.pran...@gmail.com wrote: Ok, as you wish... Put this in model file: default_URL = URL URL = new code here Marin On Tue, Jun 9, 2015 at 1:30 PM, Francisco Tomé Costa m...@franciscocosta.com wrote: but that way I would have to rewrite all my apps code, can't I change the default variables in models? I would like to have host=True by default Francisco Tomé Costa +351 918412636 +351918412636 https://www.linkedin.com/in/franciscocosta On Tue, Jun 9, 2015 at 12:26 PM, Marin Pranjić marin.pran...@gmail.com wrote: You don't need to force it. Use functools.partial to make your own URL helper instead. Marin On Tue, Jun 9, 2015 at 12:21 PM, Francisco Costa m...@franciscocosta.com wrote: How to force web2py to make all URL's absolute instead of having to write URL(..., scheme=True, host=True) in every link? -- 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/OuIouXnxTOQ/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 a topic in the Google Groups web2py-users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/OuIouXnxTOQ/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] Absolute URLs
thanks for the solution Anthony, it works pretty well Francisco Tomé Costa +351 918412636 +351918412636 https://www.linkedin.com/in/franciscocosta On Tue, Jun 9, 2015 at 4:19 PM, Anthony abasta...@gmail.com wrote: On Tuesday, June 9, 2015 at 10:48:25 AM UTC-4, Francisco Costa wrote: Marin: Yes! Anthony: Well I was wondering if there was a simple solution. Never used functools before In a model file: import functools URL = functools.partial(URL, scheme=True, host=True) 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 a topic in the Google Groups web2py-users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/OuIouXnxTOQ/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.
Re: [web2py] Re: Sublime Text web2py plugin
I cant install web2py sublimeRepl via W2p:Add sublimeREPL support Just see on status bar Loading Repositories and nothing more then i search for it and i get this only [image: Imagem inline 1] Any help ? i´m on windows 7 2015-05-21 17:21 GMT+01:00 António Ramos ramstei...@gmail.com: XDebug looks nice but is for php only ? 2015-05-20 20:05 GMT+01:00 Ron Chatterjee achatterjee...@gmail.com: Few good links for sublime I thought I can share within the community if anyone is interested. The django sublime interface walks you through the entire sublime setup. I am sure, web2py will be same. That said, I couldn't have the ipython and terminal working like anaconda. Or may be this is the best sublime can do. plugins available for debugging; for example: http://www.sitepoint.com/debugging-xdebug-sublime-text-3/ Plugins for Python development: https://packagecontrol.io/packages/IPython%20Notebook https://nipunbatra.wordpress.com/2014/01/30/plugins-for-python-development-in-sublime-text/ Navigating projects: http://www.joshuawinn.com/understanding-projects-in-sublime-text-saving-switching-etc/ Package management: https://packagecontrol.io/installation Django interface: http://www.marinamele.com/2014/03/install-and-configure-sublime-text-3.html On Wednesday, May 20, 2015 at 3:16:42 AM UTC-4, Gergely Orosz wrote: Hi Ron, To be honest I am still learning the advanced features of Sublime, Python and Web2py :) I am not familiar with ipython package unfortunately. I am using SublimeREPL package to open interactive shell in Sublime. You can open as many interactive shell as many you want. Sublime open a new tab for the shell and you can evaluate commands there. What do you mean by integrating project with ipython. Web2py has an option to start ipython shell I think if installed that is the default shell. Hope I could help. If you have any question drop me a mail Regards Greg Ron Chatterjee achatte...@gmail.com ezt írta (időpont: 2015. máj. 20., Sze, 1:43): This is great. I just started looking at sublime text. This is not a web2py question but since you are so familiar with sublime Gergely, let me ask the question anyway...in sublime, all I see a python terminal. I don't see a command prompt or ipython terminal. I have installed the ipython from install packages. How do I add more terminal into sublime? Also, integrating Ipython with the project so all the variable shows up in the workspace. Any thoughts? On Tuesday, May 19, 2015 at 5:00:58 AM UTC-4, Gergely Orosz wrote: Hi Ramos, It some bug in SublimeREPL it is not related the W2P plugin. I was away on holiday and the development slowed down a bit but I am going to make a tutorial video how to use the plugin Also started implementing the open controller from view command 2015. május 7., csütörtök 15:15:09 UTC+2 időpontban Ramos a következőt írta: if i open console i see this before installing SublimeREPL warning: mnemonic r not found in menu caption SublimeREPL warning: mnemonic r not found in menu caption Ruby warning: mnemonic p not found in menu caption Python warning: mnemonic d not found in menu caption Python - PDB current file warning: mnemonic d not found in menu caption Python - RUN current file warning: mnemonic p not found in menu caption Python - IPython warning: mnemonic f not found in menu caption F# warning: mnemonic d not found in menu caption GDB warning: mnemonic g not found in menu caption Groovy warning: mnemonic h not found in menu caption Haskell warning: mnemonic i not found in menu caption Io warning: mnemonic l not found in menu caption Lua warning: mnemonic m not found in menu caption Matlab warning: mnemonic m not found in menu caption MozRepl warning: mnemonic n not found in menu caption Node warning: mnemonic o not found in menu caption Octave warning: mnemonic p not found in menu caption Perl warning: mnemonic s not found in menu caption PHP warning: mnemonic p not found in menu caption PowerShell warning: mnemonic r not found in menu caption R warning: mnemonic n not found in menu caption Racket warning: mnemonic r not found in menu caption Rails warning: mnemonic b not found in menu caption SBT for opened folder warning: mnemonic r not found in menu caption Scheme warning: mnemonic r not found in menu caption Gauche warning: mnemonic r not found in menu caption Petite Chez Scheme warning: mnemonic scs not found in menu caption ScriptCS warning: mnemonic s not found in menu caption Shell Opening in new tab Stoping web2py server with pid: 6192 Opening in new tab Then clicking to install sublimeREPL nothing happens i see only in status bar *Loading repositories * and as soon this messages disappears nothing happens and going back to search to install, there it is again in the list W2P:Add sublimeREPL Support 2015-05-06 18:18 GMT+01:00 Gergely Orosz oroszgerg...@gmail.com: Can you see any error
Re: [web2py] Absolute URLs
Marin: Yes! Anthony: Well I was wondering if there was a simple solution. Never used functools before Francisco Tomé Costa +351 918412636 +351918412636 https://www.linkedin.com/in/franciscocosta On Tue, Jun 9, 2015 at 3:33 PM, Anthony abasta...@gmail.com wrote: On Tuesday, June 9, 2015 at 9:32:48 AM UTC-4, Francisco Costa wrote: I was looking for a classy way to change the default, didn't want to rewrite the URL() function Note, the suggested solution is not re-writing the URL() function -- it is re-defining the URL variable in the global environment to point to a functools partial object rather than the original URL() function. What do you mean by classy -- do you want the URL object to be an instance of a class rather than a function? What do you envision? 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 a topic in the Google Groups web2py-users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/OuIouXnxTOQ/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.
Re: [web2py] Absolute URLs
On Tuesday, June 9, 2015 at 10:48:25 AM UTC-4, Francisco Costa wrote: Marin: Yes! Anthony: Well I was wondering if there was a simple solution. Never used functools before In a model file: import functools URL = functools.partial(URL, scheme=True, host=True) 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.
Re: [web2py] using PyCharm
Since they support web2py, they didn't progress much... I mean they release at least 2 PyCharm version where the focus were clearly over improving support for Django project support. But but no improve over web2py support. My guess is that their users base are Django users so they prioritize those client over the others since they funding come from them... I own a professionnal PyCharm licence since 2 years and I am pretty satisfy in general, but I would appreciate web2py support improvement... Richard On Mon, Jun 8, 2015 at 6:48 PM, Alex mrauc...@gmail.com wrote: Is anyone here using PyCharm for web2py projects? Since last year PyCharm has added web2py support for the Professional edition. It's really great and saves me a lot of time. Especially debugging applications is super easy. But there is still a huge problem how it handles projects. I have many web2py projects in different svn repositories and only one local web2py server with symbolic links to my applications. This doesn't seem to be currently possible with PyCharm. I don't understand how people can use the PyCharm web2py integration with this issue. Either no one is using it or only with one project and no VCS repository... In case you're using PyCharm I'd appreciate it if you could vote (or comment) on this issue: https://youtrack.jetbrains.com/issue/PY-15309 at the moment it seems like they're not taking it seriously since there are only 2 people (incl. me) complaining. My first reported blocking issue took half a year until it got fixed, that's quite frustrating. I'm sure they'd address those issues sooner if there were more people giving feedback. thanks, Alex -- 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] Absolute URLs
On Tuesday, June 9, 2015 at 9:32:48 AM UTC-4, Francisco Costa wrote: I was looking for a classy way to change the default, didn't want to rewrite the URL() function Note, the suggested solution is not re-writing the URL() function -- it is re-defining the URL variable in the global environment to point to a functools partial object rather than the original URL() function. What do you mean by classy -- do you want the URL object to be an instance of a class rather than a function? What do you envision? 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.
[web2py] Re: soap client with windows NTLM authorization
Thanks for your reply! I used the proxy because I checked from the source code that proxy is the only place I can pass my username and password to pycurl from SoapClient class. I can connect to this SOAP service directly with pycurl using the code you provided. But I want to create a SoapClient object based on this SOAP service. I still cannot figure it out yet. On Monday, June 8, 2015 at 5:28:08 PM UTC-4, Derek wrote: a simple monkey patch will do you. I would suggest you don't import into the base namespace though. import gluon.contrib.pysimplesoap.client as ssClient then do the monkey... ssClient.Http = set_http_wrapper(library='pycurl') and use it like normal. I don't get why you are trying to use a proxy? import pycurl name='bob' pwd='pwd1' url=https://mywebservice; curl = pycurl.Curl() curl.setopt(pycurl.URL, url) curl.setopt(pycurl.SSL_VERIFYPEER, 0) curl.setopt(pycurl.HTTPAUTH, pycurl.HTTPAUTH_NTLM) curl.setopt(pycurl.USERPWD, {}:{}.format(name, pwd)) curl.perform() curl.close() On Monday, June 8, 2015 at 11:45:44 AM UTC-7, Pengfei Yu wrote: Hi Derek, Thanks for your reply! I saw similar source code as well. But there is no document how to set it up using pysimplesoap. Could you provide an example? I tried to use following, but it cannot work. import sys,time sys.path.append(/home/www-data/web2py) import pprint from gluon.contrib.pysimplesoap.client import * from gluon.contrib.pysimplesoap.transport import * user = 'XXX' password = *** proxy={'proxy_user':user,'proxy_pass':password} Http = set_http_wrapper(library='pycurl') client=SoapClient(wsdl=https://54.153.5.133:53441/ForAGISService?wsdl;, proxy=proxy) Thanks! On Monday, June 8, 2015 at 12:18:38 PM UTC-4, Derek wrote: looks like pycurl is supported by pysimplesoap. That supports NTLM. See line 67. https://code.google.com/p/pysimplesoap/source/browse/pysimplesoap/client.py?r=6ed06397b4f0c1894156ee5d0a1c165f80ed6a68 On Monday, June 8, 2015 at 7:28:39 AM UTC-7, Pengfei Yu wrote: Hi, I am trying to access a web service which requires windows NTLM authorization. I am able to successfully implement it using suds python library with following code: from suds.transport.http import * from suds.transport.https import WindowsHttpAuthenticated from suds.client import * import time sampleID = AA user = 'XXX' password = *** url = https://54.153.5.133:53441/ForAGISService?wsdl; transport = WindowsHttpAuthenticated(username=user, password=password) client = Client(url, transport=transport) print List of methods for this web service: print [method for method in client.wsdl.services[0].ports[0].methods] print \nsample info: print client.service.GetSampleInfoById(sampleID) The NTLM transport is supported by python-ntlm package as mentioned in https://fedorahosted.org/suds/wiki/Documentation#WindowsNTLM. But I prefer to use pysimplesoap as SOAP client in my web2py application. I wonder if there is also an feasible approach to implement it with pysimplesoap + python-ntlm? If someone could provide a code example, that will be perfect. Thanks! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: object 'DAL' has no attribute 'Field' - After update 2.11.2
if you'r ecoming from an older version, the structure of packages changed a bit and so the usual unzip over it doesn't work . Try to start with a unzip in a fresh folder and then copy over your applications only. it should work fine. On Tuesday, June 9, 2015 at 10:47:54 AM UTC+2, Tomeu Roig wrote: I update web2py to last version from: (wget http://www.web2py.com/examples/static/nightly/web2py_src.zip) After start all apps included admin give errors. I make a cat in console, and get this info in error. type 'exceptions.AttributeError' type object 'DAL' has no attribute 'Field' VERSION: Version 2.11.2-stable+timestamp.2015.05.30.16.33.24 SYSTEM: Ubuntu Server 12.04 DATABASE: PostgreSQL 9.3 It's a bug? Anyone has the same problem? I'm doing something wrong? (It's not the first time that i make updates) Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] web2py menu dies?
Sometimes my menu just stops working and users can't click the links. It's specific to one page that uses a modal and bootstrap. Is there any known reasons of why this might be happening and what could I check to troubleshoot? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: using anyserver.py in production
Someday, I'll try ansible. Spelling correction to the rescue. On Sunday, June 7, 2015 at 7:51:06 PM UTC-7, Lewis wrote: Thanks for all this. So, the world seems to back UWSGI as the preferrred solution. I'll get over it. I see that you are saying that once when one does need performance tuning with multiple workers, uwsgi is both more performant and more tunable. I think having a fabric deploy script will solve my problems. Someday I'll try unusable. Enough for now. -- 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: Virtual fields disapeared from select() results (v2.11.2)
ok, the fix is here https://github.com/web2py/pydal/pull/211 Paolo On Tuesday, June 9, 2015 at 10:44:59 AM UTC+2, tim.n...@conted.ox.ac.uk wrote: Lovely! I was just about to post this problem. On Tuesday, 9 June 2015 07:56:35 UTC+1, Paolo Valleri wrote: I see the problem now, thanks for pointing it out. I'll post a fix later today. Paolo 2015-06-08 22:11 GMT+02:00 Donatas Burba d.b...@gmail.com: This is failing example: db=DAL('sqlite:memory') db.define_table('tt', Field('vv', 'integer'), Field.Virtual('x', lambda row: row.tt.vv * 10)) db.define_table('tt2', Field('ttref', 'reference tt'), Field('vv2', 'integer')) tt1 = db.tt.insert(vv='1') tt2 = db.tt.insert(vv='3') db.tt2.insert(ttref=tt1, vv2='3') db.tt2.insert(ttref=tt2, vv2='4') records = db(db.tt).select( db.tt.ALL, db.tt2.ALL, join=[db.tt2.on(db.tt2.ttref == db.tt.id)] ) for r in records: print r Result: Row {'tt2': {'ttref': 1L, 'id': 1L, 'vv2': 3L}, 'tt': {'id': 1L, 'vv': 1L}} Row {'tt2': {'ttref': 2L, 'id': 2L, 'vv2': 4L}, 'tt': {'id': 2L, 'vv': 3L}} As you can see virtual field 'x' (in table 'tt') is missing. As I understand this occurs when selecting records from more than one table. In my case (with PostgreSQL) every time I use db(...).select(db.table.ALL, TOTAL_ROWS, ...) where TOTAL_ROWS = 'COUNT(*) OVER()'. -- 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/l8V3nAzE4Hs/unsubscribe. To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Bug with Blocks
Hello Jason, There is this issue open : https://github.com/web2py/web2py/issues/772 Though, I am not sure I understand you issue... Richard On Tue, Jun 9, 2015 at 3:07 AM, Jason (spot) Brower encomp...@gmail.com wrote: I think I found a bug with blocks. In my base_layout.html li{{block page_title}}{{end}}/li And this in my view file... {{block page_title}} Dashboard {{end}} This will print the replacement block in the correct location. BUT it will also print it where ever I put it in the html. Am I understanding the purpose of blocks wrong or is this a bug? So if I put the block with the Dashboard in it at the bottom of the page I will get it in the li tags there but also in the bottom of the page. BR, Jason Brower -- 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] web2py menu dies?
Did you check for js error in chrome dev tool? You must have an error somewhere, a missing lib or something... On Tue, Jun 9, 2015 at 1:02 PM, LoveWeb2py atayloru...@gmail.com wrote: Sometimes my menu just stops working and users can't click the links. It's specific to one page that uses a modal and bootstrap. Is there any known reasons of why this might be happening and what could I check to troubleshoot? -- 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: OFF Topic -RiotJS
On Tuesday, June 9, 2015 at 3:21:55 AM UTC-7, Ramos wrote: another one bites the dust. bites the dust is used for something that (or someone who) has been shot down; a final face-plant. Are you saying the link below is a dead tool? http://vuejs.org/guide/index.html the docs are very extensive /dps 2015-06-08 17:38 GMT+01:00 Derek sp1...@gmail.com javascript:: I just hate non-compliant html. I've always been drawn to html compliant templates, like TAL (Template Attribute Language). In any case, I see that it generates html, and it is a lot smaller than the alternatives. I'd be willing to give this a shot. On Monday, June 8, 2015 at 3:02:30 AM UTC-7, Ramos wrote: just to share some noise on the UI for those looking at angular reactjs polymer ractive and so on https://muut.com/riotjs/ any experience or comments ? Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com javascript:. 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] web2py menu dies?
No errors, Richard. I checked in Chrome. It looks like the div's are all okay too. Wasn't sure if anyone else had this problem. A little more insight: I select a record by doing {{myrecords = db(db.table.field==db.anothertable.anotherfield).select(db.table.field.ALL)}} then i check to see {{if len(myrecords) 0:}} {{=BEAUTIFY(myrecords)}} The problem is this is wrapped in from another for loop at the top so I have two for loops in my view. Is this an okay practice? On Tuesday, June 9, 2015 at 1:22:58 PM UTC-4, Richard wrote: Did you check for js error in chrome dev tool? You must have an error somewhere, a missing lib or something... On Tue, Jun 9, 2015 at 1:02 PM, LoveWeb2py atayl...@gmail.com javascript: wrote: Sometimes my menu just stops working and users can't click the links. It's specific to one page that uses a modal and bootstrap. Is there any known reasons of why this might be happening and what could I check to troubleshoot? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com javascript:. 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: How to pass arguments with a form
Where should I write this. Is it in controller or view On Mon, Jun 8, 2015 at 4:53 AM, Anthony abasta...@gmail.com wrote: If you really need the id's in the URL to which the form is submitted, you can specify the form's action attribute: form = FORM(..., _action=URL(..., vars=dict(question_id=question_id, user_id=user_id)) Alternatively, you could include the question id and user id as hidden fields in the form, in which case, they will be available in request.post_vars within the action to which the form is submitted. In that case, the id's would not appear in the URL. Anthony On Sunday, June 7, 2015 at 8:46:33 PM UTC-4, Chaitu P wrote: Hello, This is my web page. Iam showing the questions using loop. If for example student has answered for 1st question I should be able to save answer for that corresponding id.Also I want to save the student id as well. I would appreciate if someone helps. [image: Inline image 1] On Fri, Jun 5, 2015 at 8:33 AM, JorgeH jorgeh...@gmail.com wrote: can you share the code you have at the moment? or at least a screenshot of the webpage you mention.. On Thursday, June 4, 2015 at 11:26:00 PM UTC-5, Chaitu P wrote: I have a situation where I have several questions displayed on a page and below each of the question there will be a form like student name and email. Once the student clicks on the submit button I want to pass the corresponding question id in the URL. I have seen several examples to pass arguments through a hyperlink. But Iam not sure how to do this. Can anyone please please let me know... -- 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. -- Chaitanya Pochampally -- 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. -- Chaitanya Pochampally -- 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] wish to display a leftsidebar menu
I am a newbie. I am trying to build a web interface w/web2py that will have a leftsidebar menu as part of the layout for all views. I know that you can set a global via the controllers return dict. like:return dict(form=grid, left_sidebar_enabled = True)But how do I get the menu there, that is, what do I have to change in layout.html menu.py any associated css files to 'make it so' -- 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] represent for SQLFORM.grid
Hello, The represent works fine for grid view but I need to apply represent function for the add, edit forms. db.product.price.represent = lambda x, row: current.currency.format_price(x) Inside html template I use {{=form}} as well as {{=form.custom.widget.price}} Thank you for the help. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Connecting to postgresql - where do I put schema name in the connection?
I am running postgresql 9.2 Yep you were right I had not set default schema correctly. (face palm) I also discovered the command: db.executesql(set search_path to public;) Thanks for reply On Monday, June 8, 2015 at 8:32:30 PM UTC+10, Niphlod wrote: except from the obvious seems that there is no default schema for your dabatase this error popped up in the past with really old versions of postgresql ... may I ask what version are you running ? -- 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] Consume web2py rest api from native Android App
I have written a rest api with web2py and am trying to consume the api using Volley in my my Android app. I consistently get an error response of Unexpected response code 401. This appears to be an auth issue but I'm not sure exactly what I have to do. Is there a specific auth library to use? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: soap client with windows NTLM authorization
alright, well you are going to have to modify the client.py for pysimplesoap then in order to achieve this. I'd suggest you add a variable to the class like 'USERPWD' and populate it. Take a look at lines 75+. See all those 'setopt' calls? Add in your own for HTTPAUTH and USERPWD ... On Tuesday, June 9, 2015 at 7:27:55 AM UTC-7, Pengfei Yu wrote: Thanks for your reply! I used the proxy because I checked from the source code that proxy is the only place I can pass my username and password to pycurl from SoapClient class. I can connect to this SOAP service directly with pycurl using the code you provided. But I want to create a SoapClient object based on this SOAP service. I still cannot figure it out yet. On Monday, June 8, 2015 at 5:28:08 PM UTC-4, Derek wrote: a simple monkey patch will do you. I would suggest you don't import into the base namespace though. import gluon.contrib.pysimplesoap.client as ssClient then do the monkey... ssClient.Http = set_http_wrapper(library='pycurl') and use it like normal. I don't get why you are trying to use a proxy? import pycurl name='bob' pwd='pwd1' url=https://mywebservice; curl = pycurl.Curl() curl.setopt(pycurl.URL, url) curl.setopt(pycurl.SSL_VERIFYPEER, 0) curl.setopt(pycurl.HTTPAUTH, pycurl.HTTPAUTH_NTLM) curl.setopt(pycurl.USERPWD, {}:{}.format(name, pwd)) curl.perform() curl.close() On Monday, June 8, 2015 at 11:45:44 AM UTC-7, Pengfei Yu wrote: Hi Derek, Thanks for your reply! I saw similar source code as well. But there is no document how to set it up using pysimplesoap. Could you provide an example? I tried to use following, but it cannot work. import sys,time sys.path.append(/home/www-data/web2py) import pprint from gluon.contrib.pysimplesoap.client import * from gluon.contrib.pysimplesoap.transport import * user = 'XXX' password = *** proxy={'proxy_user':user,'proxy_pass':password} Http = set_http_wrapper(library='pycurl') client=SoapClient(wsdl=https://54.153.5.133:53441/ForAGISService?wsdl;, proxy=proxy) Thanks! On Monday, June 8, 2015 at 12:18:38 PM UTC-4, Derek wrote: looks like pycurl is supported by pysimplesoap. That supports NTLM. See line 67. https://code.google.com/p/pysimplesoap/source/browse/pysimplesoap/client.py?r=6ed06397b4f0c1894156ee5d0a1c165f80ed6a68 On Monday, June 8, 2015 at 7:28:39 AM UTC-7, Pengfei Yu wrote: Hi, I am trying to access a web service which requires windows NTLM authorization. I am able to successfully implement it using suds python library with following code: from suds.transport.http import * from suds.transport.https import WindowsHttpAuthenticated from suds.client import * import time sampleID = AA user = 'XXX' password = *** url = https://54.153.5.133:53441/ForAGISService?wsdl; transport = WindowsHttpAuthenticated(username=user, password=password) client = Client(url, transport=transport) print List of methods for this web service: print [method for method in client.wsdl.services[0].ports[0].methods] print \nsample info: print client.service.GetSampleInfoById(sampleID) The NTLM transport is supported by python-ntlm package as mentioned in https://fedorahosted.org/suds/wiki/Documentation#WindowsNTLM. But I prefer to use pysimplesoap as SOAP client in my web2py application. I wonder if there is also an feasible approach to implement it with pysimplesoap + python-ntlm? If someone could provide a code example, that will be perfect. 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] All messed up
Thanks for the pointers. @Massimiliano, the suggestion is a good one but I found my pg_hba.conf file was OK. I finally got this working by rebooting the machine, so I'm closing the issue. -- 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] web2py menu dies?
Paste the whole code here if you can, because it is really hard to see the relation between your issue with menu and the psedo code you show above... On Tue, Jun 9, 2015 at 3:07 PM, LoveWeb2py atayloru...@gmail.com wrote: No errors, Richard. I checked in Chrome. It looks like the div's are all okay too. Wasn't sure if anyone else had this problem. A little more insight: I select a record by doing {{myrecords = db(db.table.field==db.anothertable.anotherfield).select(db.table.field.ALL)}} then i check to see {{if len(myrecords) 0:}} {{=BEAUTIFY(myrecords)}} The problem is this is wrapped in from another for loop at the top so I have two for loops in my view. Is this an okay practice? On Tuesday, June 9, 2015 at 1:22:58 PM UTC-4, Richard wrote: Did you check for js error in chrome dev tool? You must have an error somewhere, a missing lib or something... On Tue, Jun 9, 2015 at 1:02 PM, LoveWeb2py atayl...@gmail.com wrote: Sometimes my menu just stops working and users can't click the links. It's specific to one page that uses a modal and bootstrap. Is there any known reasons of why this might be happening and what could I check to troubleshoot? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Importing a csv I get type 'exceptions.NameError'(name 'step' is not defined)?
I'm getting this same error and cannot figure it out. Any help would be much appreciated. On Wednesday, July 16, 2014 at 4:12:28 PM UTC-6, Jakob Hartman wrote: type 'exceptions.NameError' name 'step' is not definedVersionweb2py™Version 2.9.5-stable+timestamp.2014.03.16.02.35.39PythonPython 2.7.8: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python (prefix: /Library/Frameworks/Python.framework/Versions/2.7)Traceback 1. 2. 3. 4. 5. 6. 7. Traceback (most recent call last): File /Users/Jakob/Desktop/web2py/gluon/restricted.py, line 220, in restricted exec ccode in environment File /Users/Jakob/Desktop/web2py/applications/mqr/views/appadmin.html http://127.0.0.1:8000/admin/default/edit/mqr/views/appadmin.html, line 183, in module h4{{=T(DISK)}}/h4 NameError: name 'step' is not defined Error snapshot [image: help] http://127.0.0.1:8000/admin/default/ticket/mqr/127.0.0.1.2014-07-16.16-09-03.414e51c6-b160-4650-8732-ec72a76ef962# type 'exceptions.NameError'(name 'step' is not defined) inspect attributes Frames - *File /Users/Jakob/Desktop/web2py/gluon/restricted.py in restricted at line 220* code arguments variables - *File /Users/Jakob/Desktop/web2py/applications/mqr/views/appadmin.html in module at line 183* code arguments variables Function argument list () Code listing 174. 175. 176. 177. 178. 179. 180. 181. 182. 183. 184. 185. 186. 187. 188. 189. 190. 191. 192. 193. response.write(T('update is an optional expression like field1=\'newvalue\'. You cannot update or delete the results of a JOIN')) response.write('/p\nbr/br/\nh4', escape=False) response.write(T(%s selected, nrows)) response.write('/h4\n', escape=False) if start0: response.write(A(T('previous %s rows') % step,_href=URL('select',args=request.args[0],vars=dict(start=start-step)),_class=btn)) pass response.write('\n', escape=False) if stopnrows: response.write(A(T('next %s rows') % step,_href=URL('select',args=request.args[0],vars=dict(start=start+step)),_class=btn)) pass response.write('\n', escape=False) if rows: response.write('\n div style=overflow: auto; width=80%\n ', escape=False) linkto = lambda f, t, r: URL('update', args=[request.args[0], r, f]) if f else # response.write('\n ', escape=False) upload=URL('download',args=request.args[0]) response.write('\n ', escape=False) response.write(SQLTABLE(rows,linkto,upload,orderby=True,_class='sortable')) response.write('\n /div\n', escape=False) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: OFF Topic -RiotJS
No, of course not. On the contrary, i know hate angularjs after reading about vuejs. I wish i knew it before 2015-06-09 19:58 GMT+01:00 Dave S snidely@gmail.com: On Tuesday, June 9, 2015 at 3:21:55 AM UTC-7, Ramos wrote: another one bites the dust. bites the dust is used for something that (or someone who) has been shot down; a final face-plant. Are you saying the link below is a dead tool? http://vuejs.org/guide/index.html the docs are very extensive /dps 2015-06-08 17:38 GMT+01:00 Derek sp1...@gmail.com: I just hate non-compliant html. I've always been drawn to html compliant templates, like TAL (Template Attribute Language). In any case, I see that it generates html, and it is a lot smaller than the alternatives. I'd be willing to give this a shot. On Monday, June 8, 2015 at 3:02:30 AM UTC-7, Ramos wrote: just to share some noise on the UI for those looking at angular reactjs polymer ractive and so on https://muut.com/riotjs/ any experience or comments ? Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: How to pass arguments with a form
according to anthony code, it seems to write in controller and then in view just write {{=form}} best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: represent for SQLFORM.grid
The represent attribute doesn't apply to form widgets. For that, you will need to create a custom widget and specify the widget attribute of the Field. Anthony On Tuesday, June 9, 2015 at 4:51:59 PM UTC-4, i...@softmanufacture.com wrote: Hello, The represent works fine for grid view but I need to apply represent function for the add, edit forms. db.product.price.represent = lambda x, row: current.currency.format_price(x) Inside html template I use {{=form}} as well as {{=form.custom.widget.price}} Thank you for the help. -- 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: How to pass arguments with a form
On Tuesday, June 9, 2015 at 4:51:59 PM UTC-4, Chaitu P wrote: Where should I write this. Is it in controller or view It depends on where you define the form. If you create the form using the FORM or SQLFORM helpers in the controller, then that's where you do it. If you create the form using custom HTML in the view, then that's where you do it. 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.
Re: [web2py] Absolute URLs
Ok, as you wish... Put this in model file: default_URL = URL URL = new code here Marin On Tue, Jun 9, 2015 at 1:30 PM, Francisco Tomé Costa m...@franciscocosta.com wrote: but that way I would have to rewrite all my apps code, can't I change the default variables in models? I would like to have host=True by default Francisco Tomé Costa +351 918412636 +351918412636 https://www.linkedin.com/in/franciscocosta On Tue, Jun 9, 2015 at 12:26 PM, Marin Pranjić marin.pran...@gmail.com wrote: You don't need to force it. Use functools.partial to make your own URL helper instead. Marin On Tue, Jun 9, 2015 at 12:21 PM, Francisco Costa m...@franciscocosta.com wrote: How to force web2py to make all URL's absolute instead of having to write URL(..., scheme=True, host=True) in every link? -- 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/OuIouXnxTOQ/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.
[web2py][OT] time for kickstarter
Have you seen this : https://www.kickstarter.com/projects/nickjj/build-a-saas-app-with-flask-and-deploy-it-with-doc?ref=category web2py has almost everything out of the box... :) Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: Sublime Text web2py plugin
Hi Ramos, I fixed an issue in the Add REPL support command I pushed the changes so w2p plugin should be updated automagicly via PackageControl. If you still have issues please let me know Regards Greg 2015. június 9., kedd 17:38:25 UTC+2 időpontban Ramos a következőt írta: I cant install web2py sublimeRepl via W2p:Add sublimeREPL support Just see on status bar Loading Repositories and nothing more then i search for it and i get this only [image: Imagem inline 1] Any help ? i´m on windows 7 2015-05-21 17:21 GMT+01:00 António Ramos ramst...@gmail.com javascript: : XDebug looks nice but is for php only ? 2015-05-20 20:05 GMT+01:00 Ron Chatterjee achatte...@gmail.com javascript:: Few good links for sublime I thought I can share within the community if anyone is interested. The django sublime interface walks you through the entire sublime setup. I am sure, web2py will be same. That said, I couldn't have the ipython and terminal working like anaconda. Or may be this is the best sublime can do. plugins available for debugging; for example: http://www.sitepoint.com/debugging-xdebug-sublime-text-3/ Plugins for Python development: https://packagecontrol.io/packages/IPython%20Notebook https://nipunbatra.wordpress.com/2014/01/30/plugins-for-python-development-in-sublime-text/ Navigating projects: http://www.joshuawinn.com/understanding-projects-in-sublime-text-saving-switching-etc/ Package management: https://packagecontrol.io/installation Django interface: http://www.marinamele.com/2014/03/install-and-configure-sublime-text-3.html On Wednesday, May 20, 2015 at 3:16:42 AM UTC-4, Gergely Orosz wrote: Hi Ron, To be honest I am still learning the advanced features of Sublime, Python and Web2py :) I am not familiar with ipython package unfortunately. I am using SublimeREPL package to open interactive shell in Sublime. You can open as many interactive shell as many you want. Sublime open a new tab for the shell and you can evaluate commands there. What do you mean by integrating project with ipython. Web2py has an option to start ipython shell I think if installed that is the default shell. Hope I could help. If you have any question drop me a mail Regards Greg Ron Chatterjee achatte...@gmail.com ezt írta (időpont: 2015. máj. 20., Sze, 1:43): This is great. I just started looking at sublime text. This is not a web2py question but since you are so familiar with sublime Gergely, let me ask the question anyway...in sublime, all I see a python terminal. I don't see a command prompt or ipython terminal. I have installed the ipython from install packages. How do I add more terminal into sublime? Also, integrating Ipython with the project so all the variable shows up in the workspace. Any thoughts? On Tuesday, May 19, 2015 at 5:00:58 AM UTC-4, Gergely Orosz wrote: Hi Ramos, It some bug in SublimeREPL it is not related the W2P plugin. I was away on holiday and the development slowed down a bit but I am going to make a tutorial video how to use the plugin Also started implementing the open controller from view command 2015. május 7., csütörtök 15:15:09 UTC+2 időpontban Ramos a következőt írta: if i open console i see this before installing SublimeREPL warning: mnemonic r not found in menu caption SublimeREPL warning: mnemonic r not found in menu caption Ruby warning: mnemonic p not found in menu caption Python warning: mnemonic d not found in menu caption Python - PDB current file warning: mnemonic d not found in menu caption Python - RUN current file warning: mnemonic p not found in menu caption Python - IPython warning: mnemonic f not found in menu caption F# warning: mnemonic d not found in menu caption GDB warning: mnemonic g not found in menu caption Groovy warning: mnemonic h not found in menu caption Haskell warning: mnemonic i not found in menu caption Io warning: mnemonic l not found in menu caption Lua warning: mnemonic m not found in menu caption Matlab warning: mnemonic m not found in menu caption MozRepl warning: mnemonic n not found in menu caption Node warning: mnemonic o not found in menu caption Octave warning: mnemonic p not found in menu caption Perl warning: mnemonic s not found in menu caption PHP warning: mnemonic p not found in menu caption PowerShell warning: mnemonic r not found in menu caption R warning: mnemonic n not found in menu caption Racket warning: mnemonic r not found in menu caption Rails warning: mnemonic b not found in menu caption SBT for opened folder warning: mnemonic r not found in menu caption Scheme warning: mnemonic r not found in menu caption Gauche warning: mnemonic r not found in menu caption Petite Chez Scheme warning: mnemonic scs not found in menu caption ScriptCS warning: mnemonic s not found in menu caption Shell Opening in new tab Stoping web2py server with pid: 6192 Opening in new tab Then clicking
Re: [web2py] Bug with Blocks
confused with the post, it will have to be at a different day. :) I solved my issue by putting the block with the new content before the extend on the page. Weird as it is, when you do that it won't print the content in the place it was but only in the block locations defined. I suppose that was the intended result, am I right? BR, Jason Brower On Tue, Jun 9, 2015 at 9:56 PM Richard Vézina ml.richard.vez...@gmail.com wrote: Hello Jason, There is this issue open : https://github.com/web2py/web2py/issues/772 Though, I am not sure I understand you issue... Richard On Tue, Jun 9, 2015 at 3:07 AM, Jason (spot) Brower encomp...@gmail.com wrote: I think I found a bug with blocks. In my base_layout.html li{{block page_title}}{{end}}/li And this in my view file... {{block page_title}} Dashboard {{end}} This will print the replacement block in the correct location. BUT it will also print it where ever I put it in the html. Am I understanding the purpose of blocks wrong or is this a bug? So if I put the block with the Dashboard in it at the bottom of the page I will get it in the li tags there but also in the bottom of the page. BR, Jason Brower -- 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] Absolute URLs
I was looking for a classy way to change the default, didn't want to rewrite the URL() function Francisco Tomé Costa +351 918412636 +351918412636 https://www.linkedin.com/in/franciscocosta On Tue, Jun 9, 2015 at 1:14 PM, Marin Pranjić marin.pran...@gmail.com wrote: Ok, as you wish... Put this in model file: default_URL = URL URL = new code here Marin On Tue, Jun 9, 2015 at 1:30 PM, Francisco Tomé Costa m...@franciscocosta.com wrote: but that way I would have to rewrite all my apps code, can't I change the default variables in models? I would like to have host=True by default Francisco Tomé Costa +351 918412636 +351918412636 https://www.linkedin.com/in/franciscocosta On Tue, Jun 9, 2015 at 12:26 PM, Marin Pranjić marin.pran...@gmail.com wrote: You don't need to force it. Use functools.partial to make your own URL helper instead. Marin On Tue, Jun 9, 2015 at 12:21 PM, Francisco Costa m...@franciscocosta.com wrote: How to force web2py to make all URL's absolute instead of having to write URL(..., scheme=True, host=True) in every link? -- 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/OuIouXnxTOQ/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 a topic in the Google Groups web2py-users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/OuIouXnxTOQ/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.
Re: [web2py] Re: OFF Topic -RiotJS
vue.js look like a stripped version of ractive.js. The syntax is identical for what it provides. On Tuesday, 9 June 2015 16:36:49 UTC-5, Ramos wrote: No, of course not. On the contrary, i know hate angularjs after reading about vuejs. I wish i knew it before 2015-06-09 19:58 GMT+01:00 Dave S snidely@gmail.com: On Tuesday, June 9, 2015 at 3:21:55 AM UTC-7, Ramos wrote: another one bites the dust. bites the dust is used for something that (or someone who) has been shot down; a final face-plant. Are you saying the link below is a dead tool? http://vuejs.org/guide/index.html the docs are very extensive /dps 2015-06-08 17:38 GMT+01:00 Derek sp1...@gmail.com: I just hate non-compliant html. I've always been drawn to html compliant templates, like TAL (Template Attribute Language). In any case, I see that it generates html, and it is a lot smaller than the alternatives. I'd be willing to give this a shot. On Monday, June 8, 2015 at 3:02:30 AM UTC-7, Ramos wrote: just to share some noise on the UI for those looking at angular reactjs polymer ractive and so on https://muut.com/riotjs/ any experience or comments ? Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: example of model w/ model graph, multi-tenancy, record versioning (incl auth tables), and record uid
Regarding the appending of common fields, seems to work for me when its declared at the beginning of the model file, not end. Does the placement matter, can anyone confirm/deny? On Sunday, March 24, 2013 at 5:18:39 AM UTC+8, Peter Etchells wrote: #this at end of model #example of extra fields for all other tables except auth tables, which have already been defined above. this implements record versioning for f in extra_fields: db._common_fields.append(f) -- 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: Importing a csv I get type 'exceptions.NameError'(name 'step' is not defined)?
Trying to go back to that point in time I think it has to do with something in the database that does not agree with how things are that is all that I can recall o wonder if you can go back to previous conversations had Sent from my iPhone On Jun 9, 2015, at 5:46 PM, Evan Caldwell dawg...@gmail.com wrote: I'm getting this same error and cannot figure it out. Any help would be much appreciated. On Wednesday, July 16, 2014 at 4:12:28 PM UTC-6, Jakob Hartman wrote: type 'exceptions.NameError' name 'step' is not defined Version web2py™ Version 2.9.5-stable+timestamp.2014.03.16.02.35.39 Python Python 2.7.8: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python (prefix: /Library/Frameworks/Python.framework/Versions/2.7) Traceback 1. 2. 3. 4. 5. 6. 7. Traceback (most recent call last): File /Users/Jakob/Desktop/web2py/gluon/restricted.py, line 220, in restricted exec ccode in environment File /Users/Jakob/Desktop/web2py/applications/mqr/views/appadmin.html, line 183, in module h4{{=T(DISK)}}/h4 NameError: name 'step' is not defined Error snapshot type 'exceptions.NameError'(name 'step' is not defined) inspect attributes Frames File /Users/Jakob/Desktop/web2py/gluon/restricted.py in restricted at line 220 code arguments variables File /Users/Jakob/Desktop/web2py/applications/mqr/views/appadmin.html in module at line 183 code arguments variables Function argument list () Code listing 174. 175. 176. 177. 178. 179. 180. 181. 182. 183. 184. 185. 186. 187. 188. 189. 190. 191. 192. 193. response.write(T('update is an optional expression like field1=\'newvalue\'. You cannot update or delete the results of a JOIN')) response.write('/p\nbr/br/\nh4', escape=False) response.write(T(%s selected, nrows)) response.write('/h4\n', escape=False) if start0: response.write(A(T('previous %s rows') % step,_href=URL('select',args=request.args[0],vars=dict(start=start-step)),_class=btn)) pass response.write('\n', escape=False) if stopnrows: response.write(A(T('next %s rows') % step,_href=URL('select',args=request.args[0],vars=dict(start=start+step)),_class=btn)) pass response.write('\n', escape=False) if rows: response.write('\n div style=overflow: auto; width=80%\n ', escape=False) linkto = lambda f, t, r: URL('update', args=[request.args[0], r, f]) if f else # response.write('\n ', escape=False) upload=URL('download',args=request.args[0]) response.write('\n ', escape=False) response.write(SQLTABLE(rows,linkto,upload,orderby=True,_class='sortable')) response.write('\n /div\n', escape=False) -- 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/YEKheLLD84A/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.