[web2py] Re: Sharing source code of my application developed in web2py

2015-06-08 Thread Niphlod
if you just pack you'll send the source code. alternatively, just zip the applications/yourapp directory On Monday, June 8, 2015 at 8:45:24 PM UTC+2, Meenoo wrote: I am new to web2py and am creating an application for my school project using web2py. I need to submit the source code of the

[web2py] Re: My son made a new web2py logo

2015-06-08 Thread Joe Barnhart
+1000 On Friday, June 5, 2015 at 2:24:32 AM UTC-7, weheh wrote: Commendable effort! But I second the folks who don't want any logo or name changes for the time being. Thanks. On Monday, June 1, 2015 at 11:06:16 AM UTC-7, Massimo Di Pierro wrote: Time to revamp the web site? --

Re: [web2py] Re: My son made a new web2py logo

2015-06-08 Thread Anthony
On Monday, June 8, 2015 at 2:10:56 PM UTC-4, Joe Barnhart wrote: Just on a cursory look, it seems that weppy is about a 99% fork of web2py. My only heartburn is that Giovanni doesn't mention web2py or the work done by others even once in his website, http://weppy.org. That's a huge no-no

Re: [web2py] Re: My son made a new web2py logo

2015-06-08 Thread Joe Barnhart
Just on a cursory look, it seems that weppy is about a 99% fork of web2py. My only heartburn is that Giovanni doesn't mention web2py or the work done by others even once in his website, http://weppy.org. That's a huge no-no on this side of the pond. You ALWAYS recognize those whose

[web2py] Re: soap client with windows NTLM authorization

2015-06-08 Thread Pengfei Yu
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

[web2py] Sharing source code of my application developed in web2py

2015-06-08 Thread Meenoo
I am new to web2py and am creating an application for my school project using web2py. I need to submit the source code of the application too. Can someone tell me how do I do that ? Compile and Pack Compile allows me to share/deploy the application without the source code. Is there any other

[web2py] Re: Mac Application Binaries

2015-06-08 Thread Dave S
On Sunday, June 7, 2015 at 9:13:22 PM UTC-7, jjs0sbw wrote: I have followed the instructions in the book that detail how to distribute applications as binaries. ( http://web2py.com/books/default/chapter/29/14#How-to-distribute-your-applications-as-binaries ) On my mac when I open the

[web2py] Re: Fixing cursor issues in Web2Py on Google AppEngine?

2015-06-08 Thread Dave S
On Sunday, June 7, 2015 at 5:46:33 PM UTC-7, Michael Jackson wrote: This issue was fixed by updating to Web2Py v2.11.2 I'm glad to hear that! Thanks for closing the loop. /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

Re: [web2py] Re: Python framework benchmarks

2015-06-08 Thread Alfonso de la Guarda
Massimo, As Derek shows we can change anything and rerun the tests Saludos, Alfonso de la Guarda Twitter: @alfonsodg Redes sociales: alfonsodg Telef. 991935157 1024D/B23B24A4 5469 ED92 75A3 BBDB FD6B 58A5 54A1 851D B23B 24A4 On Mon, Jun 8, 2015 at 5:41 PM,

[web2py] Re: Python framework benchmarks

2015-06-08 Thread Derek
https://github.com/TechEmpower/FrameworkBenchmarks/tree/master/frameworks/Python/web2py It's open source, easy to see, perhaps we can create pull requests for our changes... On Monday, June 8, 2015 at 3:32:27 PM UTC-7, Niphlod wrote: it's the usual weirdo-test. I bet all has been done with

Re: [web2py] Re: Python framework benchmarks

2015-06-08 Thread Derek
I created two pull requests, so it should be a bit faster now. I see it's also storing sessions in the database and logs, no need for that... On Monday, June 8, 2015 at 3:44:04 PM UTC-7, Alfonso de la Guarda Reyes wrote: Massimo, As Derek shows we can change anything and rerun the tests

Re: [web2py] Re: Python framework benchmarks

2015-06-08 Thread Massimo Di Pierro
Where is the code you run? Did you session.forget() in web2py or did you create a session at every request? Also, did you disable migrations? Remember web2py defaults to everything on, Flask instead, for example, defaults to everything off. On Monday, 8 June 2015 17:30:30 UTC-5, Alfonso de la

Re: [web2py] Re: Python framework benchmarks

2015-06-08 Thread Niphlod
there's the usual ton on optimizations to be made. BTW: if sessions aren't needed at all, the statement to use is session.forget(response) On Tuesday, June 9, 2015 at 12:55:52 AM UTC+2, Derek wrote: I created two pull requests, so it should be a bit faster now. I see it's also storing

[web2py] Re: SMARTGRID and linked_tables - no buttons to edit, delete - only view

2015-06-08 Thread Beat Kohler
Thanks Anthony ... yes - authorization topic... how easy .. Best regards Beat Am Samstag, 6. Juni 2015 05:27:17 UTC+2 schrieb Massimo Di Pierro: and the latter option is very unsafe. On Friday, 5 June 2015 09:32:13 UTC-5, Anthony wrote: You either have to be logged in or set

[web2py] Want to access multiple sqlite3 databases in the same app

2015-06-08 Thread jackson . read
I am a newbie. I want to have multiple sqlite3 databases accessible in my application. The db variable confuses me ...in the context of a controller it seems to have a value assigned to it upon entry...Is this just the last value assigned in db.py(model file). If I create multiple databases in

[web2py] Re: Python framework benchmarks

2015-06-08 Thread Niphlod
it's the usual weirdo-test. I bet all has been done with web2py defaults, which means migrations, sessions on disk, etc etc etc ?! BTW there's no news in knowing that a minimal-something performs better than a batteries-included one, let alone the I was built specifically towards something.

Re: [web2py] Re: Python framework benchmarks

2015-06-08 Thread Derek
It's very difficult to compare the performances using that json file you posted. Is there another way to review the data? On Monday, June 8, 2015 at 3:30:30 PM UTC-7, Alfonso de la Guarda Reyes wrote: Hi, The idea was not to compare web2py itself, as I said I use it in the frontend but I

[web2py] Re: Auth callback settings for reset_password and request_reset_password

2015-06-08 Thread James McGlynn
Thank you for the quick action (I can't believe I found a bug!), One more question: Will reset_password also use reset_password_onaccept and reset_password_onvalidation? On Sunday, June 7, 2015 at 10:29:05 PM UTC-4, Massimo Di Pierro wrote: It is a bug. I just fixed it in trunk. Now

[web2py] using PyCharm

2015-06-08 Thread Alex
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

Re: [web2py] Re: Python framework benchmarks

2015-06-08 Thread Alfonso de la Guarda
Hi, Right now i am using pandas to format the data in a short time i will post an ipython file Saludos, Alfonso de la Guarda Twitter: @alfonsodg Redes sociales: alfonsodg Telef. 991935157 1024D/B23B24A4 5469 ED92 75A3 BBDB FD6B 58A5 54A1 851D B23B 24A4 On

[web2py] Re: Python framework benchmarks

2015-06-08 Thread Derek
well, that's not a fair bet, falcon will compile itself with cython if it's available. On Monday, June 8, 2015 at 3:05:05 PM UTC-7, Alfonso de la Guarda Reyes wrote: Hello, As I'm finishing a project that requires processing information very quickly (machine learning) and lately i am

[web2py] Re: Locking app to a single domain

2015-06-08 Thread Massimo Di Pierro
I do not know about the router but you can with the pattern based routes.py using the regex notation: routes_in = ( (https?://www.domain1.com:\w+ /app2$anything', '/app1$anything'), (https?://www.domain2.com:\w+ /app1$anything', '/app2$anything'), ) On Monday, 8 June 2015 10:56:51 UTC-5,

[web2py] Re: Virtual fields disapeared from select() results (v2.11.2)

2015-06-08 Thread Donatas Burba
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 =

[web2py] Re: soap client with windows NTLM authorization

2015-06-08 Thread Derek
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

[web2py] Python framework benchmarks

2015-06-08 Thread Alfonso de la Guarda
Hello, As I'm finishing a project that requires processing information very quickly (machine learning) and lately i am using #web2py for almost everything, I found the dilemma of dividing it into a solution that implements a REST-based backend and frontend based on web2py, the case was whether

Re: [web2py] Re: Python framework benchmarks

2015-06-08 Thread Alfonso de la Guarda
Hi, The idea was not to compare web2py itself, as I said I use it in the frontend but I found it interesting how they will review other frameworks, but also lead to reflection on how to increase the performance (requests per second) for web2py Saludos, Alfonso

[web2py] Re: Want to access multiple sqlite3 databases in the same app

2015-06-08 Thread Niphlod
db1 = DAL('sqlite://number_one.db') db2 = DAL('sqlite://number_two.db') db3 = DAL('sqlite://number_three.db') all done! On Tuesday, June 9, 2015 at 12:31:22 AM UTC+2, jackso...@quantachrome.com wrote: I am a newbie. I want to have multiple sqlite3 databases accessible in my application.

Re: [web2py] Re: Mac Application Binaries

2015-06-08 Thread joseph simpson
Dave: Thanks for the reply and input about the process. I have deleted the admin, examples and welcome directories. Further, I have hacked the widget.py file, to not ask for a password. Currently, I plan on creating a mac binary distribution that displays only a start and stop button. Not

[web2py] Re: Debugging Web2py applications.

2015-06-08 Thread Derek
http://inventwithpython.com/blog/2012/04/06/stop-using-print-for-debugging-a-5-minute-quickstart-guide-to-pythons-logging-module/ It's not difficult to use logging, and that is the correct answer. On Saturday, June 6, 2015 at 2:15:44 AM UTC-7, Niphlod wrote: I'd go with print vars simply.

Re: [web2py] Re: Resource webservice built on web2py for web2py comunity [BETA]

2015-06-08 Thread Carlos A. Armenta Castro
I don't know if web2pyslices is better than web2pyref and it doesn't care for me. My personal opinion is: We need a decent, powerful and usable website to collect all ours code snippets, examples, recipes, plugins, demo sites, templates (bs2, bs3, etc.) and for to be honest that is our

[web2py] Re: Want to access multiple sqlite3 databases in the same app

2015-06-08 Thread Dave S
On Monday, June 8, 2015 at 3:31:22 PM UTC-7, jackso...@quantachrome.com wrote: I am a newbie. I want to have multiple sqlite3 databases accessible in my application. The db variable confuses me ...in the context of a controller it seems to have a value assigned to it upon entry...Is this

[web2py] Re: zip file need password

2015-06-08 Thread Carlos A. Armenta Castro
Hello Milad, Neither Web2Py Package have password. It could be an issue of your zip software. ¿Why not try to clone the Git Repo instead? 1. Download the Git Client: https://mac.github.com/ 2. Clone the repo: git clone --recursive https://github.com/web2py/web2py.git 3. Enjoy it! (run the

[web2py] Re: Auth callback settings for reset_password and request_reset_password

2015-06-08 Thread Massimo Di Pierro
yes. as you requested. :-) On Monday, 8 June 2015 17:31:22 UTC-5, James McGlynn wrote: Thank you for the quick action (I can't believe I found a bug!), One more question: Will reset_password also use reset_password_onaccept and reset_password_onvalidation? On Sunday, June 7, 2015 at

[web2py] Connecting to postgresql - where do I put schema name in the connection?

2015-06-08 Thread WebAppDev_PS
I downloaded web2py and it is brilliant I love the philosophy behind it. I have one small issue I created a quick application and tested via sqllite and all is fine but I am now using my models that I created to migrate to postgresql. The error I am receiving is: class

[web2py] Re: form validate check form vars

2015-06-08 Thread Anthony
What are you expecting to happen? Are you submitting input with empty values for the fields you have set as required/notnull but failing to get an exception thrown by the DAL or the database? Note, using the required and notnull attributes as a way of enforcing form validation is not a good

[web2py] Re: Connecting to postgresql - where do I put schema name in the connection?

2015-06-08 Thread Niphlod
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) -

Re: [web2py] OFF Topic -RiotJS

2015-06-08 Thread Michele Comitini
+1 riot v2.x is very nice. I think ractive.js has some performance advantage and some more features, but riot will get those soon. 2015-06-08 12:02 GMT+02:00 António Ramos ramstei...@gmail.com: just to share some noise on the UI for those looking at angular reactjs polymer ractive and so on

[web2py] is this a pydal issue?

2015-06-08 Thread Auden RovelleQuartz
What does this error mean - I never got it pre-pydal... { Ticket ID 24.211.17.122.2015-06-08.05-34-25.9f6361e2-d387-4cf8-adef-2216ad5c6476 type 'exceptions.AttributeError' 'NoneType' object has no attribute 'records'Versionweb2py™Version 2.11.2-stable+timestamp.2015.05.30.16.33.24 PythonPython

Re: [web2py] Re: How to pass arguments with a form

2015-06-08 Thread Anthony
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,

[web2py] Re: form validate check form vars

2015-06-08 Thread 黄祥
can not already tested it. e.g. def __onvalidate_receipt(form): if request.vars.receipt_type == 'Purchase Order': db.receipt_header.purchase_order_no.notnull = True db.receipt_header.purchase_order_no.required = True elif request.vars.receipt_type == 'Purchase Return':

[web2py] OFF Topic -RiotJS

2015-06-08 Thread António Ramos
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) -

[web2py] soap client with windows NTLM authorization

2015-06-08 Thread Pengfei Yu
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

Re: [web2py] is this a pydal issue?

2015-06-08 Thread Marin Pranjić
You should be able to just write: if not (op_rec and op_rec2 and op_rec3 and op_rec4) Marin On Mon, Jun 8, 2015 at 1:03 PM, Auden RovelleQuartz oves@gmail.com wrote: What does this error mean - I never got it pre-pydal... { Ticket ID

[web2py] Re: form validate check form vars

2015-06-08 Thread 黄祥
thanks anthony, put the logic outside the form process do the trick, but it seems, that i process further for the value. e.g. def receipt_form(): form = SQLFORM(db.receipt_header) #if form.vars.receipt_type == 'Purchase Order': #if request.vars.receipt_type == 'Purchase Order': if

[web2py] Re: form validate check form vars

2015-06-08 Thread 黄祥
pardon me for not made myself clear enough, what i expect to happen is when user choose the *receipt type == Purchase Order* so the field of *Purchase Order No* *become mandatory field *(either using : notnull = True, required = True or requires = IS_NOT_EMPTY() ), so how can i achieve it using

Re: [web2py] Re: How to display Google Maps (iFrame?)

2015-06-08 Thread Manuele Pesenti
Il 02/06/15 04:58, Robert Porter ha scritto: That sounds like maybe a good idea if I knew how to do that.. So I'll go look into it! Thanks! Hi Robert, this[1] is a openlayers based example I wrote a long time ago for another thread in this list and it uses components I hope it could be of any

Re: [web2py] Re: Resource webservice built on web2py for web2py comunity [BETA]

2015-06-08 Thread Carlos Cesar Caballero Díaz
Some months ago, because I can´t post anything to web2pyslices (others have the same problem and no one knows why) I post that I could motivate some of my team (including a designer) for building (and maintain) a new web2pyslices, and the proposal remains on the table. Right now I have two

[web2py] Re: is this a pydal issue?

2015-06-08 Thread Paolo Valleri
Your are comparing Rows with None. The question is why? Normally, you should compare Rows with Rows. In pydal we can add a check to raise an error if the second argument isn't an instance of Rows. Paolo On Monday, June 8, 2015 at 1:03:45 PM UTC+2, Auden RovelleQuartz wrote: What does this

[web2py] Re: is this a pydal issue?

2015-06-08 Thread Auden RovelleQuartz
parameter op_rec is set to a session parameter that under normal operating conditions is a Rows object if a person goes to the page directly (not the normal method) then the op_rec parameter would be None and in that case, the code simply redirects the person to a function that sets it to the

Re: [web2py] Re: is this a pydal issue?

2015-06-08 Thread Paolo Valleri
ok, I get it. I'll post an update later today to fix the backward compatibility Paolo 2015-06-08 13:58 GMT+02:00 Auden RovelleQuartz oves@gmail.com: parameter op_rec is set to a session parameter that under normal operating conditions is a Rows object if a person goes to the page

Re: [web2py] is this a pydal issue?

2015-06-08 Thread Auden RovelleQuartz
this works! thanks... On Monday, June 8, 2015 at 6:52:35 AM UTC-5, Marin Pranjić wrote: You should be able to just write: if not (op_rec and op_rec2 and op_rec3 and op_rec4) Marin On Mon, Jun 8, 2015 at 1:03 PM, Auden RovelleQuartz oves...@gmail.com javascript: wrote: What does this

Re: [web2py] Re: is this a pydal issue?

2015-06-08 Thread Auden RovelleQuartz
ok thanks i found workaround (via Marin), but handling None condition would preserve backwards compatibility and make more robust thanks again for everything! On Monday, June 8, 2015 at 7:06:02 AM UTC-5, Paolo Valleri wrote: ok, I get it. I'll post an update later today to fix the backward

[web2py] Re: form validate check form vars

2015-06-08 Thread Anthony
On Monday, June 8, 2015 at 8:55:40 AM UTC-4, 黄祥 wrote: pardon me for not made myself clear enough, what i expect to happen is when user choose the *receipt type == Purchase Order* so the field of *Purchase Order No* *become mandatory field *(either using : notnull = True, required = True

[web2py] Re: form validate check form vars

2015-06-08 Thread Anthony
If you're going to change the field validator, you must do it *before* creating the form object. On Monday, June 8, 2015 at 10:29:37 AM UTC-4, 黄祥 wrote: thanks anthony, put the logic outside the form process do the trick, but it seems, that i process further for the value. e.g. def

[web2py] Re: tables created at top of db.by

2015-06-08 Thread Anthony
Yes, that's just a template. On Monday, June 8, 2015 at 11:01:10 AM UTC-4, Alex Glaros wrote: Is it okay if I created tables above this line in db.py? # ## Define your tables below (or better in another model file) for

[web2py] tables created at top of db.by

2015-06-08 Thread Alex Glaros
Is it okay if I created tables above this line in db.py? # ## Define your tables below (or better in another model file) for example They are referenced by db.auth_group extra_fields so they won't work positioned below. (I

[web2py] Re: form validate check form vars

2015-06-08 Thread 黄祥
a, sorry, my bad, thank you so much anthony for detail explaination another shared thought about this, please beware of default embeded requires field e.g. reference field type have default requires = IS_IN_DB(), so if you face the same situation, please nullify the other field with

[web2py] Re: OFF Topic -RiotJS

2015-06-08 Thread Derek
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,

[web2py] Re: Locking app to a single domain

2015-06-08 Thread villas
My suggestion does not answer your question, it merely suggests a work-around. In a model file e.g. models/0redirects.py (your first model) check the domain and app name are correct. If not, redirect, or whatever you wish to happen. Hopefully, someone will provide an answer based on

[web2py] Re: soap client with windows NTLM authorization

2015-06-08 Thread Derek
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

[web2py] Re: Mac Application Binaries

2015-06-08 Thread joseph simpson
Some progress on the standalone application. I removed the examples, welcome and admin directories. The standalone Mac application GUI widget launches the application. It appears that I need to modify widget.py to not ask for an admin password or provide a warning of no admin password. Does