Re: [web2py] Re: Login to web2py from external script

2015-01-14 Thread Niphlod
On Wednesday, January 14, 2015 at 1:27:59 AM UTC+1, Richard Penman wrote: > > > http is stateless > > do you mean because the decoding is handled at the server layer before > reaches web2py? > > I mean that web2py doesn't store anywhere how to send the data in. As long as it's valid, it's par

[web2py] routes.py and current.T

2015-01-14 Thread al ex
Is it possible to use current.T in routes.py, to recognize an incoming request based on current.T.current_language and reroute it to the correct controller / function? Can you give me an example using pattern-based routing? -- Resources: - http://web2py.com - http://web2py.com/book (Documentatio

[web2py] Re: Please remove/update comments in the web2py.com main page

2015-01-14 Thread Massimo Di Pierro
@everybody. Please twit something new about #web2py and we'll link them. On Tuesday, 13 January 2015 10:16:07 UTC-6, Ramos wrote: > > These comments have bad links or too old to be taken into consideration > in my opinion. > > They should be updated by newer... > > > > *Please use www.web2py.com

[web2py] Re: routes.py and current.T

2015-01-14 Thread Massimo Di Pierro
no because the language is not determined until the end of the routing. On Wednesday, 14 January 2015 04:58:01 UTC-6, alex wrote: > > Is it possible to use current.T in routes.py, to recognize an incoming > request based on current.T.current_language and reroute it to the correct > controller /

[web2py] Don't use 64 bit ODBC with Web2Py and SQL Server

2015-01-14 Thread Pbop
Spent days trying to track down an error with a Web2Py app and SQL Server 2008 R2 running 64 bit ODBC drivers. Switched to 32 bit drivers and problem solved. The problem is not in Web2Py but in the actual PyOdbc driver. -- Resources: - http://web2py.com - http://web2py.com/book (Documentati

[web2py] Gig: web2py nut needed for remote scheduling/membership site

2015-01-14 Thread TC Backoffice
web2py dev needed for membership/scheduling software development contractor position. Pretty straight up line of business app with schedules, invoices, lots of pretty average reports and a gorgeous UI (not designed by you, unless you dig that kind of thing) - App will be reactive, using web2

[web2py] How can I have optional, or vairable buttons in a sqlform.smartgrid 'links' ?

2015-01-14 Thread Gary Cowell
I have a smartgrid, thus: grid = SQLFORM.smartgrid(db.exsystem,linked_tables=['exsystem', 'disks'], user_signature=False, deletable=False, links = [ lambda row: A( SPAN(_class='icon

[web2py] What is the correct parser to use for web2py template HTML files in Eclipse?

2015-01-14 Thread Carl Hunter Roach
Eclipse's standard HTML parser kicks our errors and warnings when validating Web2py HTML template files. e.g., appadmin.html line 66 {{if stop" delimiter. But this is {{embedded}} Python Any tips on what validator to use for such a file that will a) not produce a slew of warnings and the odd

[web2py] Error in Eclipse kepler for Web2py source: generics.xml

2015-01-14 Thread Carl Hunter Roach
In today's Web2py source I get a "" for the contents of applications/x/views/generic.xml with the default content: {{from gluon.serializers import xml}}{{=XML(xml(response._vars,quote=False))}} The error is: Content is not allowed in prolog This error doesn't prevent the application from workin

[web2py] Re: Uforum - a forum web2py application

2015-01-14 Thread Дмитрий Сережин
Thanks for your great work! :-) вторник, 6 мая 2014 г., 19:57:47 UTC+4 пользователь Stefan van den Eertwegh написал: > > Dear users, > > I have created a web2py forum software, now currently only in the Dutch > but wil be ported to english. > The current features are: > - Categories and forums

[web2py] ask for page using authentication

2015-01-14 Thread Manuele Pesenti
Hi! I need to ask for a page of my application from a simple python script using requests (or urllib2 or whatelse) but the requested page requires authentication. I tryed something like the following code but I always get the authentication page instead of my page. r = requests.get('http://localho

[web2py] Re: ask for page using authentication

2015-01-14 Thread Massimo Di Pierro
In models auth.settings.allow_basic_login = True On Wednesday, 14 January 2015 10:46:38 UTC-6, Manuele wrote: > > Hi! > I need to ask for a page of my application from a simple python script > using requests (or urllib2 or whatelse) but the requested page requires > authentication. > I trye

Re: [web2py] Re: Please remove/update comments in the web2py.com main page

2015-01-14 Thread António Ramos
i dont have time to twit! 2015-01-14 16:41 GMT+00:00 Massimo Di Pierro : > @everybody. Please twit something new about #web2py and we'll link them. > > > On Tuesday, 13 January 2015 10:16:07 UTC-6, Ramos wrote: >> >> These comments have bad links or too old to be taken into consideration >> in m

Re: [web2py] Re: ask for page using authentication

2015-01-14 Thread Manuele Pesenti
Il 14/01/15 17:52, Massimo Di Pierro ha scritto: > In models > > auth.settings.allow_basic_login = True great! Thank you Massimo :) M. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py

[web2py] Re: Don't use 64 bit ODBC with Web2Py and SQL Server

2015-01-14 Thread Derek
So have you tried to use pypyodbc? If that doesn't work, you could use pytds and bypass odbc altogether. On Tuesday, January 13, 2015 at 5:06:37 PM UTC-7, Pbop wrote: > > Spent days trying to track down an error with a Web2Py app and SQL Server > 2008 R2 running 64 bit ODBC drivers. > > Switche

[web2py] Error : Exporting CSV file in SQLGRID

2015-01-14 Thread Prasad Muley
http://www.quora.com/Anthony-BastardiHi All, I've used a SQLFORM.grid for displaying table content. I've provided export to CSV option in grid. My app settings are as below: *models/db.py* db.define_table('company', Field('name', 'string', length=128, notnull=True, uniq

[web2py] Re: routes.py and current.T

2015-01-14 Thread Derek
So it looks like you'd need to implement this closer to the webserver than web2py. it is available in a header, Accept-Language. You could build a middleware and run web2py as a WSGI app. On Wednesday, January 14, 2015 at 3:58:01 AM UTC-7, alex wrote: > > Is it possible to use current.T in route

[web2py] Error: Exporting CSV file in SQLFORM.grid

2015-01-14 Thread Prasad Muley
Hello All, I've used a SQLFORM.grid for displaying table content. I've provided export to CSV option in grid. My app settings are as below: *models/db.py* db.define_table('company', Field('name', 'string', length=128, notnull=True, unique=True), Field('a

[web2py] Re: What is the correct parser to use for web2py template HTML files in Eclipse?

2015-01-14 Thread Derek
No, web2py templates do not have to be valid html. If we used TAL then that would be different, but we don't. On Tuesday, January 13, 2015 at 2:45:45 AM UTC-7, Carl Hunter Roach wrote: > > Eclipse's standard HTML parser kicks our errors and warnings when > validating Web2py HTML template files.

[web2py] Re: routes.py and current.T

2015-01-14 Thread Anthony
You can also just do it in a model file -- you can change request.controller and request.function before the controller is called. Anthony On Wednesday, January 14, 2015 at 12:29:31 PM UTC-5, Derek wrote: > > So it looks like you'd need to implement this closer to the webserver than > web2py. i

[web2py] Re: Don't use 64 bit ODBC with Web2Py and SQL Server

2015-01-14 Thread Niphlod
first and foremost, web2py doesn't need an odbc source defined at system level. That being said, it "can", but if you're running the source with a 32-bit python or the executable (32-bit too) it's pretty obvious that a 64-bit defined odbc source won't be available... On Wednesday, January 14,

[web2py] Re: How can I have optional, or vairable buttons in a sqlform.smartgrid 'links' ?

2015-01-14 Thread Niphlod
easy-peasy... given "myfunc(row)" something that returns True only if the button needs to be generated. lambda row: myfunc(row) and themarkup_to_generate_the_button or '' -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source co

[web2py] Re: Error in Eclipse kepler for Web2py source: generics.xml

2015-01-14 Thread Niphlod
if you have set up eclipse to be foolish you can't follow the warnings it outputs. It's treating "generic.xml" as something with valid XML markup inside, while web2py's generic.xml is filled with templating functions that are NOT static xml. On Tuesday, January 13, 2015 at 10:38:00 AM UTC+1, C

[web2py] Re: Don't use 64 bit ODBC with Web2Py and SQL Server

2015-01-14 Thread Omi Chiba
Right, I'm using Windows 2012 64bit and MSSQL 2012 on cloud. Tried python 64 bit with pyodbc first then go back 32 bit. It works fine. On Tuesday, January 13, 2015 at 6:06:37 PM UTC-6, Pbop wrote: > > Spent days trying to track down an error with a Web2Py app and SQL Server > 2008 R2 running 64

[web2py] lazy question: does anyone have a simple backbone.js/web2py example or tutorial?

2015-01-14 Thread Tim Richardson
I'd like to use more javascript in my form & grid apps, to get more use of ajax. This won't work unless I can get equivalent to SQLFORM.grid, which is great for someone as lazy as me. It seems from my research that backbone.js may be what I want. (It also seems that I am at least four years lat

[web2py] Re: lazy question: does anyone have a simple backbone.js/web2py example or tutorial?

2015-01-14 Thread Derek
I suppose you haven't seen 'DataTables.net' ? On Wednesday, January 14, 2015 at 2:06:54 PM UTC-7, Tim Richardson wrote: > > I'd like to use more javascript in my form & grid apps, to get more use of > ajax. This won't work unless I can get equivalent to SQLFORM.grid, which is > great for someone

[web2py] Re: lazy question: does anyone have a simple backbone.js/web2py example or tutorial?

2015-01-14 Thread Tim Richardson
On Thursday, 15 January 2015 11:19:04 UTC+11, Derek wrote: > > I suppose you haven't seen 'DataTables.net' ? > > >> I looked at it a while ago. It looks very nice, but it's only partially open source (the edit plugin is not) -- Resources: - http://web2py.com - http://web2py.com/book (Document

[web2py] Re: What is the correct parser to use for web2py template HTML files in Eclipse?

2015-01-14 Thread Nico de Groot
I tried to use Eclipse (with Pydev) for Web2py. Fixing the mismatch seemed too difficult. I switched to Pycharm. Web2py support is not perfect, and does take some getting used to. Support for all kinds of files like Plantuml, JSON, etc. Developers version not free but worth it. Nico de Groot -

[web2py] Re: Exporting from a SQLFORM.grid with customized search queries

2015-01-14 Thread Prasad Muley
Hi Dexter, I am facing the same issue. I've posted a question here It is throwing an exception because of following the line * dbset = dbset(SQLFORM.build_query(* *sfields, request.vars.get('k